/* 全站统一导航 */
.topbar,
.topbar * {
  box-sizing: border-box;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  height: 56px;
  border-bottom: 2px solid #1677ff;
  background: #171b27;
  font-family: "Microsoft YaHei", "微软雅黑", sans-serif;
  font-size: 14px;
  line-height: 22px;
}

.topbar .nav {
  display: flex;
  width: min(1440px, 100%);
  height: 56px;
  margin: 0 auto;
}

.topbar .brand {
  display: flex;
  flex: 0 0 224px;
  align-items: center;
  gap: 10px;
  height: 56px;
  padding: 0 24px;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
  font-weight: 700;
}

.topbar .brand-logo {
  display: block;
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.topbar .nav-links {
  display: flex;
  align-items: stretch;
  height: 56px;
}

/* 暂时隐藏尚未开放的“解决方案”和“场景案例”导航入口。 */
.topbar .nav-links > .nav-unavailable {
  display: none;
}

.topbar .nav-group {
  position: relative;
  height: 56px;
}

.topbar .nav-links > a,
.topbar .nav-group > a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 132px;
  height: 56px;
  padding: 0 24px;
  color: #fff;
  background: transparent;
  text-decoration: none;
  white-space: nowrap;
  font-weight: 700;
  transition: background-color .18s ease;
}

.topbar .nav-links > a:hover,
.topbar .nav-links > a.active,
.topbar .nav-group:hover > a,
.topbar .nav-group:focus-within > a,
.topbar .nav-group.active > a {
  color: #fff;
  background: #1668ff;
}

.topbar .dropdown {
  position: absolute;
  top: 56px;
  left: 0;
  z-index: 1001;
  min-width: 176px;
  padding: 8px;
  border: 1px solid #b8dfff;
  border-radius: 0 0 8px 8px;
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 18px 46px rgba(30, 104, 210, .14);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity .18s ease, transform .18s ease;
}

.topbar .nav-group:hover .dropdown,
.topbar .nav-group:focus-within .dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.topbar .dropdown a {
  display: block;
  padding: 9px 12px;
  border-radius: 6px;
  color: #4b5665;
  background: transparent;
  text-decoration: none;
  white-space: nowrap;
  font-weight: 700;
  transition: color .18s ease, background-color .18s ease;
}

.topbar .dropdown a:hover,
.topbar .dropdown a:focus-visible,
.topbar .dropdown a.active {
  color: #1677ff;
  background: #e5f4fe;
}

.topbar a:focus-visible {
  outline: 2px solid #5ca8ff;
  outline-offset: -2px;
}

@media (max-width: 1100px) {
  .topbar .nav {
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
  }

  .topbar .nav::-webkit-scrollbar {
    display: none;
  }

  .topbar .brand {
    flex-basis: 178px;
    padding: 0 16px;
  }

  .topbar .nav-links > a,
  .topbar .nav-group > a {
    min-width: 108px;
    padding: 0 16px;
  }

  .topbar .dropdown {
    display: none;
  }
}

/* 所有页面的表单控件与正文统一使用微软雅黑。 */
button, input, select, textarea {
  font-family: "Microsoft YaHei", "微软雅黑", sans-serif;
}
