/* 全站公共导航 + 页脚样式（与 partials/header.html、footer.html 配套） */
#site-header {
  height: 0;
  overflow: visible;
  margin: 0;
  padding: 0;
}
#site-footer {
  display: block;
}

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: all 0.3s ease;
  background: #ffffff !important;
  backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}
.navbar.scrolled {
  padding: 12px 0;
  background: #ffffff !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.navbar .logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 22px;
  font-weight: 700;
  color: #1D2129;
  text-decoration: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.navbar .logo:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}
.navbar .logo object,
.footer .logo-icon object {
  pointer-events: none;
}
.navbar .logo-icon,
.footer .logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #165DFF 0%, #722ED1 100%);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}
.nav-links {
  display: flex;
  gap: 40px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links > li {
  position: relative;
}
.nav-links > li > a {
  text-decoration: none;
  color: #4E5969;
  font-weight: 500;
  font-size: 15px;
  transition: color 0.3s ease, transform 0.25s ease;
  position: relative;
  display: inline-block;
  padding: 8px 0;
}
.nav-links > li > a:hover,
.nav-links > li > a.active {
  color: #165DFF;
}
.nav-links > li > a:hover {
  transform: translateY(-1px);
}
.nav-links > li > a::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(135deg, #165DFF 0%, #722ED1 100%);
  border-radius: 1px;
  transition: width 0.3s ease;
}
.nav-links > li > a:hover::after,
.nav-links > li > a.active::after {
  width: 100%;
}
.nav-cta {
  padding: 10px 24px;
  background: linear-gradient(135deg, #165DFF 0%, #722ED1 100%);
  color: #FFFFFF !important;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
}
.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(22, 93, 255, 0.4);
}
.nav-cta:active {
  transform: translateY(0);
}
.nav-cta::after {
  display: none !important;
}

/* 下拉菜单 */
.dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  min-width: 380px;
  background: #ffffff;
  backdrop-filter: blur(20px);
  border-radius: 20px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.16);
  padding: 12px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(255, 255, 255, 0.8);
  margin-top: 8px;
  z-index: 1001;
}
.nav-links > li:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.dropdown-item {
  display: flex;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 12px;
  text-decoration: none !important;
  color: #1D2129;
  transition: all 0.25s ease;
}
.dropdown-item::after {
  display: none !important;
}
.dropdown-item:hover {
  background: rgba(22, 93, 255, 0.08);
  transform: translateX(4px);
}
.dropdown-item-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(22, 93, 255, 0.1) 0%, rgba(114, 46, 209, 0.1) 100%);
}
.dropdown-item-content h4 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
  color: #1D2129;
}
.dropdown-item-content p {
  font-size: 13px;
  color: #4E5969;
  line-height: 1.4;
  margin: 0;
}

/* 页脚（覆盖各页旧版 footer-col / footer-brand 写法） */
.footer {
  padding: 80px 0 40px !important;
  background: #1D2129 !important;
  color: #FFFFFF !important;
}
.footer .container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
}
.footer-grid {
  display: grid !important;
  grid-template-columns: 2fr 1fr 1fr 1fr !important;
  gap: 60px;
  margin-bottom: 30px;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 20px;
  color: #FFFFFF;
}
.footer-desc {
  font-size: 14px;
  color: #86909C;
  line-height: 1.85;
  margin-bottom: 24px;
  max-width: 420px;
}
.footer-desc strong {
  color: #C9CDD4;
  font-weight: 600;
}
.footer-contact {
  display: block;
}
.footer-contact p {
  font-size: 14px;
  color: #86909C;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.footer-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 24px;
  color: #FFFFFF !important;
}
.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-links li {
  margin-bottom: 12px;
}
.footer-links a {
  color: #86909C !important;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s ease, transform 0.25s ease;
  display: inline-block;
}
.footer-links a:hover {
  color: #165DFF !important;
  transform: translateX(3px);
}
.footer-bottom {
  padding-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  font-size: 14px;
  color: #86909C;
}
.footer-bottom p {
  margin: 0;
  color: #86909C;
}

@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 40px;
  }
  .dropdown {
    min-width: 320px;
  }
}
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .nav-container {
    padding: 0 20px;
  }
  .footer .container {
    padding: 0 20px;
  }
  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 32px;
  }
  .navbar .logo {
    font-size: 16px;
  }
}
