:root { --primary: #113B7A; --secondary: #1D5FD1; --btn-grad: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%); --card-bg: #10233F; --text-main: #F3F8FF; --text-secondary: #AFC4E8; --border-color: #244D84; --glow: #4FA8FF; --gold: #F2C14E; --divider: #1B3357; --deep-navy: #08162B; --header-offset: 122px; }
* { box-sizing: border-box; }
body { margin: 0; padding-top: var(--header-offset); font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif; }
.site-header { position: fixed; top: 0; left: 0; right: 0; width: 100%; z-index: 1000; box-shadow: 0 4px 18px rgba(8, 22, 43, 0.65); }
.header-top { width: 100%; height: 68px; min-height: 68px; display: flex; align-items: center; overflow: hidden; background-color: var(--deep-navy); border-bottom: 1px solid var(--border-color); }
.header-container { width: 100%; height: 100%; max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; padding-left: 30px; padding-right: 30px; }
.logo { display: inline-block; font-size: 30px; font-weight: 800; letter-spacing: 0.5px; color: var(--gold); text-decoration: none; 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-radius: 6px; font-weight: 700; font-size: 14px; padding: 9px 22px; line-height: 1.2; border: 1px solid transparent; transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease; cursor: pointer; }
.btn:hover { transform: translateY(-1px); filter: brightness(1.08); }
.btn-login { background-color: transparent; color: var(--text-main); border-color: var(--border-color); }
.btn-login:hover { border-color: var(--glow); color: var(--glow); }
.btn-register { background: var(--btn-grad); color: #FFFFFF; box-shadow: 0 3px 12px rgba(43, 115, 246, 0.45); }
.main-nav { width: 100%; height: 52px; min-height: 52px; display: flex; align-items: center; overflow: hidden; background-color: var(--primary); border-bottom: 1px solid var(--border-color); }
.nav-container { 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-list { display: flex; flex-direction: row; justify-content: center; align-items: center; list-style: none; margin: 0; padding: 0; gap: 4px; flex-wrap: wrap; }
.nav-list li { margin: 0; }
.nav-link { display: block; color: var(--text-main); text-decoration: none; font-size: 14px; font-weight: 600; padding: 6px 11px; border-radius: 5px; line-height: 1.2; transition: background-color 0.2s ease, color 0.2s ease; white-space: nowrap; }
.nav-link:hover, .nav-link.active { background-color: rgba(79, 168, 255, 0.18); color: var(--glow); }
.hamburger-menu { display: none; background: none; border: none; cursor: pointer; padding: 6px; flex-direction: column; justify-content: center; gap: 5px; }
.hamburger-menu span { display: block; width: 24px; height: 2px; background-color: var(--text-main); 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); }
.nav-overlay { display: none; }
.site-footer { background-color: var(--deep-navy); color: var(--text-main); border-top: 2px solid var(--border-color); }
.footer-top { padding: 46px 0 26px; }
.footer-container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 30px; }
.footer-top-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.footer-col { min-width: 0; }
.footer-logo { display: inline-block; font-size: 26px; font-weight: 800; color: var(--gold); text-decoration: none; margin-bottom: 14px; }
.footer-logo:hover { color: var(--glow); }
.footer-description { color: var(--text-secondary); font-size: 14px; line-height: 1.7; margin: 0 0 10px; word-wrap: break-word; overflow-wrap: break-word; }
.footer-heading { color: var(--text-main); font-size: 16px; font-weight: 700; margin: 0 0 14px; padding-bottom: 8px; border-bottom: 1px solid var(--divider); }
.footer-nav { list-style: none; margin: 0; padding: 0; }
.footer-nav li { margin-bottom: 9px; }
.footer-nav a { color: var(--text-secondary); text-decoration: none; font-size: 14px; transition: color 0.2s ease; }
.footer-nav a:hover { color: var(--gold); }
.footer-dynamic-col { min-width: 0; }
.footer-mid { margin-top: 26px; }
.footer-mid-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 12px; }
.footer-slot-anchor-inner { min-height: 1px; }
.footer-bottom { border-top: 1px solid var(--divider); padding: 18px 0; background-color: var(--card-bg); }
.footer-bottom .footer-container { display: flex; justify-content: center; align-items: center; }
.footer-copyright { color: var(--text-secondary); font-size: 13px; margin: 0; text-align: center; }
@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: 15px; padding-right: 15px; justify-content: space-between; }
  .logo { flex: 1 !important; display: flex !important; justify-content: center !important; align-items: center !important; font-size: 24px; }
  .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: var(--deep-navy); border-bottom: 1px solid var(--border-color); }
  .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 { min-height: 48px !important; height: 48px !important; display: flex; align-items: center; justify-content: space-between; }
  .nav-container { width: 100%; max-width: none; padding-left: 15px; padding-right: 15px; justify-content: flex-start; }
  .hamburger-menu { display: flex; position: relative; z-index: 1002; }
  .nav-list { position: fixed; top: 0; left: 0; width: 82%; max-width: 320px; height: 100vh; flex-direction: column; justify-content: flex-start; align-items: stretch; background-color: var(--card-bg); padding: 84px 20px 30px; gap: 0; transform: translateX(-100%); transition: transform 0.3s ease; z-index: 1001; overflow-y: auto; box-shadow: 6px 0 24px rgba(8, 22, 43, 0.7); }
  .nav-list.active { display: flex; transform: translateX(0); }
  .nav-list li { width: 100%; border-bottom: 1px solid var(--divider); }
  .nav-link { padding: 13px 8px; font-size: 15px; white-space: normal; }
  .nav-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(8, 22, 43, 0.6); z-index: 999; }
  .nav-overlay.active { display: block; }
  .footer-top { padding: 34px 0 20px; }
  .footer-container { padding: 0 15px; }
  .footer-top-grid { grid-template-columns: 1fr; gap: 22px; }
  .footer-mid-grid { grid-template-columns: 1fr; }
  .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;
}
