:root { --primary: #2F6BFF; --secondary: #6FA3FF; --btn-gradient: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%); --bg: #F4F7FB; --card-bg: #FFFFFF; --text-main: #1F2D3D; --border-color: #D6E2FF; --glow: #A5C4FF; --header-offset: 120px; }
* { box-sizing: border-box; }
body { margin: 0; padding-top: var(--header-offset); font-family: 'Segoe UI', 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; box-shadow: 0 2px 12px rgba(47, 107, 255, 0.25); }
.header-top { box-sizing: border-box; min-height: 68px; height: 68px; display: flex; align-items: center; overflow: hidden; background-color: #1F2D3D; width: 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; gap: 12px; }
.logo { display: inline-block; font-size: 22px; font-weight: 800; color: #FFFFFF; text-decoration: none; letter-spacing: 0.5px; white-space: nowrap; }
.desktop-nav-buttons { display: flex; gap: 10px; align-items: center; }
.btn { display: inline-block; text-decoration: none; font-weight: 700; border-radius: 8px; text-align: center; cursor: pointer; transition: opacity 0.2s ease, transform 0.2s ease; border: none; line-height: 1.2; }
.btn:hover { opacity: 0.92; transform: translateY(-1px); }
.btn-login { padding: 9px 18px; font-size: 14px; color: #1F2D3D; background-color: #FFFFFF; border: 1px solid var(--border-color); }
.btn-register { padding: 9px 18px; font-size: 14px; color: #FFFFFF; background: var(--btn-gradient); box-shadow: 0 2px 8px rgba(47, 107, 255, 0.4); }
.mobile-nav-buttons { box-sizing: border-box; display: none; min-height: 48px; }
.hamburger-menu { display: none; background: transparent; border: none; padding: 6px; cursor: pointer; flex-direction: column; justify-content: center; align-items: center; gap: 5px; width: 40px; height: 40px; z-index: 1001; }
.hamburger-bar { 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-bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger-menu.active .hamburger-bar:nth-child(2) { opacity: 0; }
.hamburger-menu.active .hamburger-bar: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; background-color: #2F6BFF; 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 { color: #FFFFFF; text-decoration: none; font-size: 14px; font-weight: 600; padding: 6px 12px; border-radius: 6px; white-space: nowrap; transition: background-color 0.2s ease, color 0.2s ease; }
.nav-link:hover, .nav-link.active { background-color: rgba(255, 255, 255, 0.22); color: #FFFFFF; }
.nav-overlay { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background-color: rgba(0, 0, 0, 0.5); z-index: 999; opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0.3s ease; }
.nav-overlay.active { opacity: 1; visibility: visible; }
.site-footer { background-color: #1F2D3D; color: #D6E2FF; padding: 48px 20px 0; margin-top: 40px; }
.footer-top-grid { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding-bottom: 32px; border-bottom: 1px solid rgba(214, 226, 255, 0.18); }
.footer-col { min-width: 0; }
.footer-logo { display: inline-block; font-size: 22px; font-weight: 800; color: #FFFFFF; text-decoration: none; margin-bottom: 12px; }
.footer-description { font-size: 13px; line-height: 1.7; color: #B9C7DD; word-wrap: break-word; overflow-wrap: break-word; margin: 0 0 8px; }
.footer-col-title { font-size: 15px; font-weight: 700; color: #FFFFFF; margin: 0 0 12px; }
.footer-nav { list-style: none; padding: 0; margin: 0; }
.footer-nav li { margin-bottom: 8px; }
.footer-nav a { color: #B9C7DD; text-decoration: none; font-size: 13px; transition: color 0.2s ease; }
.footer-nav a:hover { color: #FFFFFF; text-decoration: underline; }
.footer-contact-list { list-style: none; padding: 0; margin: 0; }
.footer-contact-list li { font-size: 13px; line-height: 1.7; color: #B9C7DD; margin-bottom: 8px; }
.footer-dynamic-col { min-width: 0; }
.footer-middle-section { max-width: 1200px; margin: 0 auto; padding: 24px 0; }
.footer-mid-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 16px; }
.footer-slot-anchor-inner { display: block; }
.footer-bottom { max-width: 1200px; margin: 0 auto; padding: 18px 0 24px; border-top: 1px solid rgba(214, 226, 255, 0.18); text-align: center; font-size: 13px; color: #B9C7DD; }
.footer-bottom p { margin: 0; }
@media (max-width: 768px) {
  :root { --header-offset: 108px; }
  .header-top { min-height: 60px !important; height: 60px !important; }
  .header-container { width: 100%; max-width: none; padding-left: 15px; padding-right: 15px; position: relative; height: 100%; justify-content: space-between; }
  .logo { flex: 1 !important; display: flex !important; justify-content: center !important; align-items: center !important; font-size: 18px; }
  .desktop-nav-buttons { display: none !important; }
  .hamburger-menu { display: flex; }
  .mobile-nav-buttons { display: flex !important; align-items: center; justify-content: center; width: 100%; max-width: 100%; padding: 8px 15px; overflow: hidden; gap: 10px; flex-wrap: nowrap; background-color: #1F2D3D; }
  .mobile-nav-buttons .btn { flex: 1; min-width: 0; max-width: calc(50% - 5px); 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: 0; left: 0; width: 280px; max-width: 82vw; height: 100vh !important; min-height: 100vh !important; background-color: #1F2D3D; transform: translateX(-100%); transition: transform 0.3s ease; z-index: 1001; padding-top: 20px; flex-direction: column; align-items: stretch; overflow-y: auto; }
  .main-nav.active, .main-nav.open { display: flex; transform: translateX(0); }
  .nav-container { flex-direction: column; align-items: stretch; justify-content: flex-start; height: auto; width: 100%; max-width: none; padding: 10px 15px; gap: 0; }
  .nav-link { display: block; padding: 12px 14px; font-size: 15px; border-radius: 8px; text-align: left; }
  .nav-overlay { display: block; }
  .page-content img { max-width: 100% !important; height: auto !important; display: block; }
  .page-content { overflow-x: hidden; max-width: 100%; }
  body { overflow-x: hidden; }
  .footer-top-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-mid-grid { grid-template-columns: repeat(2, 1fr); }
  .site-footer { padding: 36px 15px 0; }
}
body.no-scroll { overflow: 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;
}
