:root { --header-offset: 122px; --primary: #113B7A; --secondary: #1D5FD1; --btn-gradient: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%); --card-bg: #10233F; --text-main: #F3F8FF; --text-sec: #AFC4E8; --border-color: #244D84; --glow: #4FA8FF; --gold: #F2C14E; --divider: #1B3357; --deep-navy: #08162B; }
* { box-sizing: border-box; }
body { margin: 0; padding-top: var(--header-offset); font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; background-color: var(--deep-navy); color: var(--text-main); }
.site-header { position: fixed; top: 0; left: 0; width: 100%; z-index: 1000; background-color: var(--primary); box-shadow: 0 4px 20px rgba(0,0,0,0.6); }
.header-top { height: 68px; display: flex; align-items: center; overflow: hidden; background: linear-gradient(90deg, #0A2550 0%, #113B7A 100%); width: 100%; }
.header-container { width: 100%; max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; padding: 0 30px; height: 100%; }
.logo { display: block; font-size: 24px; font-weight: 800; color: var(--gold); text-decoration: none; text-transform: uppercase; letter-spacing: 1px; text-shadow: 0 0 10px rgba(242,193,78,0.4); }
.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; }
.btn { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; border-radius: 6px; font-weight: 700; transition: all 0.3s ease; border: none; cursor: pointer; }
.btn-login { background: transparent; color: var(--text-main); border: 2px solid var(--glow); padding: 8px 20px; font-size: 14px; }
.btn-login:hover { background: rgba(79,168,255,0.15); box-shadow: 0 0 12px var(--glow); }
.btn-register { background: var(--btn-gradient); color: #fff; padding: 10px 24px; font-size: 14px; box-shadow: 0 4px 12px rgba(43,115,246,0.4); }
.btn-register:hover { box-shadow: 0 6px 20px rgba(43,115,246,0.7); transform: translateY(-1px); }
.mobile-nav-buttons { display: none; min-height: 48px; }
.hamburger-menu { display: none; position: absolute; left: 15px; top: 10px; width: 40px; height: 40px; background: transparent; border: 1px solid rgba(255,255,255,0.2); border-radius: 4px; cursor: pointer; z-index: 1002; flex-direction: column; justify-content: center; align-items: center; gap: 5px; padding: 0; }
.hamburger-menu span { display: block; width: 22px; height: 2px; background-color: var(--text-main); transition: all 0.3s ease; }
.hamburger-menu.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger-menu.active span:nth-child(2) { opacity: 0; }
.hamburger-menu.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
.main-nav { height: 52px; display: flex; align-items: center; overflow: hidden; background: var(--secondary); width: 100%; border-top: 1px solid rgba(255,255,255,0.05); }
.nav-container { max-width: 1200px; margin: 0 auto; width: 100%; display: flex; flex-direction: row; justify-content: center; align-items: center; padding: 0 20px; height: 100%; gap: 4px; }
.nav-link { color: var(--text-main); text-decoration: none; font-size: 14px; font-weight: 600; padding: 8px 14px; border-radius: 4px; transition: all 0.25s ease; white-space: nowrap; }
.nav-link:hover { color: var(--gold); background: rgba(0,0,0,0.2); }
.nav-overlay { display: none; }
.site-footer { background-color: var(--card-bg); border-top: 3px solid var(--secondary); color: var(--text-sec); margin-top: 40px; }
.footer-container { max-width: 1200px; margin: 0 auto; padding: 40px 20px 0; }
.footer-top-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 30px; margin-bottom: 30px; }
.footer-col { text-align: left; }
.footer-logo { display: inline-block; font-size: 22px; font-weight: 800; color: var(--gold); text-decoration: none; margin-bottom: 15px; text-transform: uppercase; }
.footer-description { font-size: 14px; line-height: 1.7; color: var(--text-sec); margin: 0 0 15px; word-wrap: break-word; overflow-wrap: break-word; }
.footer-col-title { color: var(--text-main); font-size: 16px; font-weight: 700; margin: 0 0 15px; padding-bottom: 8px; border-bottom: 2px solid var(--border-color); display: inline-block; }
.footer-nav { list-style: none; padding: 0; margin: 0; }
.footer-nav li { margin-bottom: 8px; }
.footer-nav a { color: var(--text-sec); text-decoration: none; font-size: 14px; transition: color 0.2s ease; }
.footer-nav a:hover { color: var(--gold); }
.footer-slot-anchor-inner { min-height: 0; }
.footer-mid-section { display: flex; flex-direction: column; gap: 15px; margin-bottom: 20px; }
.footer-mid-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.footer-bottom { border-top: 1px solid var(--divider); padding: 20px 0; text-align: center; }
.footer-bottom p { margin: 0; font-size: 13px; color: var(--text-sec); }
@media (max-width: 768px) {
  :root { --header-offset: 110px; }
  .header-top { height: 60px !important; }
  .header-container { padding: 0 15px; width: 100%; max-width: none; position: relative; }
  .logo { position: absolute !important; left: 50% !important; transform: translateX(-50%) !important; display: flex !important; align-items: center !important; justify-content: center !important; max-width: calc(100% - 120px); font-size: 18px; }
  .logo img { display: block !important; max-width: 100%; height: auto; max-height: 56px; }
  .desktop-nav-buttons { display: none !important; }
  .hamburger-menu { display: flex; }
  .mobile-nav-buttons { display: flex !important; align-items: center; justify-content: center; width: 100%; max-width: 100%; box-sizing: border-box; padding: 0 15px; overflow: hidden; gap: 10px; flex-wrap: nowrap; background-color: var(--deep-navy); }
  .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 { display: none; position: fixed; top: 0; left: 0; width: 80%; max-width: 300px; height: 100vh; background-color: var(--deep-navy); flex-direction: column; justify-content: flex-start; align-items: stretch; padding: 80px 0 20px; transform: translateX(-100%); transition: transform 0.3s ease; z-index: 1001; overflow-y: auto; border-right: 1px solid var(--border-color); }
  .main-nav.active { display: flex; transform: translateX(0); }
  .nav-container { flex-direction: column; justify-content: flex-start; align-items: stretch; padding: 0; gap: 0; height: auto; }
  .nav-link { padding: 15px 25px; font-size: 15px; border-bottom: 1px solid var(--divider); text-align: left; }
  .nav-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.7); z-index: 999; }
  .nav-overlay.active { display: block; }
  body.no-scroll { overflow: hidden; }
  .footer-top-grid { grid-template-columns: 1fr; gap: 25px; }
  .footer-mid-row { grid-template-columns: 1fr 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;
}
