:root {
  --header-offset: 122px;
  --primary: #2F6BFF;
  --primary-light: #6FA3FF;
  --primary-gradient: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
  --text-main: #1F2D3D;
  --text-dark: #000000;
  --card-bg: #FFFFFF;
  --background: #F4F7FB;
  --border-color: #D6E2FF;
  --glow: #A5C4FF;
}

body {
  padding-top: var(--header-offset);
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: var(--background);
  box-shadow: 0 4px 15px rgba(47, 107, 255, 0.2);
  font-family: 'Segoe UI', Roboto, Arial, sans-serif;
}

.header-top {
  background: #1B4FD8;
  width: 100%;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 40px;
  gap: 20px;
}

.logo {
  color: #FFFFFF;
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: 1px;
  text-decoration: none;
  display: inline-block;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.desktop-nav-buttons {
  display: flex;
  gap: 12px;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  border-radius: 30px;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  color: #FFFFFF;
  background: var(--primary-gradient);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(47, 107, 255, 0.35);
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(47, 107, 255, 0.5);
}

.btn-login {
  background: linear-gradient(180deg, #6FA3FF 0%, #4A8BFF 100%);
}

.main-nav {
  background: #FFFFFF;
  width: 100%;
  display: flex;
  border-top: 1px solid var(--border-color);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding: 8px 20px;
  gap: 6px;
  flex-wrap: wrap;
  width: 100%;
}

.nav-link {
  color: var(--text-main);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 8px;
  transition: all 0.3s ease;
  line-height: 1.4;
}

.nav-link:hover {
  color: var(--primary);
  background: rgba(111, 163, 255, 0.12);
}

.mobile-nav-buttons {
  display: none;
}

.hamburger-menu {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 12px;
  z-index: 1001;
  position: fixed;
  top: 12px;
  left: 16px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  background: #FFFFFF;
  border-radius: 50%;
  width: 46px;
  height: 46px;
  box-shadow: 0 2px 12px rgba(47, 107, 255, 0.2);
}

.hamburger-menu span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--primary);
  border-radius: 4px;
  transition: all 0.3s ease;
}

.hamburger-menu.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger-menu.active span:nth-child(2) {
  opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-menu-overlay {
  display: none;
}

.site-footer {
  background: #1B4FD8;
  color: #FFFFFF;
  font-family: 'Segoe UI', Roboto, Arial, sans-serif;
  padding: 60px 20px 20px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  margin-bottom: 50px;
}

.footer-logo {
  color: #FFFFFF;
  font-size: 2.2rem;
  font-weight: 900;
  text-decoration: none;
  display: inline-block;
  margin-bottom: 15px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

.footer-description {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0 0 20px;
}

.cert-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.15);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.footer-heading {
  color: #FFFFFF;
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 0 20px;
  position: relative;
  padding-bottom: 12px;
}

.footer-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--primary-light);
  border-radius: 2px;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-nav a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.3s, padding-left 0.3s;
}

.footer-nav a:hover {
  color: #FFFFFF;
  padding-left: 6px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 20px;
  text-align: center;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-disclaimer {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.85rem;
  margin-bottom: 10px;
}

.footer-copyright {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9rem;
  margin: 0;
}

@media (max-width: 768px) {
  :root {
    --header-offset: 110px;
  }

  body {
    padding-top: var(--header-offset);
    overflow-x: hidden;
  }

  .site-header {
    min-height: 0;
  }

  .header-top {
    background: #1B4FD8;
    position: relative;
  }

  .header-container {
    width: 100%;
    max-width: none;
    padding: 14px 50px;
    justify-content: center;
    align-items: center;
  }

  .logo {
    font-size: 1.8rem;
    text-align: center;
  }

  .desktop-nav-buttons {
    display: none;
  }

  .mobile-nav-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    background: #1B4FD8;
    padding: 8px 16px 14px;
    z-index: 1000;
  }

  .mobile-nav-buttons .btn {
    padding: 8px 20px;
    font-size: 0.9rem;
    flex: 1;
    max-width: 160px;
  }

  .main-nav {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 78%;
    max-width: 320px;
    background: #FFFFFF;
    border: none;
    border-right: 1px solid var(--border-color);
    padding: 80px 0 30px;
    transition: transform 0.3s ease;
    transform: translateX(-100%);
    z-index: 1002;
    overflow-y: auto;
  }

  .main-nav.active {
    display: flex;
    transform: translateX(0);
  }

  .nav-container {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: none;
    padding: 0;
    gap: 0;
  }

  .nav-link {
    color: var(--text-main);
    font-size: 1.05rem;
    padding: 15px 25px;
    border-bottom: 1px solid rgba(214, 226, 255, 0.4);
    border-radius: 0;
  }

  .nav-link:hover {
    background: rgba(47, 107, 255, 0.08);
  }

  .hamburger-menu {
    display: flex;
  }

  .mobile-menu-overlay {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1001;
  }

  .mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
  }

  .site-footer {
    padding: 50px 20px 20px;
  }

  .footer-container {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    padding: 0;
  }

  .footer-bottom {
    padding-top: 18px;
  }

  .page-content img {
    max-width: 100% !important;
    height: auto !important;
    display: block;
  }

  .page-content {
    overflow-x: hidden;
    max-width: 100%;
  }
}
/* 移动端内容区防溢出（系统追加，请勿删除） */
@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;
}
