:root { --primary: #26A9E0; --secondary: #FFFFFF; --login: #EA7C07; --bg: #FFFFFF; --text-dark: #000000; --header-offset: 122px; }
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { padding-top: var(--header-offset); background: var(--bg); color: var(--text-dark); font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif; }
img { max-width: 100%; height: auto; }
a { text-decoration: none; }

/* ===== HEADER ===== */
.site-header { position: fixed; top: 0; left: 0; right: 0; width: 100%; z-index: 1000; background: var(--primary); box-shadow: 0 2px 12px rgba(0,0,0,0.18); }
.header-top { box-sizing: border-box; height: 68px; min-height: 68px; display: flex; align-items: center; overflow: hidden; background: var(--primary); 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: 30px; padding-right: 30px; }
.logo { display: inline-block; color: var(--secondary); font-size: 26px; font-weight: 800; letter-spacing: 0.5px; line-height: 1.1; white-space: nowrap; }
.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-align: center; text-decoration: none; border: none; border-radius: 8px; cursor: pointer; font-weight: 700; line-height: 1.2; transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease; }
.btn:hover { transform: translateY(-1px); opacity: 0.95; }
.btn-login { background: var(--login); color: #FFFFFF; padding: 10px 20px; font-size: 14px; box-shadow: 0 3px 10px rgba(234,124,7,0.35); }
.btn-register { background: #FFFFFF; color: var(--primary); padding: 10px 20px; font-size: 14px; box-shadow: 0 3px 10px rgba(0,0,0,0.2); border: 2px solid #FFFFFF; }

.main-nav { box-sizing: border-box; height: 52px; min-height: 52px; display: flex; align-items: center; overflow: hidden; background: #FFFFFF; width: 100%; border-top: 1px solid rgba(38,169,224,0.25); }
.nav-container { box-sizing: border-box; width: 100%; height: 100%; max-width: 1200px; margin: 0 auto; display: flex; flex-direction: row; justify-content: center; align-items: center; padding: 0 20px; position: relative; }
.nav-menu { display: flex; flex-direction: row; justify-content: center; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; flex-wrap: nowrap; }
.nav-menu li { margin: 0; }
.nav-link { display: block; padding: 8px 12px; color: var(--text-dark); font-size: 14px; font-weight: 600; white-space: nowrap; border-radius: 6px; transition: color 0.2s ease, background 0.2s ease; }
.nav-link:hover, .nav-link.active { color: var(--primary); background: rgba(38,169,224,0.1); }
.hamburger-menu { display: none; background: transparent; border: none; cursor: pointer; padding: 8px; flex-direction: column; justify-content: center; align-items: center; gap: 5px; z-index: 1001; }
.hamburger-menu span { display: block; width: 24px; height: 3px; background: var(--text-dark); 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: rgba(0,0,0,0.5); z-index: 999; opacity: 0; transition: opacity 0.3s ease; }
.nav-overlay.active { display: block; opacity: 1; }
body.no-scroll { overflow: hidden; }

/* ===== FOOTER ===== */
.site-footer { background: #0E2A3A; color: #E6F2F8; margin-top: 40px; }
.footer-container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.footer-top { padding: 48px 0 28px; border-bottom: 1px solid rgba(255,255,255,0.12); }
.footer-top-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; align-items: start; }
.footer-col { min-width: 0; }
.footer-logo { display: inline-block; color: #FFFFFF; font-size: 26px; font-weight: 800; letter-spacing: 0.5px; margin-bottom: 14px; }
.footer-logo img { display: block; max-height: 56px; width: auto; max-width: 220px; object-fit: contain; }
.footer-description { font-size: 14px; line-height: 1.7; color: #B9D8E6; margin: 0 0 14px; word-wrap: break-word; overflow-wrap: break-word; }
.footer-title { font-size: 16px; font-weight: 700; color: #FFFFFF; margin: 0 0 14px; padding-bottom: 8px; border-bottom: 2px solid var(--primary); display: inline-block; }
.footer-nav { list-style: none; margin: 0; padding: 0; }
.footer-nav li { margin: 0 0 10px; }
.footer-nav a { display: inline-block; color: #B9D8E6; font-size: 14px; line-height: 1.5; transition: color 0.2s ease, padding-left 0.2s ease; }
.footer-nav a:hover { color: var(--primary); padding-left: 4px; }
.footer-dynamic-col { min-height: 10px; }
.footer-mid { padding: 24px 0; }
.footer-mid-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.footer-slot-anchor, .footer-slot-anchor-inner { min-height: 0; }
.footer-bottom { background: #081C27; padding: 18px 0; border-top: 1px solid rgba(255,255,255,0.08); }
.footer-copyright { margin: 0; text-align: center; font-size: 13px; color: #9FC2D2; }

@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; position: relative; }
  .logo { flex: 1 !important; display: flex !important; justify-content: center !important; align-items: center !important; font-size: 22px; }
  .logo img { 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; min-height: 48px; }
  .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; display: none; position: fixed; top: 0; left: 0; width: 82%; max-width: 320px; height: 100vh !important; max-height: 100vh; z-index: 1000; background: #FFFFFF; overflow-y: auto; transform: translateX(-100%); transition: transform 0.3s ease; border-top: none; box-shadow: 4px 0 20px rgba(0,0,0,0.2); }
  .main-nav.active { display: block; transform: translateX(0); }
  .nav-container { width: 100%; max-width: none; height: auto; padding: 70px 0 20px; display: flex; flex-direction: column; justify-content: flex-start; align-items: stretch; }
  .hamburger-menu { display: flex; position: absolute; left: 10px; top: 50%; transform: translateY(-50%); }
  .nav-menu { display: flex; flex-direction: column; justify-content: flex-start; align-items: stretch; gap: 0; width: 100%; }
  .nav-menu li { width: 100%; border-bottom: 1px solid #EEF6FA; }
  .nav-link { display: block; padding: 14px 20px; font-size: 15px; border-radius: 0; white-space: normal; }
  .footer-top { padding: 32px 0 20px; }
  .footer-top-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-mid-grid { grid-template-columns: 1fr; gap: 16px; }
  .footer-logo { font-size: 22px; }
  .footer-copyright { font-size: 12px; padding: 0 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 (max-width: 480px) {
  .footer-top-grid { grid-template-columns: 1fr; }
}
/* 移动端内容区防溢出（系统追加，请勿删除） */
@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;
}
