:root { --header-offset: 122px; --color-primary: #113B7A; --color-secondary: #1D5FD1; --color-btn-start: #2B73F6; --color-btn-end: #1144A6; --color-card-bg: #10233F; --color-text-main: #F3F8FF; --color-text-secondary: #AFC4E8; --color-border: #244D84; --color-glow: #4FA8FF; --color-gold: #F2C14E; --color-divider: #1B3357; --color-deep-navy: #08162B; }
*, *::before, *::after { box-sizing: border-box; }
body { padding-top: var(--header-offset); margin: 0; }

/* ===== HEADER ===== */
.site-header { position: fixed; top: 0; left: 0; right: 0; width: 100%; z-index: 1000; box-shadow: 0 4px 20px rgba(8, 22, 43, 0.55); background-color: #08162B; }
.header-top { box-sizing: border-box; height: 68px; min-height: 68px; display: flex; align-items: center; overflow: hidden; background-color: #113B7A; 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; }
.logo { display: inline-block; font-size: 26px; font-weight: 800; letter-spacing: 1px; text-decoration: none; background: linear-gradient(90deg, #F3F8FF 0%, #F2C14E 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: #F3F8FF; line-height: 1; }
.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: 700; border-radius: 8px; padding: 10px 20px; font-size: 14px; line-height: 1.2; transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease; border: 1px solid transparent; cursor: pointer; }
.btn:hover { transform: translateY(-1px); filter: brightness(1.08); }
.btn-login { background: transparent; color: #F3F8FF; border: 1px solid #4FA8FF; box-shadow: 0 0 0 rgba(79, 168, 255, 0); }
.btn-login:hover { box-shadow: 0 0 12px rgba(79, 168, 255, 0.6); }
.btn-register { background: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%); color: #F3F8FF; box-shadow: 0 4px 14px rgba(29, 95, 209, 0.45); }
.btn-register:hover { box-shadow: 0 6px 20px rgba(79, 168, 255, 0.55); }
.main-nav { box-sizing: border-box; height: 52px; min-height: 52px; display: flex; align-items: center; overflow: hidden; background-color: #08162B; width: 100%; border-top: 1px solid #1B3357; }
.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; width: 100%; }
.nav-links { display: flex; flex-direction: row; justify-content: center; align-items: center; list-style: none; margin: 0; padding: 0; gap: 4px; flex-wrap: nowrap; }
.nav-link { display: inline-block; padding: 8px 12px; color: #AFC4E8; text-decoration: none; font-size: 14px; font-weight: 600; border-radius: 6px; transition: color 0.2s ease, background-color 0.2s ease; white-space: nowrap; }
.nav-link:hover, .nav-link.active { color: #F3F8FF; background-color: rgba(79, 168, 255, 0.12); }
.nav-link.active { color: #F2C14E; }
.hamburger-menu { display: none; flex-direction: column; justify-content: center; align-items: center; gap: 5px; width: 42px; height: 42px; background: transparent; border: none; cursor: pointer; padding: 0; z-index: 1001; }
.hamburger-menu span { display: block; width: 24px; height: 2px; background-color: #F3F8FF; border-radius: 2px; transition: transform 0.3s ease, opacity 0.3s ease; }
.hamburger-menu.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger-menu.active span:nth-child(2) { opacity: 0; }
.hamburger-menu.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-overlay { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background-color: rgba(8, 22, 43, 0.75); z-index: 999; opacity: 0; transition: opacity 0.3s ease; }
.mobile-overlay.active { display: block; opacity: 1; }

/* ===== FOOTER ===== */
.site-footer { background-color: #08162B; color: #AFC4E8; border-top: 1px solid #1B3357; }
.footer-container { box-sizing: border-box; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.footer-top { padding: 48px 0 32px; border-bottom: 1px solid #1B3357; }
.footer-top-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.footer-col { min-width: 0; }
.footer-about { display: flex; flex-direction: column; }
.footer-logo { display: inline-block; font-size: 26px; font-weight: 800; letter-spacing: 1px; text-decoration: none; background: linear-gradient(90deg, #F3F8FF 0%, #F2C14E 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: #F3F8FF; line-height: 1.2; margin-bottom: 14px; }
.footer-description { font-size: 14px; line-height: 1.6; color: #AFC4E8; word-wrap: break-word; overflow-wrap: break-word; margin: 0 0 16px; }
.footer-title { font-size: 16px; font-weight: 700; color: #F3F8FF; margin: 0 0 16px; letter-spacing: 0.4px; }
.footer-nav { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-nav li { margin: 0; padding: 0; }
.footer-nav a { color: #AFC4E8; text-decoration: none; font-size: 14px; line-height: 1.5; transition: color 0.2s ease; display: inline-block; word-wrap: break-word; overflow-wrap: break-word; }
.footer-nav a:hover { color: #4FA8FF; }
.footer-dynamic-col { min-height: 1px; }
.footer-slot-anchor, .footer-slot-anchor-inner { display: block; }
.footer-mid { padding: 32px 0; border-bottom: 1px solid #1B3357; }
.footer-mid-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.footer-mid-cell { min-width: 0; }
.footer-bottom { padding: 20px 0; background-color: #08162B; }
.footer-copyright { margin: 0; text-align: center; font-size: 13px; color: #AFC4E8; line-height: 1.5; }

/* ===== RESPONSIVE ===== */
@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; }
  .logo img { display: block !important; max-width: 100%; height: auto; max-height: 56px !important; }
  .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 { height: 48px !important; min-height: 48px !important; }
  .nav-container { width: 100%; max-width: none; padding-left: 15px; padding-right: 15px; justify-content: flex-start; }
  .hamburger-menu { display: flex; }
  .nav-links { display: none; }
  .main-nav { display: none; position: fixed; top: 60px; left: 0; bottom: 0; width: 260px; max-width: 82%; height: auto !important; min-height: auto !important; background-color: #10233F; flex-direction: column; overflow-y: auto; overflow-x: hidden; transform: translateX(-100%); transition: transform 0.3s ease; z-index: 1001; border-top: none; border-right: 1px solid #244D84; padding-top: 12px; }
  .main-nav.active { display: block; transform: translateX(0); }
  .main-nav.active .nav-links { display: flex; flex-direction: column; align-items: stretch; padding: 0 12px 24px; gap: 4px; }
  .nav-link { display: block; padding: 12px 14px; font-size: 15px; border-radius: 8px; }
  .footer-top-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-mid-grid { grid-template-columns: repeat(2, 1fr); }
  .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;
}
