/*
 * 国家生态环境科技成果转化综合服务平台 科技成果页样式文件
 * @author: zhuzl<me@zhuzhilong.com>
 * @date: 2024-06-25 20:24:00
 */
.page-kjcg {
  position: relative;
}
.page-kjcg .common-bg {
  background: url("../img/banner-bg-kjcg.jpg") no-repeat center center / cover;
}
.banner-catalog {
  height: calc(468px - 175px);
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-direction: column;

}
.banner-catalog h2 {
  font-size: 40px;
  font-weight: bold;
  line-height: 56px;
  color: #333;
}
.banner-catalog p {
  font-size: 20px;
  line-height: 28px;
  color: #666;
  margin-top: 16px;
}

.sub-nav-wrap {
  background-color: #fff;
  height: 60px;
  border-bottom:solid 1px #E8EBF3
}
.sub-nav-wrap .nav {
  white-space: nowrap;
  overflow-x: auto;
  display: block
}

.sub-nav-wrap .nav-item {
  margin-left:0;
  padding: 0;
  display: inline-block;
  margin-right: 60px;
}
.sub-nav-wrap .nav-link {
  line-height: 60px;
  position:relative;
  display:inline-block;
  padding:0px;
  margin: 0;
  font-size:16px;
  color:var(--text-color-normal);
}
.sub-nav-wrap .nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color-dark);
  transition: all 0.3s ease-in-out;
}
.sub-nav-wrap .nav-link.active, .sub-nav-wrap .nav-link:hover {
  color: var(--primary-color-dark);
  font-weight: 500;
}
.sub-nav-wrap .nav-link.active::after,.sub-nav-wrap .nav-link:hover::after {
  width: 100%;
}

