/* 站点统一导航头样式（与首页一致）。
   供原有页面（about/news/usage/infoCard/oneClickPublishing/realName）引用，
   需在各自页面 CSS 与 public.css 之后加载以覆盖旧导航样式。 */

.contenter-wrap-nav {
  box-sizing: border-box;
  width: 100%;
  display: flex;
  position: fixed;
  height: 4.5rem;
  top: 0;
  z-index: 999;
  align-items: center;
  background-color: #ffffff;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.04);
  border-bottom: none;
  line-height: normal;
  padding: 0 2.5rem;
}

.nav-logo {
  flex-shrink: 0;
}

.logo_box {
  height: 2.2rem;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.logo {
  width: auto;
  height: 2.2rem;
  margin-right: 0;
}

.logo-title {
  min-width: 0;
}

.tab_box {
  flex: 1;
  width: auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

.contenter-wrap-nav li {
  list-style: none;
  height: 4.5rem;
  display: flex;
  align-items: center;
}

.contenter-wrap-nav li a,
.contenter-wrap-nav li .home {
  color: #1e1e1e;
  padding: 0 1.1rem;
  font-size: 1.05rem;
  font-weight: bold;
}

.contenter-wrap-nav li a:hover {
  color: #ff2442;
}

.currentPage {
  position: relative;
  border-bottom: none;
  height: 4.5rem;
  display: flex;
  align-items: center;
  font-size: inherit;
  font-weight: bold;
}

.currentPage a {
  color: #ff2442;
}

.currentPage::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 1rem;
  width: 1.8rem;
  height: 0.18rem;
  background: #ff2442;
  border-radius: 2px;
}

.login_box {
  flex-shrink: 0;
  min-width: 9.5rem;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.login_box .register_btn {
  width: 4.4rem;
  height: 2.2rem;
  box-sizing: border-box;
  background: #ffffff;
  border: 1px solid #ff2442;
  border-radius: 0.4rem;
  line-height: 2.1rem;
  text-align: center;
  font-weight: 600;
  font-size: 1rem;
  color: #ff2442;
}

.login_box .login_btn {
  width: 4.4rem;
  height: 2.2rem;
  background: #ff2442;
  border-radius: 0.4rem;
  margin-left: 0.7rem;
  line-height: 2.2rem;
  text-align: center;
  font-weight: 600;
  font-size: 1rem;
  color: #ffffff;
}

/* 登录后：公司名与退出登录按钮同一行 */
.login_box .login_name {
  position: static;
  width: auto;
  max-width: 16rem;
  z-index: auto;
  font-size: 0.95rem;
  font-weight: 600;
  color: #1d1d1d;
  text-align: right;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-right: 0.6rem;
}

/* 内容区为更高的导航头让位 */
.contenter-wrap-content {
  margin-top: 4.5rem;
}

@media (max-width: 840px) {
  .contenter-wrap-nav {
    width: 100%;
    height: auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 50px 24px 12px;
  }
  .tab_box {
    flex-direction: column;
    align-items: flex-start;
  }
  .contenter-wrap-nav li {
    height: auto;
    line-height: 54px;
    border-bottom: 1px solid #f8e8e3;
  }
  .login_box {
    justify-content: flex-start;
    margin-top: 12px;
  }
  .contenter-wrap-content {
    margin-top: 0;
  }
}
