:root { --header-offset: 122px; --primary: #2F6BFF; --secondary: #6FA3FF; --btn-gradient: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%); --bg-page: #F4F7FB; --card-bg: #FFFFFF; --text-main: #1F2D3D; --text-black: #000000; --border-color: #D6E2FF; --glow: #A5C4FF; }
* { 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: var(--text-main); background-color: var(--bg-page); }
.site-header { position: fixed; top: 0; left: 0; right: 0; width: 100%; z-index: 1000; box-shadow: 0 4px 18px rgba(31, 45, 61, 0.12); background-color: #FFFFFF; }
.header-top { box-sizing: border-box; height: 68px; min-height: 68px; width: 100%; display: flex; align-items: center; overflow: hidden; background-color: #FFFFFF; border-bottom: 1px solid var(--border-color); }
.header-container { box-sizing: border-box; width: 100%; height: 100%; max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; padding-left: 32px; padding-right: 32px; }
.logo { display: inline-block; font-size: 30px; font-weight: 800; letter-spacing: 0.5px; color: var(--primary); text-decoration: none; line-height: 1; }
.logo:hover { color: #1f55d6; }
.logo img { display: block; max-height: 60px; height: auto; width: auto; max-width: 280px; object-fit: contain; }
.desktop-nav-buttons { display: flex; align-items: center; gap: 12px; }
.btn { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; font-weight: 700; border-radius: 10px; padding: 10px 22px; font-size: 15px; line-height: 1.2; cursor: pointer; transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease; border: none; box-sizing: border-box; }
.btn-login { background: #FFFFFF; color: var(--primary); border: 2px solid var(--primary); }
.btn-login:hover { background: #EEF3FF; transform: translateY(-1px); }
.btn-register { background: var(--btn-gradient); color: #FFFFFF; box-shadow: 0 6px 16px rgba(47, 107, 255, 0.35); }
.btn-register:hover { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(47, 107, 255, 0.5); filter: brightness(1.05); }
.hamburger-menu { display: none; background: transparent; border: none; width: 44px; height: 44px; padding: 10px; cursor: pointer; flex-direction: column; justify-content: space-between; align-items: stretch; }
.hamburger-menu span { display: block; height: 3px; width: 100%; background-color: var(--primary); border-radius: 3px; 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); }
.mobile-nav-buttons { display: none; box-sizing: border-box; min-height: 48px; }
.main-nav { box-sizing: border-box; height: 52px; min-height: 52px; width: 100%; display: flex; align-items: center; overflow: hidden; background-color: var(--primary); }
.nav-container { box-sizing: border-box; height: 100%; width: 100%; max-width: 1200px; margin: 0 auto; display: flex; flex-direction: row; justify-content: center; align-items: center; padding: 0 20px; gap: 4px; }
.nav-link { display: inline-flex; align-items: center; height: 100%; padding: 0 14px; color: #FFFFFF; text-decoration: none; font-size: 15px; font-weight: 600; white-space: nowrap; border-bottom: 3px solid transparent; transition: background-color 0.2s ease, border-color 0.2s ease; }
.nav-link:hover { background-color: rgba(255, 255, 255, 0.14); border-bottom-color: var(--glow); }
.nav-link.active { border-bottom-color: #FFFFFF; }
.nav-overlay { display: none; }
.site-footer { background-color: #0E2147; color: #DCE6FA; margin-top: 0; }
.footer-container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 32px; box-sizing: border-box; }
.footer-top-row { padding: 24px 0 0; }
.footer-main { padding: 40px 0 24px; }
.footer-top-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.footer-col { min-width: 0; }
.footer-logo { display: inline-block; font-size: 28px; font-weight: 800; color: #FFFFFF; text-decoration: none; margin-bottom: 14px; letter-spacing: 0.5px; }
.footer-logo:hover { color: var(--glow); }
.footer-description { margin: 0 0 12px; font-size: 14px; line-height: 1.7; color: #B8C8E6; overflow-wrap: break-word; word-wrap: break-word; }
.footer-heading { margin: 0 0 16px; font-size: 17px; font-weight: 700; color: #FFFFFF; }
.footer-nav { list-style: none; margin: 0; padding: 0; }
.footer-nav li { margin-bottom: 10px; }
.footer-nav a { color: #B8C8E6; text-decoration: none; font-size: 14px; line-height: 1.5; transition: color 0.2s ease; }
.footer-nav a:hover { color: #FFFFFF; }
.footer-mid { margin-top: 32px; }
.footer-mid-row { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 16px; }
.footer-mid-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.footer-slot-anchor-inner { min-height: 1px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.12); padding: 18px 0; }
.footer-copyright { margin: 0; text-align: center; font-size: 13px; color: #9FB2D6; }

@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; height: 100%; }
  .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; }
  .hamburger-menu { display: flex; position: relative; z-index: 2; }
  .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;
    min-height: 48px;
    padding: 8px 15px;
    overflow: hidden;
    gap: 10px;
    flex-wrap: nowrap;
    background-color: #FFFFFF;
    border-bottom: 1px solid var(--border-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 {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 82%;
    max-width: 320px;
    height: 100vh;
    min-height: auto;
    max-height: 100vh;
    background-color: #0E2147;
    z-index: 1002;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    padding-top: 16px;
  }
  .main-nav.active { display: block; transform: translateX(0); }
  .nav-container { flex-direction: column; justify-content: flex-start; align-items: stretch; height: auto; padding: 8px 0; gap: 0; }
  .nav-link { height: auto; padding: 14px 24px; font-size: 16px; border-bottom: 1px solid rgba(255, 255, 255, 0.1); border-left: 3px solid transparent; white-space: normal; }
  .nav-link:hover { background-color: rgba(255, 255, 255, 0.08); border-bottom-color: rgba(255, 255, 255, 0.1); }
  .nav-link.active { border-left-color: var(--glow); background-color: rgba(255, 255, 255, 0.08); }
  .nav-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(0, 0, 0, 0.55);
    z-index: 1001;
    opacity: 0;
    transition: opacity 0.3s ease;
  }
  .nav-overlay.active { display: block; opacity: 1; }
  body.no-scroll { overflow: hidden; }
  .footer-container { padding: 0 15px; }
  .footer-top-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-mid-grid { grid-template-columns: 1fr 1fr; }
  .footer-main { padding: 28px 0 18px; }
  .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; }
}
/* 移动端内容区防溢出（系统追加，请勿删除） */
@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;
}