.block-filter-wrap {
  padding: 40px 0;
  background-color: #fff;
}
.filter-title-and-search {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.filter-title h2 {
  font-size: 20px;
  font-style: normal;
  font-weight: 400;
  color: var(--text-color-dark);
  line-height: 32px;
  border-left:solid 4px var(--primary-color-dark);
  padding-left: 10px;
}
.filter-search .input-group {
  position: relative;
  z-index: 1;
}
.filter-search .input-icon {
  position: absolute;
  z-index: 4;
  font-size: 24px;
  left: 10px;
  top: 4px;
  color: var(--text-color-light);
}
.filter-search .form-control {
  padding-left: 35px;
  border:solid 2px var(--primary-color);
  width: 290px;
  font-size: 16px;
}
.filter-search .btn {
  background-color: var(--primary-color);
  font-size: 16px!important;
  border-top-right-radius: 0!important;
  border-bottom-right-radius: 0!important;
}
.type-filter {
  padding-top: 24px;
}
.type-filter .table .type-filter-label {
  background-color: var(--primary-color-dark);
  color:#fff;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  text-align: center;
  vertical-align: middle;
  border-color:#1D7FE1;
}
.type-filter .table .type-filter-label, .type-filter .table .type-filter-items {
  padding: .5rem;
}
.filter-select-item {
  display: inline-block;
  cursor: pointer;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 32px;
  padding: 0 16px;
  margin: 4px;
  color: var(--text-color-normal);
  position: relative;
}
.filter-select-item.active,.filter-select-item:hover {
  color:var(--primary-color-dark);
}
.filter-select-item .filter-select-label.filter-select-has-sub::after {
  font-family: "ceettIcon" !important;
  content: '\e6a0';
  display: inline-block;
  font-size: 12px;
  margin-left: 8px;
  transform: rotate(90deg);
  transition: all 0.3s
}
.filter-select-item ul {
  position: absolute;
  left: 50%;
  top: 100%;
  width: 100%;
  min-width: 240px;
  transform: translateX(-50%);
  height: auto;
  font-size: 16px;
  color: var(--text-color-normal);
  z-index: 2;
  box-shadow: 0px 0px 16px rgba(169,169,169,0.18);
  padding-top: 2px;
  list-style: none;
  padding-left: 0;
  padding: 10px;
  background-color: #fff;
  transition: all 0.3s;
  display: none;
  max-height: 360px;
  overflow: auto;
}
.filter-select-item ul li {
  padding: 8px 0;
  cursor: pointer;
  font-size:14px;
  line-height: 22px;
  text-align: left;
}
.filter-select-item ul li:hover {
  color:var(--primary-color-dark)
}
.filter-select-item:hover > .filter-select-has-sub::after,
.filter-select-item.active > .filter-select-has-sub::after {
  transform: rotate(270deg);
}
.filter-select-item:hover ul {
  display: block;
}
.block-filter-selected {
  background-color: #F2F3F5;
  padding-top: 20px;
  padding-bottom: 8px;
}
.block-search-result {
  background-color: #F2F3F5;
  padding-bottom: 20px;
}
.block-filter-selected .container{
  display: flex;
  justify-content: space-between;
  flex-direction: row;
  align-items: center;
}
.selectable.active {
  font-weight: bold;
  color: #0457AA;
}

.filter-selected-item {
  display: inline-block;
  margin-right:8px;
  margin-bottom: 8px;
  border: 1px solid #DCDFE5;
  background: #fff;
  font-size: 0;
  padding: 8px 8px 8px 16px;

}
.filter-selected-item:hover {
  border-color: var(--primary-color-dark);
}
.filter-selected-label {
  font-size: 14px;
  line-height: 22px;
  display: inline-block;
  font-style: normal;
  font-weight: 400;
  color: var(--text-color-dark);
}
.filter-selected-item .ci-close {
  font-size: 14px;
  margin-left: 8px;
  cursor: pointer;
  color: var(--text-color-light);
}
.filter-selected-item .ci-close:hover {
  color: var(--primary-color-dark);
}
.filter-clear-all {
  width: 70px;
  text-align: right;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  color: var(--primary-color-dark);
  cursor: pointer;
}
#sort-filter .btn {
  color: #333;
  width: 120px;
  font-size: 14px;
  height: 32px;
  border: 1px solid #DDD;
  background-color: #FFF;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
#sort-filter .btn .ceettIcon {
  font-size: 12px;
  color: #0457AA;
  transform: rotate(90deg);
}
#sort-filter.dropdown.show .ceettIcon {
  transform: rotate(-90deg);
}
#sort-filter .btn:focus {
  box-shadow: none!important;
}
#sort-filter .dropdown-menu.show {
  border: none;
  box-shadow: 0px 0px 16px 0px #A9A9A94D;
}
#sort-filter .dropdown-menu .dropdown-item {
  color: #666!important;
  font-size: 14px;
  padding: 6px 10px;
}
#sort-filter .dropdown-menu .dropdown-item.active {
  border: none!important;
  background-color: #F2F3F5!important;
  color: #0457AA!important;
}
#sort-filter .dropdown-item.active,.dropdown-item:active {
  border: none!important;
  background-color: #F2F3F5!important;
  color: #0457AA!important;
  text-decoration: none;
}
#sort-filter .dropdown-menu .dropdown-item:focus {
  box-shadow: none!important;
}
.block-search-result {
  background-color: #F2F3F5;
}
.search-result-list {
  padding-bottom: 24px;
}
.common-page-nav {
  padding-top: 0;
  padding-bottom: 20px;
}
.search-result-item {
  background: #fff;
  padding: 16px;
  position: relative;
  margin-bottom: 16px;
}

.search-result-item:hover {
  background: url(../img/bg_kjcg-article-hover.jpg) no-repeat center center / cover;
  box-shadow: 0px 10px 20px 0px rgba(0, 0, 0, 0.04), 0px 2px 6px 0px rgba(0, 0, 0, 0.04), 0px 0px 1px 0px rgba(0, 0, 0, 0.04);
}
.search-result-item:hover .item-title {
  font-weight: bold;
  color: var(--primary-color-dark);
}
.search-result-item .item-title {
  font-size: 18px;
  font-style: normal;
  font-weight: 500;
  line-height: 36px;
  color:var(--text-color-dark)
}

