﻿.channel-content-box {
  width: 100%;
}
.box {
  width: 100%;
  height: 12rem;
  margin-bottom: 3rem;
  display: flex;
  position: relative;
  overflow: hidden;
  transition: 0.3s ease-in-out;
  will-change: transform;
}
.box .img {
  width: auto;
  aspect-ratio: 16 / 9;
  height: 12rem;
  overflow: hidden;
}
.box img {
  height: 12rem;
  object-fit: cover;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  transition: 0.3s ease-in-out;
  will-change: transform;
}
.box-content {
  flex: 1;
  position: relative;
}
.box-content::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 8rem;
  background: #f7f7f7;
  box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.1);
  will-change: transform;
  border-bottom-right-radius: 0.5rem;
  border-top-right-radius: 0.5rem;
  z-index: -1;
  transition: 0.3s ease-in-out;
  will-change: transform;
}

.box .box-title {
  margin: 0.5rem 0 0.5rem 1rem;
  color: #000;
  font-family: 'Microsoft YaHei';
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  height: 3rem;
  min-height: 3rem;
  max-height: 3rem;
  font-size: 1rem;
  line-height: 1.5rem;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  transition: font-weight 0.3s ease-in-out;
}
.box .box-desc {
  padding: 0.5rem 0.5rem 0.5rem 1rem;
  color: #313131;
  font-family: 'HarmonyOS Sans SC';
  font-size: 0.8rem;
  font-style: normal;
  font-weight: 400;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-end;
  height: 8rem;
}
.box-desc p {
  width: 100%;
  height: 4.5rem;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  line-height: 1.5rem;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}
.box-footer {
  height: 2rem;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}
.time {
  padding-left: 1.5rem;
  font-size: 1rem;
  position: relative;
  color: #7d7d7d;
}
.time span:first-child {
  font-size: 0.8rem;
  color: #7d7d7d;
}
.time::after {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1rem;
  height: 1rem;
  background: url('../img/time.png') no-repeat;
  background-size: contain;
}
.box .box-desc .box-view {
  position: relative;
  padding-right: 1.5rem;
  font-size: 0.8rem;
  color: rgba(200, 117, 240, 1);
  text-decoration: none;
}
.box-view::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1rem;
  height: 1rem;
  background: url('../img/more1.png') no-repeat;
  background-size: contain;
}

.box:hover .box-title {
  background: linear-gradient(85.43deg, #c875f0 -6.33%, #4a6cf7 90.46%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 600;
}
.box:hover .box-content::before {
  height: 12rem;
}
.box:hover .box-desc p {
  background: linear-gradient(85.43deg, #c875f0 -6.33%, #4a6cf7 90.46%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.box:hover .box-view {
  background: linear-gradient(85.43deg, #c875f0 -6.33%, #4a6cf7 90.46%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.box:hover .time {
  background: linear-gradient(85.43deg, #c875f0 -6.33%, #4a6cf7 90.46%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.box:hover .time span:first-child {
  background: linear-gradient(85.43deg, #c875f0 -6.33%, #4a6cf7 90.46%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.box:hover img {
  transform: scale(1.1);
}
.box:hover {
  box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.2);
  border-bottom-right-radius: 0.5rem;
  border-top-right-radius: 0.5rem;
}
.box:hover .time::after {
  background: url('../img/time-hover.png') no-repeat;
  background-size: contain;
}
.box:hover .box-view::after {
  background: url('../img/more.png') no-repeat;
  background-size: contain;
}
@media (max-width: 768px) {
  .box {
    flex-direction: column;
    height: auto;
  }
  .box .img {
    width: 100%;
    height: auto;
  }
  .box .img img {
    width: 100%;
    height: auto;
  }
  .box-content {
    height: 12rem;
  }
  .box-title {
    margin: 0.5rem !important;
  }
  .box-desc {
    padding: 0.5rem !important;
  }
}