:root { --header-offset: 122px; --primary: #26A9E0; --secondary: #FFFFFF; --login: #EA7C07; --bg: #FFFFFF; --dark: #000000; --text-dark: #1a1a1a; --text-muted: #555555; --border-light: #e0e0e0; }
* { box-sizing: border-box; }
body { margin: 0; padding-top: var(--header-offset); font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif; }

/* ===== HEADER ===== */
.site-header { position: fixed; top: 0; left: 0; right: 0; width: 100%; z-index: 1000; box-shadow: 0 3px 12px rgba(0,0,0,0.15); }
.header-top { width: 100%; height: 68px; min-height: 68px; display: flex; align-items: center; overflow: hidden; background-color: var(--secondary); border-bottom: 1px solid var(--border-light); }
.header-container { width: 100%; max-width: 1200px; height: 100%; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; padding-left: 30px; padding-right: 30px; }
.logo { display: inline-block; font-size: 32px; font-weight: 800; color: var(--primary); text-decoration: none; letter-spacing: -0.5px; 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 { display: none; min-height: 48px; }
.btn { display: inline-block; padding: 10px 22px; border-radius: 6px; font-size: 14px; font-weight: 700; text-decoration: none; text-align: center; transition: opacity 0.2s ease, transform 0.2s ease; border: none; cursor: pointer; white-space: nowrap; }
.btn:hover { opacity: 0.9; transform: translateY(-1px); }
.btn-login { background-color: var(--login); color: #FFFFFF; }
.btn-register { background-color: var(--primary); color: #FFFFFF; }

.main-nav { width: 100%; height: 52px; min-height: 52px; display: flex; align-items: center; overflow: hidden; background-color: var(--primary); }
.nav-container { width: 100%; max-width: 1200px; height: 100%; margin: 0 auto; display: flex; flex-direction: row; justify-content: center; align-items: center; padding: 0 20px; }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: row; justify-content: center; align-items: center; gap: 4px; width: 100%; }
.nav-list li { margin: 0; padding: 0; }
.nav-list a { display: block; padding: 14px 10px; color: #FFFFFF; text-decoration: none; font-size: 14px; font-weight: 600; white-space: nowrap; transition: background-color 0.2s ease, color 0.2s ease; border-radius: 4px; }
.nav-list a:hover { background-color: rgba(255,255,255,0.18); }
.hamburger-menu { display: none; }
.nav-overlay { display: none; }

/* ===== FOOTER ===== */
.site-footer { background-color: #0B2239; color: #d8e4ee; margin-top: 40px; }
.footer-container { width: 100%; max-width: 1200px; margin: 0 auto; padding-left: 30px; padding-right: 30px; }
.footer-top { padding: 48px 0 32px; }
.footer-top-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; }
.footer-col { min-width: 0; }
.footer-about .footer-logo { display: inline-block; font-size: 30px; font-weight: 800; color: var(--primary); text-decoration: none; margin-bottom: 12px; letter-spacing: -0.5px; }
.footer-description { font-size: 14px; line-height: 1.7; color: #b6c7d6; margin: 0 0 10px; word-wrap: break-word; overflow-wrap: break-word; }
.footer-title { font-size: 16px; font-weight: 700; color: #FFFFFF; margin: 0 0 16px; }
.footer-nav { list-style: none; margin: 0; padding: 0; }
.footer-nav li { margin-bottom: 9px; }
.footer-nav a { color: #b6c7d6; text-decoration: none; font-size: 14px; line-height: 1.5; transition: color 0.2s ease; display: inline-block; }
.footer-nav a:hover { color: var(--primary); }
.footer-mid { padding: 8px 0 24px; }
.footer-mid-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin: 8px 0; }
.footer-slot-bottom { padding: 0 0 8px; }
.footer-bottom { background-color: #071829; border-top: 1px solid rgba(255,255,255,0.08); padding: 18px 0; text-align: center; }
.footer-bottom p { margin: 0; font-size: 13px; color: #8fa5b8; }
.footer-slot-anchor-inner:empty { display: block; }

/* ===== MOBILE ===== */
@media (max-width: 768px) {
  :root { --header-offset: 110px; }
  .header-top { height: 60px; min-height: 60px; }
  .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: 26px; }
  .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-left: 15px; padding-right: 15px; overflow: hidden; gap: 10px; flex-wrap: nowrap; min-height: 48px; background-color: var(--secondary); border-bottom: 1px solid var(--border-light); }
  .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; min-height: 48px; background-color: transparent; position: fixed; top: var(--header-offset); left: 0; right: 0; display: none; flex-direction: column; width: 100%; max-width: 320px; padding: 12px 0; border-radius: 0 0 8px 0; box-shadow: 4px 4px 20px rgba(0,0,0,0.25); z-index: 1001; transition: transform 0.3s ease; }
  .main-nav-active { display: block !important; }
  .nav-container { flex-direction: column; justify-content: flex-start; align-items: stretch; padding: 0; height: auto; max-height: calc(100vh - var(--header-offset) - 20px); overflow-y: auto; background-color: var(--primary); border-radius: 0 0 8px 0; }
  .nav-list { flex-direction: column; width: 100%; gap: 0; align-items: stretch; }
  .nav-list li { border-bottom: 1px solid rgba(255,255,255,0.12); }
  .nav-list a { padding: 14px 20px; font-size: 15px; border-radius: 0; }
  .hamburger-menu { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px; width: 44px; height: 44px; background: transparent; border: none; cursor: pointer; padding: 0; position: absolute; left: 10px; top: 50%; transform: translateY(-50%); z-index: 1002; }
  .hamburger-menu span { display: block; width: 24px; height: 3px; background-color: var(--primary); border-radius: 2px; transition: transform 0.3s ease, opacity 0.3s ease; }
  .hamburger-menu.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .hamburger-menu.active span:nth-child(2) { opacity: 0; }
  .hamburger-menu.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  .nav-overlay { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background-color: rgba(0,0,0,0.5); z-index: 999; }
  .nav-overlay.active { display: block; }
  .footer-top-grid { grid-template-columns: 1fr; gap: 26px; }
  .footer-mid-grid { grid-template-columns: 1fr 1fr; }
  .footer-container { padding-left: 15px; padding-right: 15px; }
  .footer-top { padding: 32px 0 24px; }
  .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;
}
