:root {
  --primary: #2F6BFF;
  --secondary: #6FA3FF;
  --btn-gradient: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
  --bg-main: #F4F7FB;
  --card-bg: #FFFFFF;
  --text-main: #1F2D3D;
  --border-color: #D6E2FF;
  --glow: #A5C4FF;
  --header-offset: 122px;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; padding-top: var(--header-offset); background-color: var(--bg-main); font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; color: var(--text-main); }
.site-header { position: fixed; top: 0; left: 0; right: 0; width: 100%; z-index: 1000; box-shadow: 0 4px 16px rgba(47, 107, 255, 0.15); }
.header-top { box-sizing: border-box; width: 100%; height: 68px; min-height: 68px; display: flex; align-items: center; overflow: hidden; background-color: var(--primary); }
.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 { font-size: 28px; font-weight: 800; color: #FFFFFF; text-decoration: none; letter-spacing: 1px; display: inline-block; line-height: 1; }
.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; }
.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; cursor: pointer; font-weight: 700; border-radius: 8px; transition: all 0.2s ease; white-space: nowrap; }
.btn-login { background: transparent; color: #FFFFFF; border: 1.5px solid #FFFFFF; padding: 8px 20px; font-size: 14px; }
.btn-login:hover { background: rgba(255, 255, 255, 0.15); }
.btn-register { background: var(--btn-gradient); color: #FFFFFF; padding: 9px 22px; font-size: 14px; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2); }
.btn-register:hover { filter: brightness(1.1); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3); }
.main-nav { box-sizing: border-box; width: 100%; height: 52px; min-height: 52px; display: flex; align-items: center; overflow: hidden; background-color: rgba(255, 255, 255, 0.98); border-bottom: 1px solid var(--border-color); }
.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 24px; }
.nav-list { display: flex; flex-direction: row; justify-content: center; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; width: 100%; }
.nav-link { display: block; padding: 6px 10px; font-size: 14px; font-weight: 600; color: var(--text-main); text-decoration: none; border-radius: 6px; transition: all 0.2s ease; white-space: nowrap; }
.nav-link:hover, .nav-link.active { color: var(--primary); background-color: var(--bg-main); }
.hamburger-menu { display: none; background: none; border: none; cursor: pointer; padding: 8px; flex-direction: column; gap: 5px; z-index: 1001; }
.hamburger-menu span { display: block; width: 24px; height: 3px; background-color: var(--text-main); border-radius: 2px; transition: all 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); }
.nav-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.5); z-index: 999; opacity: 0; transition: opacity 0.3s ease; }
.nav-overlay.active { display: block; opacity: 1; }
.site-footer { background-color: #1A2233; color: #C9D6E8; padding: 48px 0 0; margin-top: 60px; }
.footer-container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.footer-top-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.footer-col { min-width: 0; }
.footer-logo { display: inline-block; font-size: 26px; font-weight: 800; color: #FFFFFF; text-decoration: none; margin-bottom: 14px; letter-spacing: 1px; }
.footer-logo:hover { color: var(--glow); }
.footer-description { font-size: 14px; line-height: 1.7; color: #A9BCD6; 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; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.footer-nav li a { color: #A9BCD6; text-decoration: none; font-size: 14px; transition: color 0.2s ease; display: inline-block; }
.footer-nav li a:hover { color: #FFFFFF; padding-left: 4px; }
.footer-slot-anchor-inner, .footer-slot-anchor { min-height: 1px; }
.footer-dynamic-col { min-width: 0; }
.footer-mid { padding: 24px 0; border-top: 1px solid rgba(255, 255, 255, 0.08); margin-top: 32px; }
.footer-slot-mid-row { display: flex; flex-direction: column; gap: 12px; }
.footer-slot-mid-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 16px; }
.footer-slot-bottom { padding: 16px 0; border-top: 1px solid rgba(255, 255, 255, 0.08); }
.footer-bottom { background-color: #111827; padding: 16px 0; text-align: center; }
.footer-bottom p { margin: 0; font-size: 13px; color: #8A9BB8; }
@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: 12px; padding-right: 12px; position: relative; }
  .logo { position: relative; z-index: 2; font-size: 24px; }
  .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; min-height: 48px; }
  .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; }
  .mobile-nav-buttons .btn-login { border-color: var(--primary); color: var(--primary); }
  .main-nav { min-height: 48px !important; height: 48px !important; }
  .nav-container { width: 100%; max-width: none; padding-left: 12px; padding-right: 12px; justify-content: space-between; }
  .hamburger-menu { display: flex; }
  .nav-list { display: none; flex-direction: column; position: fixed; top: 0; left: 0; width: 280px; max-width: 80%; height: 100vh; background-color: #FFFFFF; padding: 80px 20px 30px; gap: 4px; justify-content: flex-start; align-items: stretch; box-shadow: 4px 0 20px rgba(0, 0, 0, 0.15); overflow-y: auto; transform: translateX(-100%); transition: transform 0.3s ease; z-index: 1000; margin: 0; }
  .nav-list.active { display: flex; transform: translateX(0); }
  .nav-list li { width: 100%; }
  .nav-link { padding: 12px 14px; font-size: 15px; border-bottom: 1px solid var(--border-color); border-radius: 0; }
  .nav-overlay { display: none; }
  .nav-overlay.active { display: block; }
  .footer-top-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-slot-mid-grid { grid-template-columns: 1fr; }
  .site-footer { padding-top: 32px; }
  .footer-container { padding: 0 16px; }
  .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;
}
