html {
  -ms-text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
  font-size: 16px;
}
body{
  font-family: "Microsoft YaHei", sans-serif;
  margin: 0;
  padding: 0;
  color: aliceblue;
  width: 100%;
}
img {
  margin: 0;
  border: 0;
}
ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
}
a {
  text-decoration: none;
  color: aliceblue;
}

.menu {
  position: fixed;
  top: 0;
  width: 100%;
  height: 3rem;
  display: flex;
  justify-content: flex-end;/* 让所有元素默认右对齐 */
  align-items: center;
  background-color: rgb(0, 0, 25,0);
  transition: 0.5s;
  z-index: 9999;
}
.menu.scroll {
  background-color: #000019;
  padding: 5px 0;
}

.menu > li {
  position: relative;
  margin: 0 1rem;
}
.menu > li:first-child {
  margin-right: auto;
  /* 将第一个元素推向左边，其他元素保持在右边 */
}

.menu > li:before {
  content: '';
  display: block;
  position: absolute;
  top: -0.25rem;
  left: -1rem;
  width: 0;
  height: 2rem;
  transition: all 0.25s ease;
  background: linear-gradient(to top, rgba(80, 80, 100, 0.3), rgba(80, 80,100, 0.6));
  transform-origin: left;
  border-radius: 1rem;
  z-index: -1;
}
.menu > li:not(:first-child):hover:before{
  width: calc( 100% + 2rem);
}
.menu .sub-menu {
  opacity: 0;
  display: none;
  position: absolute;
  top: 15px;
  left: 50%;
  background-color: #000025;
  border-radius: 0.25rem;
  box-shadow: -1px 3px 23px -10px rgba(0, 0, 0, 0.3);
  justify-content: space-between;
  z-index: 2;
  transform: translateX(-50%);
  transform-origin: bottom;
  transition: all 0.25s ease;
}

.menu > li:hover .sub-menu {
  opacity: 1;
  display: flex;
  top: calc(100% + 0.5rem);
}
.menu .sub-menu h1 {
  font-weight: bold;
  font-size: 1rem;
  margin-bottom: 1rem;
}
.menu .sub-menu ul {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
}
.sub-menu.product {
  padding: 0 0 2rem 2rem;
}
.menu .sub-menu > ul > li > a {
  display: block;
  width: 16rem;
  height: 3rem;
  line-height: 3rem;
  text-align: center;
  background-image: linear-gradient(to right, #000025 0%, rgb(50, 50, 50) 50%, #000025 100%);
  background-size: 100% 1px;
  /* 设置背景图像的高度为1px，宽度为100% */
  background-repeat: no-repeat;
  background-position: bottom;
}
.menu .sub-menu ul li a:hover {
  color: #2e6be5;
}

.menu .sub-menu-items ul {
  border-left: 2px solid;
  border-image: linear-gradient(to top, #000025, #2243e5) 1;
}
.menu .sub-menu-items ul li {
  width: 160px;
  margin-left: 16px;
  margin-bottom: 16px;
}
.menu .sub-menu-items ul li:last-child {
  margin-bottom: 0;
}
.menu .sub-menu-items ul li a {
  font-size: 1rem;
}
/*  移动端*/
.mobile-menu {
  display: none;
}
.mobile-menu-icon {
  display: none;
}

footer {
  padding: 2rem 0;
  background-color: #000019;
  font-size: 0.8rem;
}
footer div:first-child {
  display: flex;
  justify-content: center;
  gap: 10vw
}
footer ul {
  flex-wrap: wrap;
}
footer ul li {
  margin: 1rem;
}
footer ul li:first-child {
  font-size: 1rem;
}
footer .tel {
  font-size: 1.5rem;
  color: #2e6be5;
}
footer > div:last-child {
  text-align: center;
  font-size: 0.8rem;
  margin-top: 2rem;
}

footer a, footer span {
  color: rgba(255, 255, 255, 0.65);
}
footer a:hover {
  font-size: 0.8rem; 
  color: rgba(255, 255, 255, 0.95);
}

@media only screen and (max-width: 1023px) {
  .menu > li:not(:first-child) {
    display: none;
  }
  .mobile-menu-icon {
    display: block;
    position: absolute;
    top: 0.8rem;
    right: 1rem;
    width: 2rem;
    height: 2rem;
    background-image: url(../assets/Icons/menu.svg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
  }
  .mobile-menu {
    position: absolute;
    display: none;
    top: 0;
    right: 0;
    width: 0;
    border-top-left-radius: 0.5rem;
    border-bottom-left-radius: 0.5rem;
    box-shadow: -1px 3px 23px -10px rgba(0, 0, 0, 0.3);
    transition: 0.5s;
    background-color: #000019;
    z-index: 2;
  }
  .close-icon {
    position: absolute;
    background-image: url(../assets/Icons/close_icon.svg);
    background-size: 1.5rem;
    background-position: center;
    background-repeat: no-repeat;
    width: 1.5rem;
    height: 1.5rem;
    right: 1rem;
    top: 1rem
  }
  .mobile-menu > ul {
    margin: 1rem;
    margin-top: 3rem;
  }
  .mobile-menu > ul > li {
    line-height: 4rem;
    /* font-size: 1.5rem; */
    width: 100%;
    background-image: url(../assets/Icons/right-white.svg);
    background-repeat: no-repeat;
    background-position: right center;
    background-size: 1rem;
  }
  .mobile-menu > ul > li > a {
    width: 100%;
    height: 100%;
    color: aliceblue;
  }
  footer div:first-child {
    display: block;
  }
  footer .links {
    display: flex;
  }
}