:root { --color-primary: #2F6BFF; --color-secondary: #6FA3FF; --color-bg: #F4F7FB; --color-card: #FFFFFF; --color-text: #1F2D3D; --color-black: #000000; --color-border: #D6E2FF; --color-glow: #A5C4FF; --header-offset: 122px; }
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; padding-top: var(--header-offset); font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif; color: var(--color-text); background-color: var(--color-bg); }
.site-header { position: fixed; top: 0; left: 0; right: 0; width: 100%; z-index: 1000; box-shadow: 0 4px 18px rgba(47, 107, 255, 0.18); background-color: #FFFFFF; }
.header-top { box-sizing: border-box; width: 100%; height: 68px; min-height: 68px; display: flex; align-items: center; overflow: hidden; background: linear-gradient(90deg, #1F4FD8 0%, #2F6BFF 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-flex; align-items: center; font-size: 26px; font-weight: 800; letter-spacing: 0.5px; color: #FFFFFF; text-decoration: none; white-space: nowrap; }
.logo:hover, .logo:focus { color: #FFFFFF; text-decoration: none; }
.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; min-height: 48px; }
.btn { display: inline-block; text-decoration: none; text-align: center; 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; }
.desktop-nav-buttons .btn { padding: 10px 22px; font-size: 15px; }
.btn-login { background: transparent; color: #FFFFFF; border: 1.5px solid rgba(255, 255, 255, 0.85); }
.btn-login:hover { background: rgba(255, 255, 255, 0.15); transform: translateY(-1px); }
.btn-register { background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%); color: #FFFFFF; box-shadow: 0 4px 12px rgba(165, 196, 255, 0.55); }
.btn-register:hover { filter: brightness(1.08); transform: translateY(-1px); box-shadow: 0 6px 18px rgba(165, 196, 255, 0.75); }
.main-nav { box-sizing: border-box; width: 100%; height: 52px; min-height: 52px; display: flex; align-items: center; overflow: hidden; background-color: #FFFFFF; border-bottom: 1px solid var(--color-border); }
.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; position: relative; }
.nav-menu { display: flex; flex-direction: row; align-items: center; justify-content: center; gap: 4px; list-style: none; margin: 0; padding: 0; flex-wrap: nowrap; }
.nav-menu li { margin: 0; }
.nav-link { display: inline-block; padding: 8px 13px; font-size: 14.5px; font-weight: 600; color: var(--color-text); text-decoration: none; border-radius: 6px; white-space: nowrap; transition: background-color 0.2s ease, color 0.2s ease; }
.nav-link:hover, .nav-link:focus { color: var(--color-primary); background-color: #EDF3FF; text-decoration: none; }
.hamburger-menu { display: none; position: relative; width: 42px; height: 42px; border: none; background: transparent; cursor: pointer; padding: 0; flex-direction: column; justify-content: center; align-items: center; gap: 5px; z-index: 1002; }
.hamburger-line { display: block; width: 24px; height: 2.5px; background-color: var(--color-primary); border-radius: 2px; transition: transform 0.3s ease, opacity 0.3s ease; }
.hamburger-menu.active .hamburger-line:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.hamburger-menu.active .hamburger-line:nth-child(2) { opacity: 0; }
.hamburger-menu.active .hamburger-line:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
.menu-overlay { display: none; }
.site-footer { background-color: #0E1E3B; color: #D9E4F7; margin-top: 40px; }
.footer-container { box-sizing: border-box; width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.footer-top { padding: 42px 0 28px; }
.footer-top-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; align-items: start; }
.footer-col { min-width: 0; }
.footer-about .footer-logo { display: inline-block; font-size: 24px; font-weight: 800; color: #FFFFFF; text-decoration: none; margin-bottom: 12px; }
.footer-about .footer-logo:hover { color: var(--color-glow); }
.footer-description { font-size: 14px; line-height: 1.65; color: #B9C9E6; margin: 0 0 10px; overflow-wrap: break-word; word-wrap: break-word; }
.footer-heading { font-size: 16px; font-weight: 700; color: #FFFFFF; margin: 0 0 14px; }
.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; font-size: 14px; color: #B9C9E6; text-decoration: none; transition: color 0.2s ease, padding-left 0.2s ease; }
.footer-nav a:hover, .footer-nav a:focus { color: #FFFFFF; padding-left: 4px; text-decoration: none; }
.footer-dynamic-col { min-height: 1px; }
.footer-slot-anchor-inner { width: 100%; }
.footer-mid { padding: 12px 0 20px; }
.footer-mid-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 10px; }
.footer-bottom { background-color: #091730; border-top: 1px solid rgba(111, 163, 255, 0.25); padding: 18px 0; }
.footer-copyright { margin: 0; text-align: center; font-size: 13.5px; color: #A9BCDD; }
@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; }
  .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; }
  .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: 6px 15px; overflow: hidden; gap: 10px; flex-wrap: nowrap; background-color: #FFFFFF; border-bottom: 1px solid var(--color-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; }
  .mobile-nav-buttons .btn-login { background: #FFFFFF; color: var(--color-primary); border: 1.5px solid var(--color-primary); }
  .mobile-nav-buttons .btn-register { background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%); color: #FFFFFF; }
  .main-nav { height: 48px !important; min-height: 48px !important; border-bottom: none; }
  .nav-container { width: 100%; max-width: none; padding-left: 15px; padding-right: 15px; justify-content: space-between; }
  .hamburger-menu { display: flex; }
  .nav-menu { display: none; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 0; position: fixed; top: 0; left: 0; width: 82%; max-width: 320px; height: 100vh; background-color: #FFFFFF; padding: 80px 0 30px; overflow-y: auto; transform: translateX(-100%); transition: transform 0.3s ease; z-index: 1001; box-shadow: 6px 0 24px rgba(0, 0, 0, 0.22); }
  .nav-menu.active { display: flex; transform: translateX(0); }
  .nav-menu li { border-bottom: 1px solid var(--color-border); }
  .nav-link { display: block; padding: 15px 22px; font-size: 15.5px; border-radius: 0; }
  .menu-overlay { display: block; position: fixed; inset: 0; background-color: rgba(9, 23, 48, 0.55); opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0.3s ease; z-index: 1000; }
  .menu-overlay.active { opacity: 1; visibility: visible; }
  body.no-scroll { overflow: hidden; }
  .footer-top-grid { grid-template-columns: 1fr; gap: 22px; }
  .footer-mid-row { grid-template-columns: repeat(2, 1fr); }
  .footer-top { padding: 32px 0 20px; }
  .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-row { 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;
}
