/* 该css文件为公共样式，如网页头部、底部 */



/* **********通用********** */
/* .w版心 */
.w {
  width: 1240px;
  margin: 0 auto;
}

.single-ellipsis {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.multi-ellipsis {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  -webkit-line-clamp: 2;
}

/* **********1.网页顶部********** */
/* ----------1.1.最顶端导航栏---------- */
.shortcut {
  width: 100%;
  height: 52px;
  background-color: rgba(0, 0, 0, 0.5);
  position: sticky;
  top: 0;
  z-index: 3;
  backdrop-filter: saturate(150%) blur(10px);
  box-shadow: 0px 1px 5px 1px #333333;
}

.scrollbar {
  width: 0%;
  height: 3px;
  background-color: #5EB69C;
  animation: scrollbar 2s linear forwards;
  animation-timeline: scroll();
}

@keyframes scrollbar {
  from {
    width: 0%;
  }

  to {
    width: 100%;
  }
}

html {
  scroll-behavior: smooth;
}

.totop a {
  width: 50px;
  height: 50px;
  background-color: #5EB69C;
  border-radius: 50%;
  position: fixed;
  right: 25px;
  bottom: 25px;
  text-align: center;
  line-height: 50px;
  font-size: 25px;
  font-weight: 900;
  color: #ffffff;
  background: radial-gradient(circle at 25px, #5EB69C 25%, #fff 100%);
  box-shadow: inset 0px 0px 10px #5EB69C;
  z-index: 999;
}

.shortcut ul {
  display: flex;
  justify-content: end;
  align-items: center;
  height: 52px;
}

.shortcut ul li a {
  font-size: 14px;
  line-height: 52px;
  color: #ffffff;
}

.shortcut ul li a:hover {
  font-size: 14px;
  line-height: 52px;
  color: #5EB69C;
}

.shortcut ul .line {
  width: 0.5px;
  height: 12px;
  background-color: #999999;
  margin: 0 15px;
}

.shortcut li i {
  display: inline-block;
  font-size: 18px;
  margin-right: 4px;
  transition: 0.25s;
}

.shortcut li:hover i {
  transform: rotate(360deg);
}

.shortcut ul li:first-child a {
  color: #5EB69C;
}

/* ----------1.2.主导航栏---------- */
.header {
  height: 132px;
  margin-top: 52px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ++++++++++1.2.1.logo++++++++++ */
.header .logo {
  width: 200px;
  height: 88px;
}

.header .logo h1 {
  width: 100%;
  height: 100%;
}

.header .logo a {
  display: block;
  width: 100%;
  height: 100%;
  background-image: url(../images/logo.png);
  background-repeat: no-repeat;
  text-indent: -99999px;
  overflow: hidden;
}

.Nav {
  display: flex;
  gap: 48px;
}

/* ++++++++++1.2.2.点击栏++++++++++ */
.Nav li a {
  display: block;
  height: 40px;
  line-height: 40px;
  color: #333333;
  transition: 0.1s;
}

.Nav li a:hover {
  color: #5EB69C;
  border-bottom: 2px solid #5EB69C;
}

/* ++++++++++1.2.3.搜索栏++++++++++ */
.searchbar {
  height: 34px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: start;
}

.searchbar ul {
  display: flex;
  justify-content: start;
  align-items: center;
  color: #CCCCCC;
  position: relative;
}

.searchbar i {
  height: 40px;
  font-size: 20px;
  margin-right: 8px;
  transition: 0.25s;
  position: absolute;
  top: 0;
  left: 0;
}

.searchbar input {
  width: 170px;
  height: 34px;
  font-size: 16px;
  border-bottom: 2px solid #f4f4f4;
  padding-left: 28px;
  transition: 0.25s;

}

.searchbar input::placeholder {
  font-size: 16px;
  color: #CCCCCC;
  transition: 0.25s;
}

.searchbar:focus-within input::placeholder {
  color: #333333;
}

.searchbar:focus-within input {
  border-bottom: 2px solid #333333;
}

/* ++++++++++1.2.4.购物车++++++++++ */
.cart a {
  display: flex;
  position: relative;
}

.cart a i {
  font-size: 40px;
  margin-right: 15px;
  transition: 0.5s;
}

.cart a:hover i {
  transform: rotate(360deg);
}

.cart a p {
  font-size: 14px;
  color: #FFFEFE;
  text-align: center;
  background-color: #E26237;
  padding: 0 5px;
  border-radius: 10.5px;
  position: absolute;
  top: 5px;
  left: 20px;
}




























































/* **********3.网页底部********** */
.footer {
  height: 580px;
  background-color: #f5f5f5;
}

/* ----------3.1.标语---------- */
.footer .slogan {
  height: 178px;
  border-bottom: 1px solid #e8e8e8;
}

.footer .slogan ul {
  height: 178px;
  display: flex;
  justify-content: space-evenly;
  align-items: center;
}

.footer .slogan li {
  height: 58px;
  line-height: 58px;
  display: flex;
  align-items: center;
}

.footer .slogan li p {
  font-size: 28px;
  margin-left: 20px;
}

.footer .slogan li div {
  width: 58px;
  height: 58px;
  background-image: url(../images/sprite.png);
}

.footer .jgqm,
.footer .wlkj,
.footer .pzxx,
.footer .shwy {
  background-position: 0 calc(var(--i) * -58px);
}


/* ----------3.2.服务导航栏---------- */
.service {
  margin-top: 60px;
  display: flex;
}

/* ++++++++++3.2.1.点击栏++++++++++ */
.navlist {
  display: flex;
  gap: 84px;
}

.navlist dl {
  height: 142px;
}

.navlist dt {
  font-size: 18px;
  color: #333333;
  margin-bottom: 30px;
}

.navlist dd {
  margin-top: 10px;
}

.navlist dd a {
  font-size: 16px;
  color: #969696;
}

.fwrx i {
  font-size: 16px;
  color: #5EB69C;
}

/* ++++++++++3.2.2.二维码++++++++++ */

.QRcode ul {
  display: flex;
}

.QRcode li {
  margin-left: 55px;
}

.QRcode p {
  font-size: 16px;
  color: #969696;
  text-align: center;
  margin-top: 10px;
}

.QRcode img {
  width: 120px;
  height: 120px;
  margin-bottom: 10px;
}

/* ----------3.3.友情链接与版权---------- */
.copyright {
  margin-top: 100px;
  color: #A1A1A1;
  text-align: center;
  line-height: 30px;
}

.copyright a {
  color: #A1A1A1;
}