.search-result-item .item-title.item-top::before {
  content: "";
  display: inline-block;
  vertical-align: middle;
  width: 52px;
  height: 24px;
  background: url("../img/icon-kjcg-top.png") left top / contain no-repeat;
  margin-right: 7px;
}
.search-result-item .item-desc {
  padding-left: 12px;
  border-left: 4px solid #EEE;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 22px;
  color: var(--text-color-normal);
  min-height: 44px;
}

.item-tag-list {
  display: inline-block;
  font-size: 0;
}
.item-tag-list span {
  display: inline-block;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  color: var(--primary-color-dark);
  border: solid 1px var(--primary-color-dark);
  padding: 4px 8px;
  margin-right: 14px;
  margin-bottom: 4px;
}
.item-extra-split {
  width: 2px;
  height: 12px;
  background: #D9D9D9;
  display: inline-block;
  margin:0 24px;
  vertical-align: middle;
}
.item-time, .item-click-count {
  display: inline-block;
  color: var(--text-color-light);
  font-size: 14px;
  font-weight: 400;
}

.search-result-item .item-hot {
  position: absolute;
  top: -3px;
  right: -3px;
  width: 40px;
  height: 40px;
  z-index: 2;
  background: url("../img/icon-kjcg-hot.png") right top / contain no-repeat;
}
.item-arrow {
  position: absolute;
  right: 20px;
  bottom: 20px;
  width: 20px;
}

/* start of 典型案例 */
.page-kjcg-case .search-result-list {
  padding-top: 20px;
}
.case-type-list .btn {
  padding: 10px 16px;
  border-radius: 4px;
  margin-bottom: 8px ;
  border: 1px solid #E8EBF3;
  background: #F2F3F5;
  color:var(--primary-color);
  min-width: 115px;
  font-size: 14px;
  line-height: 26px;
}
.case-type-list .btn.active {
  background: var(--primary-color);
  color: #fff;
  font-size: 16px;
}
.case-type-list .btn+.btn {
  margin-left: 8px;
}
.search-result-item .inner-img {
  height: 133px;
}
.search-result-item .col-md-3 {
  padding-right: 0;
}
/* end of 典型案例 */
.filter-search .search-btn-wrap {
  z-index: 1;
}
.h5-filter-wrap {
  display: none;
  text-align: center;
  padding: 12px 0;
  width: 100%;
}
.h5-filter-wrap .col:first-child {
  border-right: 1px solid #F2F3F5;
}
.h5-filter-wrap .col a {
  color: #666;
}
.h5-filter-wrap .col a:after {
  display: inline-block;
  margin-left: 0.255em;
  vertical-align: 0.255em;
  content: "";
  border-top: 0.3em solid;
  border-right: 0.3em solid transparent;
  border-bottom: 0;
  border-left: 0.3em solid transparent;
}
.drawer-wrap {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.2);
  display: none;
  z-index: 5;
}
.drawer {
  position: absolute;
  width: 100%;
  background-color: #fff;
  z-index: 6;
}
.drawer .drawer-toolbar {
  width: 100%;
  height: 56px;
  padding: 18px 15px;
  border-bottom: 1px solid #DDDDDD;
}
.drawer .drawer-toolbar a {
  font-size: 15px;
  color: #999999;
}
.drawer .drawer-toolbar a.confirm {
  color: #158CE5;
}
#sort-h5-wrap .drawer {
  height: 160px;
  bottom: -160px;
}
#sort-h5-wrap .drawer-body {
  padding: 0 15px 16px 15px;
}
#sort-h5-wrap .drawer-body .list-item {
  padding: 12px 16px;
}
#sort-h5-wrap .drawer-body .list-item:not(:last-child) {
  border-bottom: 1px solid #E8E8E8EE;
}
#sort-h5-wrap .drawer-body .list-item a {
  color: #333333;
  line-height: 20px;
  display: flex;
  justify-content: space-between;
}
#sort-h5-wrap .drawer-body .list-item.active a {
  color: #0457AA;
}
#sort-h5-wrap .drawer-body .list-item a i {
  display: none;
}
#sort-h5-wrap .drawer-body .list-item.active a i {
  display: block;
}
#filter-h5-wrap .drawer {
  height: 480px;
  bottom: -480px;
}
#filter-h5-wrap .drawer-toolbar .title {
  font-weight: bold;
  font-size: 17px;
}
#filter-h5-wrap .category-wrap {
  background-color: #F2F3F5;
  display: flex;
}
#filter-h5-wrap .category-wrap a {
  color: #333333;
  padding: 12px 16px;
}
#filter-h5-wrap .category-wrap a.active {
  color: #0457AA;
  background-color: #fff;
}
#filter-h5-wrap .category-wrap .left {
  width: 50%;
  height: 424px;
  display: flex;
  flex-direction: column;
  overflow: scroll;
}
#filter-h5-wrap .category-wrap .left a {
  border-right: 1px solid #E8E8E8;
}
#filter-h5-wrap .category-wrap .left a.active {
  border-right: 0;
}
#filter-h5-wrap .category-wrap .right {
  background-color: #fff;
  width: 50%;
}
#filter-h5-wrap .category-wrap .right .sub-category-wrap {
  height: 424px;
  overflow: scroll;
  flex-direction: column;
  display: none;
}
#filter-h5-wrap .category-wrap .right .sub-category-wrap.active {
  display: flex;
} 

