/* 全站顶栏：左 logo+公司全称，右同道伙伴 */
.site-header,
header {
  position: sticky;
  top: 0;
  z-index: 50;
}
.nav {
  position: relative;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  flex-wrap: nowrap;
  padding-right: 0 !important;
}
.brand {
  min-width: 0;
  flex: 1 1 auto;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}
.brand img,
.brand .brand-logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 10px;
  background: #fff;
  flex: none;
}
.brand-name {
  display: inline-block !important;
  font-size: clamp(1.05rem, 2.5vw, 1.4rem) !important;
  font-weight: 800 !important;
  line-height: 1.25;
  letter-spacing: 0.01em;
  color: #142033 !important;
  white-space: nowrap !important;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: none;
  flex: 1 1 auto;
  min-width: 0;
}
.nav-toggle,
.nav-backdrop,
.nav-main,
.nav-slogan,
header .nav-links,
.auth-slot {
  display: none !important;
}

/* 顶栏内统计：与 logo 同一行、右对齐 */
header .zqwx-site-stats,
.top .zqwx-site-stats {
  position: static !important;
  top: auto !important;
  right: auto !important;
  margin-left: auto;
  flex: none;
  pointer-events: none;
  align-self: center;
}

/* 每页：口号 → 四按钮 */
.page-mast {
  padding: 1.6rem 0 0.4rem;
}
.page-slogan {
  margin: 0;
  font-size: clamp(1.05rem, 2.8vw, 1.35rem);
  font-weight: 800;
  line-height: 1.45;
  color: #0b3d91;
  letter-spacing: 0.01em;
  max-width: 40rem;
}
.page-lanes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 0.65rem;
  align-items: center;
  margin: 1rem 0 0;
}
.page-lanes a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 700;
  white-space: nowrap;
  color: #5b6b80;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(27, 55, 96, 0.12);
  transition: background 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.page-lanes a:hover {
  color: #0b3d91;
  background: rgba(27, 111, 214, 0.1);
  border-color: rgba(27, 111, 214, 0.22);
}
.page-lanes a.is-active {
  color: #fff !important;
  background: linear-gradient(120deg, #1b6fd6, #0b3d91) !important;
  border-color: transparent !important;
  box-shadow: 0 8px 18px rgba(27, 111, 214, 0.28);
}

/* 口号/四钮之后的栏目区：不再占满首屏 */
.page-mast + .hero,
.page-mast + section {
  min-height: auto !important;
  padding-top: 1.8rem !important;
}

@media (max-width: 900px) {
  .nav {
    align-items: center;
    padding-top: 0.65rem !important;
    padding-bottom: 0.65rem !important;
  }
  .brand img,
  .brand .brand-logo {
    width: 42px;
    height: 42px;
  }
  .brand-name {
    white-space: nowrap !important;
    font-size: clamp(0.95rem, 3.6vw, 1.15rem) !important;
  }
  .page-lanes {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.4rem;
    width: 100%;
  }
  .page-lanes a {
    min-height: 40px;
    font-size: 0.8rem;
    white-space: normal;
    text-align: center;
    line-height: 1.25;
  }

  .hero {
    min-height: auto !important;
    padding: 1.6rem 0 2.2rem !important;
  }
  .hero h1 {
    font-size: clamp(1.7rem, 7.5vw, 2.35rem) !important;
  }
  .slogan-hero {
    font-size: 1.1rem !important;
  }
  .lead {
    font-size: 0.98rem !important;
  }
  .cta-row .btn,
  .btn {
    min-height: 44px;
  }
  section {
    padding: 2.8rem 0 !important;
  }
  .page-mast {
    padding-top: 1.1rem !important;
  }
}

/* 统一页脚：公司名单独一行 */
.foot {
  display: grid !important;
  gap: 0.45rem;
  justify-items: start;
}
.foot-company {
  margin: 0;
  font-weight: 700;
  color: inherit;
  opacity: 0.92;
}
.foot-slogan,
.foot-copy,
.foot-icp {
  margin: 0;
  opacity: 0.78;
}
.foot-icp a {
  color: inherit;
  text-decoration: none;
}
.foot-icp a:hover {
  text-decoration: underline;
}
