/* =========================
     Header
    ========================= */
.header {
  height: 78px;
  background: #fff;
  display: flex;
  align-items: center;
  padding: 0 50px;
  gap: 45px;
  border-bottom: 1px solid #e8eef7;
}
.logo {
  font-size: 28px;
  font-weight: 800;
  color: #0757c7;
  line-height: 1;
}
.logo span {
  display: block;
  font-size: 10px;
  color: #64748b;
  margin-top: 5px;
}
.header nav {
  display: flex;
  gap: 30px;
  flex: 1;
}
.header nav a {
  font-size: 15px;
  color: #334e68;
}
.header nav .active {
  color: #0865e8;
  font-weight: 600;
  border-bottom: 2px solid #0865e8;
  padding-bottom: 25px;
}
.search-box {
  display: flex;
  height: 40px;
  background: #f1f5f9;
  border-radius: 20px;
  overflow: hidden;
}
.search-box input {
  border: none;
  outline: none;
  background: none;
  padding: 0 18px;
  width: 240px;
}
.search-box button {
  width: 45px;
  background: #0865e8;
  color: white;
}
.submit {
  background: white;
  border: 1px solid #0865e8;
  color: #0865e8;
  padding: 10px 20px;
  border-radius: 8px;
}

/* carousel */
.carouselBox {
  width: 100%;
  height: 600px;
  position: relative;
  overflow: hidden;
}
.carousel {
  display: flex;
  width: 100%;
  height: 100%;
  /* transition: 0.5s; */
}
.carousel .item {
  flex: 0 0 100%;
  position: relative;
}
.carousel .item .txt {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  text-align: center;
  text-shadow: 2px 3px #000;
  width: 70%;
}
.carousel .item .txt .title {
  font-size: 50px;
}
.carousel .item .txt .subtitle {
  font-size: 30px;
}
.carousel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.indicator {
  position: absolute;
  bottom: 10px;
  display: flex;
  left: 50%;
  transform: translateX(-50%);
}

.indicator span {
  width: 20px;
  height: 20px;
  border: 2px solid #fff;
  border-radius: 50%;
  margin: 0 5px;
}

.indicator span.active {
  background-color: #fff;
}

.leftarrow {
  position: absolute;
  width: 50px;
  height: 50px;
  line-height: 50px;
  top: 50%;
  transform: translateY(-50%);
  left: 5%;
  color: var(--accent-100);
  text-align: center;
  background-color: #fff;
  border-radius: 50%;
}
.leftarrow::before {
  transform: rotate(-180deg);
  display: block;
}

.rightarrow {
  position: absolute;
  width: 50px;
  height: 50px;
  line-height: 50px;
  top: 50%;
  transform: translateY(-50%);
  right: 5%;
  color: var(--accent-100);
  text-align: center;
  background-color: #fff;
  border-radius: 50%;
}

/* banner图和纵向分类导航 */
.banner {
  width: 100%;
  height: 600px;
  padding-top: 70px;
  display: flex;
}

/* .banner .indexbg{
    flex-shrink: 0;
    width: 1000px;
    height: 500px;
    background-color: rgba(0, 0, 0, 0.3);
    position: relative;
} */
.banner .indexbg a {
  font-weight: bold;
}

.banner .indexbg a.first {
  width: 240px;
  height: 240px;
  line-height: 240px;
  text-align: center;
  background-color: rgba(0, 0, 0, 0.3);
  position: absolute;
  left: 705px;
  top: 266px;
  font-size: 36px;
}

.banner .indexbg a.second {
  width: 196px;
  height: 196px;
  line-height: 196px;
  text-align: center;
  background-color: rgba(0, 0, 0, 0.3);
  position: absolute;
  left: 461px;
  top: 197px;
  font-size: 36px;
}

.banner .indexbg a.third {
  width: 180px;
  height: 180px;
  line-height: 180px;
  text-align: center;
  background-color: rgba(0, 0, 0, 0.3);
  position: absolute;
  left: 1001px;
  top: 179px;
  font-size: 36px;
}

.vnav {
  width: 300px;
  height: 100%;
  flex-shrink: 0;
}

.vnav ul {
  background: rgba(0, 0, 0, 0.4);
  border-radius: 10px;
  position: relative;
}

