/*
 * 国家生态环境科技成果转化综合服务平台 技术专区(专题)页样式文件
 * @author: zhuzl<me@zhuzhilong.com>
 * @date: 2024-06-13 01:08:00
 */

 .page-topic-index {
  background: url("../img/banner-bg-topic.png") top center no-repeat;
  background-size: contain;
 }
.page-topic-index .common-bg {
  /* background-image: url("../img/banner-bg-topic.png"); */
  display: none;

}
.banner-catalog {
  height: calc(468px - 175px);
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-direction: column;
  color: #fff;
}
.banner-catalog h2 {
  font-size: 40px;
  color: var(--text-color-dark);
}
.banner-catalog p {
  font-size: 20px;
  margin-top: 10px;
  color: var(--text-color-normal);
}

.topic-list .card {
  border-radius: 4px;
  border: 1px solid #fff;
  box-shadow: 0px 0px 8px 0px rgba(19, 30, 69, 0.15);
  padding: 1px;
}

.topic-list .col {
  padding-bottom: 12px;
  padding-top: 12px;
  padding-left: 12px;
  padding-right: 12px;
}

.topic-list .card-body {
  padding: 0px;
  position: relative;
  overflow: hidden;
}

.topic-logo {
  position: relative;
  overflow: hidden;
}
.topic-logo::after{
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  background-color: rgba(0,0,0,0.25);
  z-index: 1;
  transition: all 0.1s ease;
}
.topic-list .card:hover .topic-logo::after{
  opacity: 1;
}
.topic-info {
  position: absolute;
  left: 0;
  z-index: 1;
  bottom: 0px;
  width: 100%;
  color: #fff;
  transition: bottom 0.3s ease-in-out;
}
.topic-list .card:hover .topic-info {
  bottom: 10px;
}
.topic-title {
  color:#fff;
  padding: 0 20px;
  font-size: 28px;
  font-style: normal;
  font-weight: 500;
  line-height: 36px;
  padding-bottom: 25px;
  padding-bottom: 24px;
  margin-bottom: 0;
}
.topic-desc {
  padding: 0 20px;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 24px;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  display: none;
}
.topic-list .card:hover .topic-desc {
  /* display: -webkit-box; */
  display: block;
}
.topic-link {
  padding: 0 20px;
  /* margin-top: 20px; */
  display: none;
}
.topic-list .card:hover .topic-link {
  display: block;
}
.topic-link .btn {
  padding: 10px 30px;
  font-size: 16px;
  border-radius: 0;
  color:var(--primary-color);
}
.topic-history {
  margin-top: 28px;
  margin-bottom: 24px;
}
.topic-history .title {
  font-family: PingFang SC;
  font-size: 24px;
  font-weight: bold;
  line-height: 34px;
  color: #333333;
  padding-bottom: 10px;
  margin-bottom: 24px;
  border-bottom: 1px solid #E8EBF3;
  position: relative;
}
.topic-history .title::before {
  content: "";
  position: absolute;
  bottom: -1px;
  display: block;
  width: 95px;
  border: 1px solid #158CE5;
}
.topic-history .list-wrap {
  padding-left: 6px;
  padding-right: 6px;
}
.topic-history .col {
  padding-left: 8px;
  padding-right: 8px;
}
.topic-history .card {
  padding: 16px;
  border: 1px solid #EEEEEE;
}
.topic-history .card .card-img-top {
  border-radius: 6px;
}
.topic-history .card .card-body {
  padding: 0;
  margin-top: 16px;
}
.topic-history .card .card-body .card-title {
  font-size: 18px;
  font-weight: bold;
  line-height: 20px;
  color: #333;
  margin-bottom: 0;
}
.topic-history .card .card-body .card-text {
  color: #CCC;
}
.topic-history .card:hover {
  box-shadow: 0px 0px 8px 0px #131E4526;
  cursor: pointer;
}
.topic-history .card:hover .card-body .card-title, .topic-history .card:hover .card-body .card-text {
  color: #1680CE;
}

@media screen and (max-width: 1200px) {
  .common-header {
    height: auto;
  }
  .banner-catalog {
    height: auto;
    padding: 20px 0;
  }
}

@media screen and (max-width: 600px) {
  .page-topic-index {
    background: url("../img/bg_rdzq.png") top center no-repeat;
    background-size: contain;
  }
  .banner-catalog {
    height: 170px;
  }
  .banner-catalog h2 {
    font-size: 24px;
    line-height: 1.2;
    margin-bottom: 0;
  }
  .banner-catalog p {
    font-size: 16px;
    margin-top: 8px;
    line-height: 1.5;
  }
}
