#head {
  width: 1170px;
  height: 126px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

#head img {
  position: relative;
}

#head .left {
  display: flex;
  align-items: center;
}

#head .right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

#button button {
  width: 80px;
  height: 34px;
  background-color: #4098e0;
  color: white;
  border: 0;
  margin-left: 2px;
}

#headInput {
  position: relative;
  margin-top: 10px;
}

#headInput img {
  position: absolute;
  right: 0;
  top: -1px;
}

#inPutOne {
  width: 318px;
  height: 46px;
  color: #555;
  outline: medium;
  box-sizing: border-box;
}

header{
  width: 1170px;
}
#bodyNav {
  width: 100%;
  height: 70px;
  background: linear-gradient(#2582cb, #284b9f);
}

#nav li {
  display: inline-block;
  color: white;
  list-style: none;
  font-size: 18px;
  width: 144px;
  height: 70px;
  text-align: center;
  line-height: 70px;
  position: relative;
  transition: all 0.3s ease;
}

/* 添加悬停效果 */
#nav li:hover {
  background-color: #3ea1f5;
  /* 蓝色背景 */
  font-weight: bold;
  /* 字体加粗 */
  cursor: pointer;
  /* 显示手型光标 */
}

#nav {
  width: 1170px;
  /* margin: 0 auto; */
  margin-left: 88px;
  display: flex;
  align-items: center;
}

/* 由于导航栏使用了a标签包裹li，我们也需要修改a标签的样式 */
#nav a {
  text-decoration: none;
  /* 移除下划线 */
  color: white;
  /* 确保链接文字为白色 */
}

#nav a:hover {
  color: white;
  /* 确保悬停时文字保持白色 */
}