:root { --header-offset: 164px; --primary: #113B7A; --secondary: #1D5FD1; --btn-bg: 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; }
* { margin: 0; padding: 0; box-sizing: border-box; }
body { padding-top: var(--header-offset); background: var(--deep-navy); font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; margin: 0; }
a { text-decoration: none; color: inherit; }
.site-header { position: fixed; top: 0; left: 0; width: 100%; z-index: 1000; box-shadow: 0 4px 20px rgba(0,0,0,0.5); background: var(--primary); }
.header-top { background: linear-gradient(135deg, #0A2250 0%, #113B7A 60%, #0A2250 100%); width: 100%; }
.header-container { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; padding: 10px 30px; min-height: 68px; }
.logo { font-size: 28px; font-weight: 900; color: var(--gold); letter-spacing: 1px; text-shadow: 0 0 15px rgba(242, 193, 78, 0.3); display: inline-block; line-height: 1.2; }
.logo:hover { color: #ffd97a; text-shadow: 0 0 25px rgba(242, 193, 78, 0.6); }
.desktop-nav-buttons { display: flex; gap: 12px; align-items: center; }
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 10px 24px; border-radius: 25px; font-weight: 700; font-size: 15px; cursor: pointer; transition: all 0.3s ease; border: none; letter-spacing: 0.5px; min-height: 44px; line-height: 1.2; }
.btn-register { background: var(--btn-bg); color: #fff; box-shadow: 0 4px 15px rgba(43, 115, 246, 0.4); }
.btn-register:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(43, 115, 246, 0.6); filter: brightness(1.1); }
.btn-login { background: transparent; color: var(--text-main); border: 2px solid var(--gold); }
.btn-login:hover { background: rgba(242, 193, 78, 0.15); transform: translateY(-2px); box-shadow: 0 4px 15px rgba(242, 193, 78, 0.3); }
.hamburger-menu { display: none; background: transparent; border: none; cursor: pointer; padding: 10px; z-index: 1001; flex-direction: column; gap: 5px; }
.hamburger-line { width: 26px; height: 3px; background: var(--text-main); border-radius: 3px; transition: all 0.3s ease; }
.main-nav { background: var(--deep-navy); border-top: 3px solid var(--gold); border-bottom: 1px solid var(--divider); position: static; display: flex; width: 100%; }
.nav-container { max-width: 1300px; margin: 0 auto; display: flex; flex-direction: row; justify-content: center; align-items: center; gap: 4px; padding: 0 15px; min-height: 52px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.nav-container::-webkit-scrollbar { display: none; }
.nav-link { color: var(--text-main); font-size: 14px; font-weight: 600; padding: 10px 14px; border-radius: 20px; transition: all 0.3s ease; white-space: nowrap; position: relative; }
.nav-link::after { content: ''; position: absolute; bottom: 4px; left: 50%; transform: translateX(-50%); width: 0; height: 2px; background: var(--gold); transition: width 0.3s ease; border-radius: 2px; }
.nav-link:hover { color: var(--gold); background: rgba(242, 193, 78, 0.08); }
.nav-link:hover::after { width: 60%; }
.mobile-nav-buttons { display: none; width: 100%; padding: 10px 15px; gap: 10px; justify-content: center; background: var(--deep-navy); border-top: 1px solid var(--divider); }
.site-footer { background: var(--deep-navy); color: var(--text-main); padding: 0; border-top: 4px solid var(--gold); margin-top: 60px; }
.site-footer a { color: var(--text-secondary); transition: color 0.3s; }
.site-footer a:hover { color: var(--gold); }
.footer-container { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; padding: 50px 20px 40px; }
.footer-column { min-width: 0; }
.footer-logo { font-size: 26px; font-weight: 900; color: var(--gold); display: inline-block; margin-bottom: 18px; letter-spacing: 1px; }
.footer-desc { color: var(--text-secondary); line-height: 1.7; font-size: 14px; margin-bottom: 20px; }
.footer-contact { color: var(--text-secondary); font-size: 14px; line-height: 1.8; }
.footer-heading { color: var(--text-main); font-size: 16px; font-weight: 700; margin-bottom: 18px; position: relative; padding-bottom: 10px; }
.footer-heading::after { content: ''; position: absolute; bottom: 0; left: 0; width: 30px; height: 2px; background: var(--gold); }
.footer-nav { display: flex; flex-direction: column; gap: 10px; }
.footer-nav a { font-size: 14px; line-height: 1.5; }
.footer-bottom { border-top: 1px solid var(--divider); text-align: center; padding: 20px 10px; background: rgba(0,0,0,0.3); }
.footer-bottom p { color: var(--text-secondary); font-size: 14px; }
.mobile-menu-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); z-index: 998; opacity: 0; transition: opacity 0.3s ease; }
@media (max-width: 768px) {
  :root { --header-offset: 146px; }
  body { overflow-x: hidden; }
  .site-header { position: fixed; top: 0; left: 0; width: 100%; background: var(--primary); }
  .header-top { min-height: 60px; }
  .header-container { width: 100%; max-width: none; padding: 8px 12px; min-height: 60px; position: relative; }
  .logo { font-size: 24px; position: absolute; left: 50%; transform: translateX(-50%); white-space: nowrap; }
  .hamburger-menu { display: flex; margin-right: auto; }
  .hamburger-menu.active .hamburger-line:nth-child(1) { transform: translateY(8px) rotate(45deg); background: var(--gold); }
  .hamburger-menu.active .hamburger-line:nth-child(2) { opacity: 0; }
  .hamburger-menu.active .hamburger-line:nth-child(3) { transform: translateY(-8px) rotate(-45deg); background: var(--gold); }
  .desktop-nav-buttons { display: none; }
  .mobile-nav-buttons { display: flex; flex-wrap: wrap; }
  .mobile-nav-buttons .btn { flex: 1 1 auto; min-width: 180px; text-align: center; }
  .main-nav { display: none; position: fixed; top: 0; left: 0; width: 80%; max-width: 320px; height: 100vh; background: var(--deep-navy); z-index: 999; flex-direction: column; transform: translateX(-100%); transition: transform 0.3s ease; padding-top: 30px; overflow-y: auto; border-top: none; }
  .main-nav.active { display: flex; transform: translateX(0); }
  .nav-container { max-width: 100%; width: 100%; flex-direction: column; align-items: flex-start; gap: 0; padding: 20px 10px; }
  .nav-link { width: 100%; padding: 14px 16px; border-radius: 8px; font-size: 14px; border-bottom: 1px solid rgba(27, 51, 87, 0.6); }
  .nav-link::after { display: none; }
  .nav-link:hover { background: rgba(242, 193, 78, 0.15); }
  .mobile-menu-overlay.active { display: block; opacity: 1; }
  .mobile-menu-overlay { display: none; opacity: 0; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.6); z-index: 998; transition: opacity 0.3s ease; }
  .footer-container { grid-template-columns: 1fr; gap: 30px; padding: 40px 20px 25px; }
  .footer-bottom { padding: 15px 10px; }
  .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 (min-width: 769px) {
  .mobile-nav-buttons { display: none; }
  .main-nav { display: flex; }
}
@media (min-width: 769px) and (max-width: 1200px) {
  .nav-container { padding: 0 15px; }
  .nav-link { padding: 10px 10px; font-size: 13px; }
}
/* 移动端内容区防溢出（系统追加，请勿删除） */
@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;
}
