:root { --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; --header-offset: 122px; }
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; padding-top: var(--header-offset); background: var(--bg); color: var(--text-main); font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif; }
.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); }
.header-top { box-sizing: border-box; width: 100%; height: 68px; min-height: 68px; display: flex; align-items: center; overflow: hidden; background: #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: 24px; font-weight: 800; letter-spacing: 0.5px; color: var(--primary); text-decoration: none; text-transform: uppercase; 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 { display: none; box-sizing: border-box; min-height: 48px; width: 100%; max-width: 100%; }
.btn { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; font-weight: 700; border-radius: 8px; border: none; cursor: pointer; transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease; line-height: 1.2; white-space: nowrap; }
.btn:hover { transform: translateY(-2px); filter: brightness(1.05); }
.btn-login { padding: 10px 20px; font-size: 14px; color: var(--primary); background: #FFFFFF; border: 2px solid var(--primary); }
.btn-login:hover { color: #FFFFFF; background: var(--primary); }
.btn-register { padding: 11px 22px; font-size: 14px; color: #FFFFFF; background: var(--btn-gradient); box-shadow: 0 4px 14px rgba(47, 107, 255, 0.35); }
.btn-register:hover { box-shadow: 0 6px 20px rgba(47, 107, 255, 0.5); }
.hamburger-menu { display: none; flex-direction: column; justify-content: center; align-items: center; gap: 5px; width: 44px; height: 44px; padding: 0; background: transparent; border: none; cursor: pointer; z-index: 1001; }
.hamburger-menu span { display: block; width: 24px; height: 3px; background: var(--primary); 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; width: 100%; height: 52px; min-height: 52px; display: flex; align-items: center; overflow: hidden; background: var(--primary); }
.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; align-items: center; justify-content: center; gap: 4px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.nav-link { display: block; padding: 8px 14px; font-size: 14px; font-weight: 600; color: #FFFFFF; text-decoration: none; border-radius: 6px; transition: background 0.25s ease, color 0.25s ease; white-space: nowrap; }
.nav-link:hover, .nav-link.active { background: rgba(255, 255, 255, 0.18); color: #FFFFFF; }
.menu-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(31, 45, 61, 0.55); z-index: 999; opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0.3s ease; }
.menu-overlay.active { opacity: 1; visibility: visible; }
.site-footer { background: #FFFFFF; color: var(--text-main); border-top: 3px solid var(--primary); }
.footer-top { background: #FFFFFF; padding: 40px 20px 30px; border-bottom: 1px solid var(--border); }
.footer-container { max-width: 1200px; margin: 0 auto; width: 100%; }
.footer-slot-anchor-inner { min-height: 0; width: 100%; }
.footer-slot-top { margin-bottom: 24px; }
.footer-top-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; align-items: start; }
.footer-col { min-width: 0; }
.footer-dynamic-col { min-width: 0; }
.footer-about { display: flex; flex-direction: column; align-items: flex-start; }
.footer-logo { display: inline-block; font-size: 22px; font-weight: 800; color: var(--primary); text-decoration: none; text-transform: uppercase; margin-bottom: 14px; letter-spacing: 0.5px; }
.footer-logo:hover { color: var(--secondary); }
.footer-description { font-size: 13px; line-height: 1.7; color: #4A5A6D; margin: 0 0 12px; word-wrap: break-word; overflow-wrap: break-word; }
.footer-heading { font-size: 16px; font-weight: 700; color: var(--text-main); margin: 0 0 14px; padding-bottom: 8px; border-bottom: 2px solid var(--glow); display: inline-block; }
.footer-nav { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.footer-nav li a { font-size: 13px; color: #4A5A6D; text-decoration: none; transition: color 0.2s ease, padding-left 0.2s ease; display: inline-block; }
.footer-nav li a:hover { color: var(--primary); padding-left: 4px; }
.footer-mid { background: #F4F7FB; padding: 26px 20px; border-bottom: 1px solid var(--border); }
.footer-mid-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 10px 0; }
.footer-bottom { background: var(--primary); color: #FFFFFF; padding: 16px 20px; text-align: center; }
.footer-copyright { margin: 0; font-size: 13px; color: #FFFFFF; }
.footer-copyright span { font-weight: 700; }
@media (max-width: 768px) {
  :root { --header-offset: 110px; }
  body { overflow-x: hidden; }
  .header-top { height: 60px !important; min-height: 60px !important; }
  .header-container { width: 100%; max-width: none; padding-left: 15px; padding-right: 15px; position: relative; }
  .logo { flex: 1 !important; display: flex !important; justify-content: center !important; align-items: center !important; font-size: 20px; }
  .logo img { display: block !important; max-width: 100%; height: auto; max-height: 56px !important; }
  .hamburger-menu { display: flex; order: -1; position: relative; z-index: 1001; }
  .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; overflow: hidden; gap: 10px; flex-wrap: nowrap; }
  .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: var(--header-offset); left: 0; width: 100%; height: auto !important; min-height: 48px !important; max-height: calc(100vh - var(--header-offset)); overflow-y: auto; transform: translateX(-100%); transition: transform 0.3s ease; z-index: 1000; }
  .main-nav.active { display: block; transform: translateX(0); }
  .nav-container { width: 100%; max-width: none; padding: 12px 15px; flex-direction: column; align-items: stretch; }
  .nav-menu { flex-direction: column; align-items: stretch; gap: 4px; width: 100%; }
  .nav-link { padding: 12px 16px; font-size: 15px; border-radius: 6px; }
  .footer-top { padding: 28px 15px 20px; }
  .footer-top-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-dynamic-col { display: block; }
  .footer-mid { padding: 20px 15px; }
  .footer-mid-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .footer-bottom { padding: 14px 15px; }
  .page-content img { max-width: 100% !important; height: auto !important; display: block; }
  .page-content { overflow-x: hidden; max-width: 100%; }
}
/* 移动端内容区防溢出（系统追加，请勿删除） */
@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;
}