@media screen and (max-width: 600px) {
  .filter-title-and-search {
    flex-direction: column;
    align-items: flex-start;
  }
  .item-tag-list {
    display: none;
  }
  .item-extra-split {
    display: none;
  }
  .block-filter-wrap {
    padding-bottom: 16px;
  }
  .block-filter-wrap .type-filter, .block-filter-wrap #sort-filter {
    display: none;
  }
  .h5-filter-wrap {
    display: flex;
  }
  .common-header {
    height: 260px;
  }
  .banner-catalog {
    height: calc(260px - 90px);
  }
  .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;
  }
  .sub-nav-wrap {
    height: 44px;
  }
  .sub-nav-wrap .nav-item {
    margin-right: 24px;
  }
  .sub-nav-wrap .nav-link {
    line-height: 44px;
    font-size: 14px;
  }
  .filter-title h2 {
    font-size: 18px;
    font-weight: bold;
    line-height: 25px;
    margin-bottom: 14px;
  }
  .block-filter-wrap {
    padding-top: 24px;
  }
  .filter-search .input-icon {
    font-size: 16px;
    top: 8px;
  }
  .filter-search {
    width: 100%;
  }
  .filter-search .form-control {
    font-size: 14px;
    padding-left: 32px;
    width: 100%;
  }
  .filter-search .search-btn-wrap {
    position: absolute;
    right: 0;
    height: 100%;
  }
  .filter-search .btn {
    font-size: 14px;
  }
  .block-filter-selected {
    padding: 8px 0;
  }
  .search-result-item {
    padding: 12px 16px;
  }
  .search-result-item .item-title {
    font-size: 16px;
    line-height: 1.5;
    font-weight: bold;
    margin-top: 0;
    margin-bottom: 4px;
  }
  .search-result-item .item-desc {
    min-height: auto;
  }
  .item-tag-list span {
    font-size: 12px;
  }
  .filter-search .search-btn-wrap button {
    line-height: 1!important;
  }
  .page-kjcg-case .search-result-list {
    padding-top: 16px;
  }
}
