:root { --primary: #26A9E0; --primary-dark: #1B87B5; --primary-light: #E8F7FD; --secondary: #FFFFFF; --login: #EA7C07; --dark: #0B2A3A; --text: #1A1A1A; --muted: #5A6B75; --header-offset: 122px; }
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { padding-top: var(--header-offset); font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif; color: var(--text); background: #FFFFFF; overflow-x: hidden; }
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-color: var(--dark); box-shadow: 0 4px 18px rgba(0,0,0,0.28); border-bottom: 2px solid var(--primary); }
.header-top { width: 100%; height: 68px; min-height: 68px; display: flex; align-items: center; overflow: hidden; background-color: var(--primary); }
.header-container { 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; font-size: 28px; font-weight: 800; letter-spacing: 0.5px; color: var(--secondary); text-transform: lowercase; line-height: 1; text-shadow: 0 2px 6px rgba(0,0,0,0.25); }
.logo img { display: block; max-height: 60px; height: auto; width: auto; max-width: 280px; object-fit: contain; }
.logo:hover { color: #FFFFFF; }
.desktop-nav-buttons { display: flex; gap: 12px; align-items: center; }
.desktop-nav-buttons .btn, .mobile-nav-buttons .btn { display: inline-block; border-radius: 8px; font-weight: 700; text-align: center; text-decoration: none; border: none; cursor: pointer; transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease; }
.btn-login { background-color: var(--login); color: #FFFFFF; padding: 10px 22px; font-size: 15px; box-shadow: 0 4px 12px rgba(234,124,7,0.35); }
.btn-login:hover { background-color: #C96704; transform: translateY(-1px); }
.btn-register { background-color: var(--secondary); color: var(--primary-dark); padding: 10px 22px; font-size: 15px; box-shadow: 0 4px 12px rgba(0,0,0,0.18); }
.btn-register:hover { background-color: #EAF8FE; transform: translateY(-1px); }

/* mobile buttons row: hidden globally */
.mobile-nav-buttons { display: none; box-sizing: border-box; min-height: 48px; }

/* main nav */
.main-nav { width: 100%; height: 52px; min-height: 52px; display: flex; align-items: center; overflow: hidden; background-color: var(--secondary); }
.nav-container { width: 100%; height: 100%; max-width: 1200px; 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; flex-wrap: nowrap; }
.nav-list li { margin: 0; padding: 0; }
.nav-link { display: block; padding: 8px 11px; font-size: 14px; font-weight: 600; color: #12303F; border-radius: 6px; white-space: nowrap; transition: color 0.2s ease, background-color 0.2s ease; }
.nav-link:hover { color: var(--primary-dark); background-color: var(--primary-light); }
.nav-link.active { color: #FFFFFF; background-color: var(--primary); }
.hamburger-menu { display: none; }

/* overlay */
.nav-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.55); opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0.3s ease; z-index: 999; }
.nav-overlay.active { opacity: 1; visibility: visible; }

/* ============ FOOTER ============ */
.site-footer { background-color: var(--dark); color: #D8E4EB; margin-top: 40px; }
.footer-container { max-width: 1200px; margin: 0 auto; padding: 0 30px; }
.footer-top { padding: 46px 0 30px; 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-about .footer-logo { display: inline-block; font-size: 26px; font-weight: 800; color: var(--secondary); letter-spacing: 0.5px; text-transform: lowercase; margin-bottom: 12px; }
.footer-about .footer-logo:hover { color: var(--primary); }
.footer-description { font-size: 14px; line-height: 1.7; color: #A9C3D1; margin: 0 0 14px; word-wrap: break-word; overflow-wrap: break-word; }
.footer-title { font-size: 16px; font-weight: 700; color: var(--secondary); margin: 0 0 14px; padding-bottom: 8px; position: relative; }
.footer-title::after { content: ''; position: absolute; left: 0; bottom: 0; width: 34px; height: 3px; background: var(--primary); border-radius: 2px; }
.footer-nav { list-style: none; margin: 0; padding: 0; }
.footer-nav li { margin: 0 0 9px; }
.footer-nav a { color: #A9C3D1; font-size: 14px; line-height: 1.5; transition: color 0.2s ease, padding-left 0.2s ease; display: inline-block; }
.footer-nav a:hover { color: var(--primary); padding-left: 4px; }
.footer-dynamic-col { min-height: 10px; }
.footer-slot-anchor-inner { min-height: 1px; width: 100%; }
.footer-mid { padding: 26px 0; border-bottom: 1px solid rgba(255,255,255,0.12); }
.footer-mid-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 12px; }
.footer-mid-cell { min-width: 0; }
.footer-bottom { padding: 20px 0; text-align: center; }
.footer-bottom .copyright { margin: 0; font-size: 13px; color: #8AA9B8; }

/* ============ MOBILE ============ */
@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; }
  .logo { flex: 1 !important; display: flex !important; justify-content: center !important; align-items: center !important; order: 2; text-align: center; }
  .logo img { display: block !important; max-width: 100%; height: auto; 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%; min-height: 48px; box-sizing: border-box; padding: 6px 15px; overflow: hidden; gap: 10px; flex-wrap: nowrap; background-color: var(--dark); }
  .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; position: fixed; top: calc(var(--header-offset) - 48px); left: 0; width: 100%; display: none; flex-direction: column; justify-content: flex-start; align-items: stretch; overflow-y: auto; background-color: var(--secondary); z-index: 1001; box-shadow: 0 10px 26px rgba(0,0,0,0.3); transform: translateX(-100%); transition: transform 0.3s ease; }
  .main-nav.active { display: block; transform: translateX(0); }
  .main-nav.open { display: block; transform: translateX(0); }
  .nav-container { width: 100%; max-width: none; padding: 8px 15px; height: auto; flex-direction: column; justify-content: flex-start; align-items: stretch; }
  .nav-list { flex-direction: column; justify-content: flex-start; align-items: stretch; gap: 0; width: 100%; }
  .nav-list li { border-bottom: 1px solid #E8EEF2; }
  .nav-list li:last-child { border-bottom: none; }
  .nav-link { padding: 13px 10px; font-size: 15px; white-space: normal; border-radius: 0; }
  .hamburger-menu { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px; width: 44px; height: 44px; min-width: 44px; padding: 0; background: transparent; border: none; cursor: pointer; order: 1; z-index: 1002; }
  .hamburger-menu span { display: block; width: 24px; height: 3px; background-color: var(--secondary); 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); }
  .footer-top-grid { grid-template-columns: 1fr; gap: 22px; }
  .footer-mid-grid { grid-template-columns: 1fr 1fr; }
  .footer-container { padding: 0 18px; }
  .footer-top { padding: 34px 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: 480px) {
  .footer-mid-grid { grid-template-columns: 1fr; }
}
body.no-scroll { overflow: 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;
}
