/* 全站统一顶部导航 */
body.has-site-header {
  padding-top: 72px;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: #fff;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 2px 20px rgba(15, 23, 42, 0.06);
}

.site-header .header-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 clamp(16px, 3vw, 32px);
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  text-decoration: none;
}

.header-logo img {
  height: 42px;
  width: auto;
}

.header-logo .logo-name {
  font-size: clamp(16px, 1.8vw, 20px);
  font-weight: 800;
  color: #0f172a;
  white-space: nowrap;
  letter-spacing: 0.02em;
}

.header-nav {
  flex: 1;
  display: flex;
  justify-content: center;
  min-width: 0;
}

.header-nav > ul {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px clamp(12px, 2vw, 28px);
  list-style: none;
  margin: 0;
  padding: 0;
}

.header-nav a {
  display: block;
  padding: 8px 2px;
  font-size: 15px;
  font-weight: 500;
  color: #334155;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.25s;
  position: relative;
}

.header-nav a:hover,
.header-nav a.active {
  color: #0284c7;
}

.header-nav a.active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, #0ea5e9, #6366f1);
  border-radius: 2px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.nav-phone {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0ea5e9, #0284c7);
  color: #fff;
  box-shadow: 0 4px 14px rgba(14, 165, 233, 0.35);
  transition: transform 0.25s, box-shadow 0.25s;
  text-decoration: none;
}

.nav-phone:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(14, 165, 233, 0.45);
  color: #fff;
}

.nav-phone svg {
  width: 20px;
  height: 20px;
}

.btn-nav-cta {
  padding: 11px 22px;
  border-radius: 8px;
  background: linear-gradient(135deg, #0ea5e9, #6366f1);
  color: #fff !important;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.35);
  transition: transform 0.25s, box-shadow 0.25s;
}

.btn-nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.45);
  color: #fff;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  gap: 6px;
  width: 44px;
  height: 44px;
  padding: 11px 10px;
  border: 1px solid rgba(2, 132, 199, 0.35);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.06);
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 3px;
  min-height: 3px;
  background: #0284c7;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
  flex-shrink: 0;
}

.site-header.menu-open .nav-toggle span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.site-header.menu-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}
.site-header.menu-open .nav-toggle span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

@media (max-width: 1100px) {
  .header-nav > ul {
    gap: 4px 16px;
  }
  .header-nav a {
    font-size: 14px;
  }
}

@media (max-width: 960px) {
  body.has-site-header {
    padding-top: 64px;
  }

  .site-header {
    position: fixed;
  }

  .site-header .header-inner {
    height: 64px;
    position: relative;
    flex-wrap: nowrap;
    gap: 10px;
  }

  .header-logo {
    min-width: 0;
    flex: 1;
  }

  .header-logo img {
    height: 36px;
  }

  .header-logo .logo-name {
    font-size: 15px;
  }

  .header-actions {
    gap: 8px;
    flex-shrink: 0;
  }

  .nav-toggle {
    display: flex;
    order: 3;
  }

  .header-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1001;
    background: #fff;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.1);
    padding: 16px 20px 20px;
    display: none;
    max-height: calc(100vh - 64px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .site-header.menu-open .header-nav {
    display: flex;
  }

  .header-nav > ul {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 4px;
  }

  .header-nav a {
    padding: 12px 8px;
    text-align: center;
  }

  .nav-menu-cta {
    display: none;
    margin-top: 8px;
    padding-top: 12px;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
  }

  .nav-menu-cta-btn {
    display: block;
    padding: 12px 16px !important;
    border-radius: 8px;
    background: linear-gradient(135deg, #0ea5e9, #6366f1);
    color: #fff !important;
    font-weight: 600;
    text-align: center;
  }

  .btn-nav-cta {
    padding: 9px 14px;
    font-size: 13px;
  }

  .nav-phone {
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 560px) {
  .btn-nav-cta {
    display: none;
  }

  .nav-menu-cta {
    display: list-item;
  }

  .header-actions {
    gap: 6px;
  }
}

@media (max-width: 480px) {
  .header-logo .logo-name {
    display: none;
  }

  .site-header .header-inner {
    padding: 0 12px;
  }
}
