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

/* ===== HEADER ===== */
.site-header { position: fixed; top: 0; left: 0; right: 0; width: 100%; max-width: 100%; overflow-x: hidden; z-index: 1000; box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18); border-bottom: 1px solid rgba(0, 0, 0, 0.06); }
.header-top { box-sizing: border-box; height: 68px; min-height: 68px; display: flex; align-items: center; overflow: hidden; background: linear-gradient(135deg, #0f6fa8 0%, #26A9E0 100%); 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; gap: 16px; }
.logo { display: inline-block; font-size: 26px; font-weight: 800; letter-spacing: 0.5px; color: #FFFFFF; line-height: 1; white-space: nowrap; text-shadow: 0 2px 6px rgba(0, 0, 0, 0.25); }
.logo:hover { color: #FFFFFF; }
.logo img { display: block; max-height: 60px; height: auto; width: auto; max-width: 280px; object-fit: contain; }
.hamburger-menu { display: none; background: transparent; border: 1px solid rgba(255, 255, 255, 0.6); border-radius: 8px; width: 44px; height: 44px; padding: 0; cursor: pointer; flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.hamburger-line { display: block; width: 22px; height: 2px; background: #FFFFFF; border-radius: 2px; transition: transform 0.3s ease, opacity 0.3s ease; }
.hamburger-menu.active .hamburger-line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger-menu.active .hamburger-line:nth-child(2) { opacity: 0; }
.hamburger-menu.active .hamburger-line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.desktop-nav-buttons { display: flex; gap: 10px; align-items: center; flex-shrink: 0; }
.mobile-nav-buttons { display: none; min-height: 48px; }
.btn { display: inline-flex; align-items: center; justify-content: center; text-align: center; font-weight: 700; font-size: 15px; line-height: 1.2; padding: 10px 20px; border-radius: 8px; border: none; cursor: pointer; transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease; text-decoration: none; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn-login { background: var(--accent-login); color: #FFFFFF; box-shadow: 0 3px 10px rgba(234, 124, 7, 0.4); }
.btn-login:hover { background: #c96605; color: #FFFFFF; }
.btn-register { background: #FFFFFF; color: #0f6fa8; box-shadow: 0 3px 10px rgba(255, 255, 255, 0.35); border: 2px solid #FFFFFF; }
.btn-register:hover { background: #eaf7fd; color: #0f6fa8; }
.main-nav { box-sizing: border-box; height: 52px; min-height: 52px; display: flex; align-items: center; overflow: hidden; background: #0b1f2e; width: 100%; }
.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; flex-wrap: nowrap; gap: 4px; padding: 0 16px; }
.nav-link { display: inline-flex; align-items: center; height: 100%; padding: 0 12px; font-size: 14px; font-weight: 600; color: #d7eefb; white-space: nowrap; transition: color 0.2s ease, background 0.2s ease; border-bottom: 3px solid transparent; }
.nav-link:hover, .nav-link.active { color: #FFFFFF; background: rgba(38, 169, 224, 0.22); border-bottom-color: var(--primary); }
.nav-overlay { display: none; position: fixed; inset: 0; background: rgba(0, 0, 0, 0.55); 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: #0b1f2e; color: #d7eefb; font-size: 15px; line-height: 1.65; }
.footer-container { box-sizing: border-box; width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.footer-top { padding: 48px 0 32px; 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: #FFFFFF; margin-bottom: 14px; letter-spacing: 0.5px; }
.footer-about .footer-logo:hover { color: var(--primary); }
.footer-description { margin: 0 0 12px; color: #b9d9ec; font-size: 14px; word-wrap: break-word; overflow-wrap: break-word; }
.footer-heading { margin: 0 0 14px; font-size: 17px; font-weight: 700; color: #FFFFFF; }
.footer-nav { list-style: none; margin: 0; padding: 0; }
.footer-nav li { margin-bottom: 8px; }
.footer-nav a { color: #b9d9ec; font-size: 14px; transition: color 0.2s ease, padding-left 0.2s ease; display: inline-block; }
.footer-nav a:hover { color: #FFFFFF; padding-left: 4px; }
.footer-mid { padding: 28px 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: 12px 0; }
.footer-mid-cell { min-width: 0; }
.footer-slot-anchor-inner { width: 100%; }
.footer-bottom { padding: 20px 0; background: #071521; }
.footer-copyright { margin: 0; text-align: center; font-size: 14px; color: #9dbdd2; }

/* ===== 移动端内容区防溢出 ===== */
@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;
  }
}

/* ===== 移动端 HEADER ===== */
@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; }
  .hamburger-menu { display: flex; z-index: 1001; flex-shrink: 0; }
  .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: 20px; }
  .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;
    min-height: 48px;
    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: #0f6fa8;
  }
  .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; display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100vh !important; max-height: 100vh; background: #0b1f2e; flex-direction: column; justify-content: flex-start; align-items: stretch; transform: translateX(-100%); transition: transform 0.3s ease; z-index: 1000; overflow-y: auto; padding-top: 128px; }
  .main-nav.active { display: flex; transform: translateX(0); }
  .nav-container { width: 100%; max-width: none; height: auto; flex-direction: column; align-items: stretch; justify-content: flex-start; padding: 12px 20px 40px; gap: 0; }
  .nav-link { height: auto; padding: 14px 8px; font-size: 16px; border-bottom: 1px solid rgba(255, 255, 255, 0.1); border-left: 3px solid transparent; justify-content: flex-start; }
  .nav-link:hover, .nav-link.active { background: rgba(38, 169, 224, 0.18); border-bottom-color: rgba(255, 255, 255, 0.1); border-left-color: var(--primary); }
}

/* ===== 移动端 FOOTER ===== */
@media (max-width: 768px) {
  .footer-top { padding: 32px 0 24px; }
  .footer-top-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-mid-grid { grid-template-columns: 1fr; gap: 12px; }
  .footer-container { padding: 0 16px; }
  .footer-copyright { font-size: 13px; }
}
/* 移动端内容区防溢出（系统追加，请勿删除） */
@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;
}