.vnav ul li {
  line-height: 52px;
  color: #fff;
  font-size: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.vnav ul li:hover {
  background: #fff;
  color: var(--primary-200);
}

.vnav ul li.first {
  background: linear-gradient(
    45deg,
    var(--primary-200),
    var(--primary-100),
    var(--primary-100),
    var(--primary-200)
  );
  border-radius: 10px 10px 0 0;
  justify-content: center;
  gap: 3px;
  color: #fff;
}

.vnav ul li.first:hover {
  color: #fff;
}

.vnav-dropdown {
  position: absolute;
  top: 0;
  left: 300px;
  background-color: #fff;
  color: #333;
  height: 100%;
  padding: 0 20px;
  font-size: 14px;
  display: none;
  border-radius: 10px;
  z-index: 1;
  /*width: 65vw;*/
}

.vnav-dropdown .d-flex {
  width: 100%;
  height: 100%;
  display: flex;
  /*flex-direction: column;*/
  /*justify-content: space-around;*/
  flex-wrap: wrap;
  writing-mode: vertical-lr;
}

.vnav-dropdown .d-flex .item {
  writing-mode: horizontal-tb;
}

/* .banner .vnav-dropdown .item {
    margin-bottom: 20px;
} */
.vnav-dropdown .title {
  font-weight: bold;
}

.vnav-dropdown .content {
  display: flex;
  flex-wrap: wrap;
}

.vnav-dropdown a {
  white-space: nowrap;
  border-right: 1px solid rgba(0, 0, 0, 0.3);
  padding: 0 10px;
  line-height: 16px;
}

.vnav-dropdown a:last-child {
  border-right: none;
}

.vnav ul li:hover .vnav-dropdown {
  display: block;
}

.vnav-dropdown a:hover {
  color: #f60;
}

/* top文章列表开始 */
.hotart {
  margin-top: 22px;
  display: flex;
  gap: 22px;
}

/* 调用文章列表样式 */
.artlist .tabbox {
  width: 100%;
  display: flex;
  justify-content: center;
}

.artlist .tabbox span {
  border: 1px solid var(--primary-100);
  padding: 11px 22px;
  font-size: 18px;
  color: var(--text-200);
  cursor: pointer;
}

.artlist .tabbox span.active {
  background-color: var(--primary-100);
  color: #fff;
}

.artlist .contbox {
  margin-top: 22px;
  counter-reset: li;
  /* display: none; */
}

.artlist .contbox.active {
  display: block;
}

.artlist .contbox article {
  display: flex;
  gap: 22px;
  margin-bottom: 22px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  padding: 11px 0;
}

.artlist .contbox article .pic {
  width: 220px;
  height: 150px;
  flex-shrink: 0;
}

.artlist .contbox article .pic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.artlist .contbox article .txt {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
}

.artlist .contbox .title {
  font-size: 22px;
  font-weight: bold;
  display: flex;
  align-items: center;
}

.artlist .contbox .title em {
  min-width: 24px;
  height: 24px;
  line-height: 24px;
  border-radius: 5px;
  background: #ccc;
  text-align: center;
  margin-right: 10px;
  color: #fff;
}

.artlist .contbox .title em::after {
  content: counter(li);
  counter-increment: li;
}

.artlist .contbox p {
  width: 100%;
  color: #999;
  font-size: 14px;
  line-height: 22px;
  height: 44px;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 5px;
  /* 以下是实现省略号的代码 */
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  display: -webkit-box;
}

.artlist .contbox .other {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #999;
}

.artlist .contbox .left a {
  border: 1px solid rgba(222, 135, 141, 0.3);
  padding: 6px 11px;
}

.artlist .contbox .left span {
  font-size: 20px;
  color: #fe741c;
}

/* 查看更多按钮 */
.morebtn {
  display: flex;
  justify-content: center;
  margin: 22px 0;
}

.morebtn a {
  background: var(--bg-200);
  padding: 10px 40px;
  border-radius: 22px;
  font-size: 16px;
  color: var(--text-100);
}

.morebtn a:hover {
  color: var(--accent-100);
}

/* 右侧 */
.hotart .topten {
  width: 370px;
  flex-shrink: 0;
}

.hotart .topten .itembox {
  background: url(../images/topten-bg.jpg);
  margin-bottom: 22px;
  border-radius: 10px;
  padding: 20px;
}

.hotart .topten .itembox .title {
  font-size: 20px;
  color: #fff;
  height: 44px;
  line-height: 44px;
  font-weight: bold;
}

.hotart .topten .itembox ul {
  background-color: #fff;
  padding: 10px;
  border-radius: 10px;
}

.hotart .topten .itembox ul li {
  height: 42px;
  line-height: 42px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 14px;
}

.hotart .topten .ad {
  width: 100%;
}

.hotart .topten .ad img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* product部分 */
.product {
  margin-top: 22px;
}

.productItem {
  display: flex;
}

.productItem .itemTitle {
  position: relative;
  padding: 10px 0;
}

.productItem .itemTitle span {
  position: absolute;
  left: 10px;
  top: 20px;
}

.productItem ul {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
}

.productItem ul li {
  width: 25%;
  padding: 10px;
}

.productItem ul li .liBgColor {
  background-color: #fff;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-around;
  text-align: center;
}

.productItem li .img {
  width: 160px;
  height: 160px;
}

.productItem li .img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
