#nav1 {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1111;
  width: 100%;
  transition: all 0.6s ease;
  opacity: 1;
  height: 150px;
  background-color: transparent;
}
/* 滚动后导航栏的背景色 */
#nav1.scrolled {
  background-color: #fdfdfd;
  /* height: 112px; */
}
#nav1.scrolled .nav ul {
  position: relative;
  display: flex;
  justify-content: space-between;
  width: 52vw;
  transition: all 0.6s ease;
  /* top: -8px; */
  align-items: center; /* 滚动后保持垂直居中 */
}

#nav1.scrolled .nav ul li a {
  color: #1b181c;
}
#nav1.scrolled .nav ul li {
  position: relative;
  height: 42px;
  text-align: center;
  float: left;
  align-items: center;
  padding: 0;
  display: contents;
}
#nav1.scrolled .nav ul li a:hover {
  color: #bb232e;
}
#nav1.scrolled .nav {
  position: relative;
  height: 42px;
}
#nav1.scrolled .nav ul li .active:hover {
  border-bottom: 3px solid #bb232e;
}
/* 点击后的选中样式 */
#nav1.scrolled .nav ul li .active {
  /* 这里设置点击后的颜色 */
  color: #bb232e;
  border-bottom: 3px solid #bb232e;
}

.mobile1 {
  display: block;
}
#nav1 .nav ul li .naviteminfo .activeSub {
  color: #bb232e;
}

.mobile2 {
  display: none;
}
#nav1 .navtext {
  color: #ffffff;
  width: 1400px;
  height: 30px;
  display: flex;
  justify-content: flex-end;
  margin: auto;
  padding-top: 10px;
  align-items: center;
  transition: all 1sease;
}
#nav1.scrolled .navtext {
  height: 30px;
}
#nav1 .navtext .header_text {
  height: 100%;
  display: flex;
  align-items: center;
  margin-left: 30px;
}
#nav1 .navtext .header_text .today1 {
  padding: 0 6px;
}
#nav1 .navtext .header_text .dayone i {
  padding-right: 10px;
}
#nav1 .navtext .header_text .daytwo i {
  padding-right: 10px;
}
#nav1 .navtext .header_text .tomorrow1 {
  border-right: 1px solid #ffffff;
  padding: 0 7px;
  margin-right: 10px;
  height: 12px;
  display: flex;
  align-items: center;
}
#nav1 .navtext .header_login {
  font-size: 16px;
}
#nav1 .navtext .header_login .tomorrow1 {
  border-right: 1px solid #ffffff;
  padding: 0 7px;
  margin-right: 10px;
  height: 12px;
  display: flex;
  align-items: center;
}
#nav1 .navtext .header_login > a {
  display: block;
  height: 16px;
  width: 16px;
  display: flex;
  justify-content: center;
  align-items: center;
}
#nav1 .navtext .header_login > a img {
  width: 100%;
  height: 100%;
}
#nav1 .navtext .header_login .indexchoose {
  position: relative;
  height: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
#nav1 .navtext .header_login .indexchoose:hover .option {
  height: 100px;
  transition: all 0.6s;
}
#nav1 .navtext .header_login .indexchoose .select-head {
  border: 1px solid #fff;
  border-radius: 5px;
  padding: 5px 11px;
  height: 25px;
  display: flex;
  align-items: center;
}
#nav1 .navtext .header_login .indexchoose .select-head img {
  width: 9px;
  height: 4px;
  margin-left: 5px;
}
#nav1 .navtext .header_login .indexchoose .option {
  position: absolute;
  top: 21px;
  background-color: black;
  width: 100%;
  height: 0;
  overflow: hidden;
  transition: 0.6s;
  z-index: 999;
}
#nav1 .navtext .header_login .indexchoose .option .optionitem {
  line-height: 25px;
  height: 25px;
  width: 100%;
}
#nav1 .navtext .header_login .indexchoose .option .optionitem a {
  display: block;
  width: 100%;
  height: 100%;
  color: #fff;
}
#nav1 .navtext .header_login .indexchoose .option .optionitem a:hover {
  color: #ecc508;
}
#nav1 .navtext .header_login > div:nth-last-of-type(1) a {
  color: #fff;
}
#nav1.scrolled .navtext .header_login > div:nth-last-of-type(1) a {
  color: #000000;
  font-weight: 500;
}
#nav1.scrolled .navtext .header_login .tomorrow1 {
  border-right: 1px solid #1b181c;
}
#nav1 .navtext .header_login .loginOrregister {
  display: none;
}
#nav1 > div:nth-of-type(2) {
  width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  position: relative;
  margin-top: 10px;
  align-items: center;
}
#nav1 > div:nth-of-type(2) .logo {
  width: 172px;
  transition: all 1s ease;
}
#nav1.scrolled > div:nth-of-type(2) .logo {
  position: relative;
  /* top: -6px; */
}

