/*news star*/
/* 列表容器整体布局：每行2个，间距40px */
.information-list-shortcode ul {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px; /* 列表项之间的间距 */
  margin: 0;
  padding: 0;
  list-style: none; /* 移除默认列表样式 */
}

/* 列表项样式：限制溢出，增加内边距 */
.information-list-shortcode ul li {
    overflow: hidden;
    padding: 40px 40px 30px 40px;
    box-shadow: 0px 0px 6px 0px #0000001A;
    background: #FFFFFF;
    transition: background 0.3s ease;
}

/* 标题与PDF图标的父容器：Flex横向排列 */
.information-list-shortcode .df-item-title-pdf {
    display: flex;
    align-items: flex-start; 
    gap: 40px;
    width: 100%;
    margin-bottom: 15px;
}

/* 标题样式：自适应宽度，支持换行 */
.information-list-shortcode .df-item-title {
    font-size: 20px;
    font-weight: 700;
    line-height: 30px;
    color: #0F0F0F;
    flex: 1; /* 占据剩余空间 */
    word-wrap: break-word; /* 长文本自动换行 */
    word-break: break-word; /* 避免英文单词溢出 */
}

/* PDF图标容器：固定尺寸，不被挤压 */
.information-list-shortcode .df-item-pdf {
    position: relative;
    display: block; /* 修正原"display: black"的笔误 */
    flex-shrink: 0; /* 禁止压缩 */
    width: 90px; /* 图标容器宽度（根据图片调整） */
    height: 74px; /* 图标容器高度（根据图片调整） */
}

/* PDF图标：通过伪元素添加图片 */
.information-list-shortcode .df-item-pdf::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%); /* 垂直居中 */
    background-image: url('/wp-content/uploads/2025/11/df-yl.svg'); /* 替换为实际图片路径 */
    background-size: contain; /* 图片自适应容器 */
    background-repeat: no-repeat;
    background-position: center; /* 图片居中显示 */
    width: 100%; /* 与容器同宽 */
    height: 100%; /* 与容器同高 */
    transition: background-image 0.3s ease;
}
.information-list-shortcode .df-item-pdf:hover::before {
    background-image: url('/wp-content/uploads/2025/11/df-yl-hover.svg');
}
/* 时间与链接区域：左右分布 */
.information-list-shortcode .df-item-time-tourl {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%; 
    color: #6B5335;
    font-size: 18px; 
    line-height: 26px;
    margin-top: 30px; 
}
.information-list-shortcode .df-item-time {
    margin-left: -40px;
    padding: 8px 40px;
    background: linear-gradient(90deg, #EFE2D0 0%, rgba(253, 244, 233, 0) 100%);
}
/* 箭头图标样式（保持原有或微调） */
.information-list-shortcode .df-item-tourl img {
    width: 32px;
    height: auto;
    display: block;
}
.information-list-shortcode ul li:hover {
    background: linear-gradient(180deg, #FFFFFF 0%, #FFF6EB 100%);
}
.contract-list-shortcode ul {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px 20px;
    margin: 0;
    padding: 0;
    list-style: none; /* 移除默认列表样式 */
}
.df-contract-img {
    box-shadow: 0px 0px 6px 0px #0000001A;
}
.df-contract-title {
    display: block;
    margin-top: 30px;
    font-weight: 700;
    font-size: 20px;
    line-height: 30px;
    text-align: center;
    color: #0F0F0F;
    transition: color 0.3s ease;
}
.contract-list-shortcode li:hover .df-contract-title {
    color: #C0935A;
}
.icon-df-yl:before {
    border: 1px solid;
    transition: background-color 0.3s ease, color 0.3s ease;
}
.icon-df-yl:hover::before {
    background-color: #C0935A;
    color: #fff;
}
/*news end*/
/*search star*/
.df-search-list .elementor-posts .elementor-post__card .elementor-post__text {
    margin-top: 0px;
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
}
.df-search-list .category-contrats-publies .elementor-post__card .elementor-post__text h3 {
    margin: 0;
    justify-self: start;
}
.df-search-list .elementor-post__card .elementor-post__text a.elementor-post__read-more {
    margin: 0;
    justify-self: end;
    padding: 11px 24px;
    border: 1px solid #C0935A;
    transition: color 0.3s ease, background-image 0.3s ease;
}
.df-search-list .elementor-post__card:hover {
    background-color: #FFFAF9;
}
.df-search-list .elementor-post__card:hover h3.elementor-post__title a {
    color: #C0935A;
}
.df-search-list .elementor-post__card:hover a.elementor-post__read-more {
    background: linear-gradient(90deg, #C0935A 0%, #D2AAA8 100%);
    color: #FFF;
}
.search-nothing {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 20px;
    text-align: center; 
}
.search-nothing span {
    margin-top: 60px;
    display: block;
    color: #0F0F0F;
    font-size: 24px;
    line-height: 36px;
}
/*search end*/
/*page star*/
.pagination-wrapper a,
.pagination-wrapper span {
    color: #3E3E3E;
}

.elementor-pagination a,
.elementor-pagination span {
    display: inline-block;
    width: 42px;
    height: 42px;
    border-radius: 0;
    background-color: #F3F3F3;
    line-height: 42px;
}

.pagination-wrapper a:hover,
.pagination-wrapper .current {
    color: #fff;
}

.elementor-pagination a:hover {
    background: #C0935A;
    transition: background 0.3s ease;
}

.elementor-pagination span.page-numbers.prev,
.elementor-pagination span.page-numbers.next {
    font-size: 14px;
    background: #C0935A;
    color: #fff !important;
}
.elementor-pagination .page-numbers.current {
    background: #C0935A;
}
/*page end*/
@media (min-width: 1025px) and (max-width: 1400px) {
    .width-padding-lr {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }
    .df-search-list .elementor-post__card .elementor-post__text a.elementor-post__read-more {
        width: 220px;
    }
}
@media (max-width: 1024px) {
    .information-list-shortcode ul {
        grid-template-columns: 1fr; /* 单行布局 */
    }
    .contract-list-shortcode ul {
        grid-template-columns: repeat(2, 1fr);
    }
    .df-search-list .elementor-post__card .elementor-post__text a.elementor-post__read-more {
        width: 220px;
    }
}
/* 响应式适配：小屏幕每行显示1个 */
@media (max-width: 768px) {
  .information-list-shortcode ul, .contract-list-shortcode ul {
    grid-template-columns: 1fr; /* 单行布局 */
  }
  .information-list-shortcode ul li {
      padding: 20px 20px 15px 20px;
  }
  .information-list-shortcode .df-item-pdf {
    width: 60px;
    height: 56px;
  }
  .information-list-shortcode .df-item-title {
    font-size: 18px; /* 缩小标题字体 */
    line-height: 26px;
  }
  .df-search-list .elementor-posts .elementor-post__card .elementor-post__text {
    display: flex;
  }
  .df-search-list .elementor-post__card .elementor-post__text a.elementor-post__read-more {
    margin-top: 15px;
  }
}