:root { --header-offset: 122px; --primary-color: #26A9E0; --secondary-color: #FFFFFF; --login-color: #EA7C07; --text-dark: #000000; --bg-color: #FFFFFF; }
*, *::before, *::after { 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; color: #333; background: var(--bg-color); }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; }

/* ============ HEADER ============ */
.site-header { position: fixed; top: 0; left: 0; right: 0; width: 100%; z-index: 1000; box-shadow: 0 2px 12px rgba(0,0,0,0.12); background: var(--primary-color); }
.header-top { box-sizing: border-box; height: 68px; min-height: 68px; display: flex; align-items: center; overflow: hidden; background: var(--primary-color); 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: 24px; padding-right: 24px; }
.logo { color: #FFFFFF; font-size: 26px; font-weight: 800; letter-spacing: 0.5px; display: inline-block; line-height: 1.1; }
.logo img { display: block; max-height: 60px; height: auto; width: auto; max-width: 280px; object-fit: contain; }
.desktop-nav-buttons { display: flex; gap: 10px; 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: 8px; font-weight: 700; cursor: pointer; transition: filter 0.2s ease, transform 0.2s ease; border: none; white-space: nowrap; }
.btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn-login { background: var(--login-color); color: #FFFFFF; padding: 10px 20px; font-size: 14px; box-shadow: 0 3px 10px rgba(234,124,7,0.35); }
.btn-register { background: #000000; color: #FFFFFF; padding: 10px 20px; font-size: 14px; box-shadow: 0 3px 10px rgba(0,0,0,0.3); }
.main-nav { box-sizing: border-box; height: 52px; min-height: 52px; display: flex; align-items: center; overflow: hidden; background: var(--secondary-color); width: 100%; border-top: 1px solid rgba(0,0,0,0.06); }
.nav-container { box-sizing: border-box; height: 100%; max-width: 1200px; margin: 0 auto; display: flex; flex-direction: row; justify-content: center; align-items: center; padding: 0 20px; gap: 22px; }
.nav-link { color: #000000; font-size: 14px; font-weight: 600; padding: 6px 2px; position: relative; display: inline-block; transition: color 0.2s ease; }
.nav-link:hover, .nav-link.active { color: var(--login-color); }
.hamburger-menu { display: none; width: 40px; height: 40px; background: transparent; border: none; cursor: pointer; padding: 8px; flex-direction: column; justify-content: space-between; }
.hamburger-menu span { display: block; width: 100%; height: 3px; background: #FFFFFF; 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; }

/* ============ FOOTER ============ */
.site-footer { background: #0F2A3A; color: #D6E6EF; padding: 36px 20px 0; margin-top: 40px; }
.footer-slot-anchor { width: 100%; }
.footer-top { max-width: 1200px; margin: 0 auto; }
.footer-top-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding-bottom: 28px; border-bottom: 1px solid rgba(255,255,255,0.12); }
.footer-col { min-width: 0; }
.footer-about .footer-logo { color: #FFFFFF; font-size: 24px; font-weight: 800; display: inline-block; margin-bottom: 12px; }
.footer-description { font-size: 14px; line-height: 1.7; color: #B9D2DF; margin: 0 0 12px; word-wrap: break-word; overflow-wrap: break-word; }
.footer-heading { color: #FFFFFF; font-size: 16px; font-weight: 700; margin: 0 0 14px; }
.footer-nav { list-style: none; padding: 0; margin: 0; }
.footer-nav li { margin-bottom: 9px; }
.footer-nav a { color: #B9D2DF; font-size: 14px; transition: color 0.2s ease; }
.footer-nav a:hover { color: var(--primary-color); }
.footer-dynamic-col { min-width: 0; }
.footer-slot-anchor-inner { width: 100%; }
.footer-mid { max-width: 1200px; margin: 0 auto; padding: 20px 0; }
.footer-mid-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.footer-bottom { max-width: 1200px; margin: 0 auto; padding: 16px 0 20px; border-top: 1px solid rgba(255,255,255,0.12); text-align: center; }
.footer-bottom p { margin: 0; font-size: 13px; color: #9FBACB; }

/* ============ RESPONSIVE (max-width:768px) ============ */
@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; position: relative; }
  .logo { 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: 8px 15px; overflow: hidden; gap: 10px; flex-wrap: nowrap; background: var(--secondary-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; background: var(--primary-color); position: relative; }
  .hamburger-menu { display: flex; position: absolute; left: 12px; top: 50%; transform: translateY(-50%); z-index: 1001; }
  .nav-container { position: fixed; top: 0; left: 0; height: 100vh; width: 82%; max-width: 320px; background: #0F2A3A; flex-direction: column; justify-content: flex-start; align-items: flex-start; padding: 80px 24px 24px; gap: 4px; transform: translateX(-100%); transition: transform 0.3s ease; z-index: 1001; display: none; overflow-y: auto; }
  .nav-container.active { display: flex; transform: translateX(0); }
  .nav-link { color: #FFFFFF; font-size: 16px; padding: 12px 0; width: 100%; border-bottom: 1px solid rgba(255,255,255,0.1); }
  .nav-link:hover, .nav-link.active { color: var(--primary-color); }
  .nav-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100vh; background: rgba(0,0,0,0.55); z-index: 999; }
  .nav-overlay.active { display: block; }
  .footer-top-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
  .footer-mid-grid { 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: 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;
}