#nav1 > div:nth-of-type(2) .logo a {
  display: block;
  width: 100%;
  height: 100%;
}
#nav1 > div:nth-of-type(2) .logo a img {
  width: 55%;
}
#nav1 .nav {
  height: inherit;
  display: flex;
  align-items: center;
  transition: all 0.8s ease;
}
#nav1 .nav ul {
  height: inherit;
  display: flex;
  align-items: center; /* 新增垂直居中 */
  justify-content: space-between;
  width: 52vw;
}
#nav1 .nav ul li a {
  color: #fff;
  height: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  font-size: 16px;
  font-weight: 700;
}
#nav1 .nav ul li .logol {
  width: 3.49vw;
  height: 2.4vw;
  position: absolute;
  top: 33px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
#nav1 .nav ul li .logoy {
  position: absolute;
  top: 48px;
  left: 50%;
  z-index: 10;
  transform: translateX(-50%);
  opacity: 1;
  margin-top: 30px;
  transition: all 0.8s ease;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
#nav1 .nav ul .navactive > a {
  position: relative; /* 为伪元素的定位提供参考 */
  color: #eaeaea;
  z-index: 9;
}
#nav1 .nav ul .navactive > a::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%; /* 从中间开始 */
  width: 100%;
  height: 2px;
  background-color: #bb232e;
  transform: translateX(-50%) scaleX(0); /* 初始时缩放为 0 */
  transform-origin: center;
  transition: transform 0.2s ease-out; /* 平滑过渡效果 */
}

#nav1 .nav .nav-item--cta {
  background: #b80000;
  border: 1px solid #b80000;
  -webkit-border-radius: 40px;
  border-radius: 40px;
  color: #fff !important;
  font-weight: 600;
  height: 38px;
  letter-spacing: -0.02rem;
  opacity: 1;
  padding: 0 0.75rem;
  text-transform: uppercase;
  z-index: 202;
}

#nav1 .nav .nav-item--cta:hover {
  background: #fff !important;
  color: #b80000 !important;
}

/* 下滑激活样式 */
#nav1.scrolled .nav ul li.active {
  color: #bb232e;
  border-bottom: 3px solid #bb232e;
}

#nav1 .nav ul .navactive > a:hover::before {
  transform: translateX(-50%) scaleX(1); /* 鼠标悬浮时缩放为 1 */
}

/* 阻止 .active 状态下的 a 标签伪元素的悬停效果 */
#nav1.scrolled .nav ul li .active::before {
  display: none;
}

#nav1 .nav ul .navactive > a .logol {
  opacity: 1;
  visibility: visible;
}
#nav1 .nav ul .navactive > a .logoy {
  opacity: 1;
  visibility: visible;
  margin-top: 0;
}
#nav1 .nav ul li {
  text-align: center;
  height: 50px;
  height: 60px;
  float: left;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}
#nav1 .nav ul li:hover > a .logol {
  visibility: visible;
  opacity: 1;
  transition: all 0.6s ease;
}
#nav1 .nav ul li:hover > a .logoy {
  visibility: visible;
  opacity: 1;
  margin-top: 0;
  transition: all 0.6s ease;
}
#nav1 .nav ul li .naviteminfo {
  display: none;
  position: absolute;
  justify-content: flex-start;
  align-items: center; /* 新增垂直居中 */
  top: 100%;
  left: 0;
  height: 36px;
  width: 100%;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s linear;
  z-index: 1;
  border-top: 1px solid #eaeaea;
}
#nav1 .nav ul li a.active + .naviteminfo {
  display: flex; /* 显示选中的 naviteminfo */
  opacity: 1;
  visibility: visible;
}
/* 确保 .navactive 下的 .naviteminfo 也能正确对齐 */
#nav1 .nav ul li.navactive .naviteminfo {
  position: absolute;
  top: 100%; /* 位于 ul 下方 */
  left: 0; /* 与 ul 左侧对齐 */
}
#nav1 .nav ul li .naviteminfo a {
  display: block;
  height: 100%; /* 占满父容器高度 */
  line-height: 1.2; /* 防止文字溢出 */
  text-align: center;
  font-size: 12px;
  z-index: 1111;
  position: relative;
  font-weight: bold;
  margin-right: 2%;
  display: flex; /* 新增flex布局 */
  align-items: center; /* 垂直居中 */
  justify-content: center; /* 水平居中 */
}
#nav1 .nav ul li .naviteminfo a:hover {
  color: #b80000;
}
.header_login .log-reg,
.header_login .user-center {
  display: flex;
}
#nav1 .header_login .log-reg span,
#nav1 .header_login .user-center span {
  margin: 0 12px;
}
#nav1.scrolled .header_login .log-reg span,
#nav1.scrolled .header_login .user-center span {
  color: #000000;
  font-weight: 500;
}
@media screen and (max-width: 1400px) {
  #nav1 .nav ul {
    width: 60vw;
  }

  #nav1.scrolled .nav ul {
    width: 60vw;
  }
  #nav1 .nav {
    width: 70%;
  }
  #nav1.scrolled .nav {
    bottom: 12px;
  }
  #nav1 > div:nth-of-type(2) {
    width: 890px;
  }

  #nav1.scrolled .navtext {
    z-index: 6;
    position: relative;
    width: 926px;
  }
}

@media screen and (max-width: 1240px) {
  .nav li > a {
    font-size: 14px !important;
  }
  .nav .naviteminfo > a {
    font-size: 13px !important;
  }
}
