* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}


.nav-f {
  background-color: #fff;
  position: fixed;
  top: 0;
  z-index: 10;
  width: 100%;
}

.nav-h {
  height: 64px;
}
.nav {
  display: flex;
  justify-content: space-between;
  /* align-items: center; */
  width: 100%;
  height: 64px;
  padding: 0 10px;
  /* background-color: tomato; */
}

.nav .left {
  display: flex;
  align-items: center;
  /* background-color: orange; */
}

.nav .left .logo {
  display: flex;
  justify-content: center;
  align-items: center;
  /* margin: 0px 14px 0px 28px; */
  margin: 0px 16px;
  cursor: pointer;
  flex-wrap: nowrap;
}

.nav .left .logo h1 {
  margin-left: 8px;
  font-size: 22px;
  font-weight: 500;
  color: rgb(95, 99, 104);
  white-space: nowrap;
}

.nav .left img {
  width: 40px;
  height: 40px;
}

.nav .left .leftList ul {
  display: flex;
  cursor: pointer;
}

.nav .left .leftList ul li {
  padding: 0 16px;
  list-style: none;
}

.nav .left .leftList a {
  text-decoration: none;
  font-size: 14px;
  color: #5f6368;
  /* padding-bottom: 26px; */
  border-bottom: 2px solid transparent;
  transition: all 0.2s ease;
  font-weight: 500;
}

.nav .left .leftList a:hover {
  color: #000;
}

/* 原本的样式：改成用伪元素 */
.nav .left .leftList a.active {
  color: rgb(1, 135, 95);
  /* border-bottom: none; */
  position: relative;
}

/* 新增：短横线 + 居中 */
.nav .left .leftList a.active::after {
  content: "";
  position: absolute;
  bottom: -20px; /* 距离文字底部的间距可微调 */
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 3px;
  background-color: rgb(1, 135, 95);
  border-radius: 2px;
}

/* 右边 */
.nav .right ul {
  display: flex;
  height: 100%;
  align-items: center;
}

.nav .right ul li {
  width: 48px;
  height: 48px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  line-height: 48px;
  list-style: none;
  cursor: pointer;
  /* background-color: green; */
}

.nav .right ul li:hover {
  border-radius: 50%;
  background-color: #f5f5f5;
}

.nav .right ul li img {
  width: 24px;
  height: 24px;
  color: #5f6368;
}

/* 默认隐藏的导航条 */

.hideList {
  display: none;
  /* margin-top: 20px; */
}

.hideList ul {
  display: flex;
  justify-content: center;
  width: 100%;
  /* background-color: tomato; */
}

.hideList ul li {
  /* padding: 0 16px; */
  width: 112px;
  height: 48px;
  line-height: 48px;
  text-align: center;
  list-style: none;
  /* background-color: skyblue; */
}

.hideList ul li img {
  display: none;
}

.hideList a {
  text-decoration: none;
  font-size: 14px;
  color: #5f6368;
  padding-bottom: 16px;
  border-bottom: 2px solid transparent;
  transition: all 0.2s ease;
}

.hideList a:hover {
  color: #000;
}

.hideList a.active {
  color: rgb(1, 135, 95);
}
@media (max-width: 840px) {
  .nav {
    height: 56px;
  }
  .nav .left .leftList {
    display: none;
  }

  .hideList {
    display: block;
  }
  /* .hideList ul li {
    width: 112px;
    height: 48px;
  } */
  .nav-h {
    height: 104px;
  }
  .hideList ul li a {
    color: #000;
  }
}

@media (hover: none) {
  .nav-h {
    height: 56px !important;
  }
  .hideList {
    position: fixed;
    width: 100%;
    bottom: 0;
    background: #fff;
  }
  .main-container {
    margin-bottom: 48px !important;
  }
  .hideList ul {
    border-top:1px solid #e6e6e6;
  }
  .hideList ul li {
    display: flex;
    width: 112px;
    height: 48px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
  }
  .hideList ul li a {
    line-height: 12px;
    padding-bottom: 0;
  }
  .hideList ul li img {
    display: block;
  }
}