/* 建党领航 */
body {
  background-color: #f3f3f3;
}

.banner_title>h1 {
  color: var(--primary-color);
}

.banner_title_line {
  background-color: var(--secondary-color);
}

.news_list_title_left>p {
  color: var(--primary-color);
}

.news_list_title_line {
  background-color: var(--secondary-color);
}

.news_list_title_more:hover {
  color: var(--primary-color);
}

/* 顶部轮播和党的建设 */
.party_top {
  width: 1200px;
  margin: 0 auto 0 auto;
}

.party_top_left, .party_top_right {
  background-color: #fff;
  box-sizing: border-box;
  width: 50%;
  height: 433px;
}

.party_top_left {
  padding: 24px 14px 24px 22px;
  width: 50%;
}

.party_top_right {
  padding: 24px 29px 24px 14px;
  display: flex;
  flex-direction: column;
}

.swiper-container {
  height: 385px;
}

.swiper_img {
  width: 100%;
  height: 100%;
}

.swiper_item {
  position: relative;
}

.pagination {
  position: absolute;
  z-index: 20;
  bottom: 10px;
  width: 100%;
  text-align: center;
  margin: 0;
}

.pagination .swiper-pagination-switch {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #A19F9F;
  margin: 0 5px;
  text-align: center;
  vertical-align: middle;
}

.pagination span {
  padding: 0;
  min-width: 0;
}

.swiper-active-switch {
  background: #fff;
}

.swiper_title {
  position: absolute;
  bottom: 0;
  left: 0;
  box-sizing: border-box;
  padding-top: 10px;
  width: 100%;
  height: 58px;
  background-color: rgba(0, 0, 0, 0.3);
}

.swiper_title>p {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: center;
  font-size: 16px;
  color: #fff;
}

.swiper_title>p>a {
  color: #fff;
}

.arrow_left {
  position: absolute;
  left: 0;
  top: 50%;
  margin-top: -28px;
  z-index: 5;
  width: 40px;
  height: 56px;
  cursor: pointer;
}

.arrow_right {
  position: absolute;
  right: 0;
  top: 50%;
  margin-top: -28px;
  z-index: 5;
  width: 40px;
  height: 56px;
  cursor: pointer;
}

/* 党的建设 */
.party_build_lead_news {
  margin-top: 20px;
}

.party_build_lead_news h1 {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 20px;
  color: #333;
}

.party_build_lead_news h1:hover {
  color: var(--primary-color);
}

.party_build_lead_news>p {
  overflow: hidden;
  height: 50px;
  margin-top: 10px;
  margin-bottom: 10px;
  font-size: 14px;
  line-height: 24px;
  color: #999;
  text-overflow: -o-ellipsis-lastline;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
}

.party_build_news_list {
  /* 条数可后台配置：在固定容器高度内自适应平均分布 */
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  margin: 0;
  padding: 0;
  list-style: none;
}

.party_build_news_item {
  margin-top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.party_build_news_item>a {
  display: inline-block;
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 16px;
  color: #333;
}

.party_build_news_item>span {
  flex: 0 0 auto;
  margin-left: 12px;
  white-space: nowrap;
  font-size: 14px;
  color: #999;
}

/* 中间广告位 */
.party_center {
  display: block;
  width: 1200px;
  height: 100px;
  margin: 30px auto;
}

/* 底部理论之窗基层党建和宣传思想 */
.party_bottom {
  width: 1200px;
  margin: 0 auto 53px auto;
}

.party_bottom>a {
  width: 388px;
  height: 400px;
  margin-right: 18px;
  overflow: hidden;
}

.party_bottom>a>img {
  width: 100%;
  height: 100%;
  transition: all .3s ease-in-out;
}

.party_bottom>a>img:hover {
  transform: scale(1.2);
}

.party_bottom_item {
  box-sizing: border-box;
  padding: 28px 28px 0 28px;
  width: 388px;
  height: 400px;
  background-color: #fff;
}

.party_bottom_left {
  margin-right: 18px;
}

.party_bottom_center {
  margin-right: 18px;
}

.party_news_item {
  margin-top: 23px;
}

.party_news_item>a {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 16px;
  color: #333;
}

.party_news_item>a:hover {
  color: var(--primary-color);
  transition: all .3s ease;
}

.party_build_news_item>a:hover {
  color: var(--primary-color);
  transition: all .3s ease;
}

/* 图文结合稿件模块 */
.news_image_text_section {
  width: 1200px;
  margin: 0px auto 10px;
  box-sizing: border-box;
}

.news_image_text_list {
  margin: 10px auto 20px;
  padding: 24px;
  background-color: #fff;
}

.news_image_text_item {
  display: flex;
  margin-bottom: 30px;
  padding-bottom: 30px;
  border-bottom: 1px solid #E5E5E5;
}

.news_image_text_item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

/* 偶数稿件：文字在左，图片在右 */
.news_image_text_item:nth-child(even) {
  flex-direction: row-reverse;
}

.news_image_box {
  flex-shrink: 0;
  width: 300px;
  height: 200px;
  margin-right: 25px;
  overflow: hidden;
}

/* 偶数稿件中，图片的margin需要调整 */
.news_image_text_item:nth-child(even) .news_image_box {
  margin-right: 0;
  margin-left: 25px;
}

.news_image_box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all .3s ease;
}

.news_image_box:hover img {
  transform: scale(1.05);
}

.news_text_box {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.news_text_box .news_title {
  margin-bottom: 15px;
}

.news_text_box .news_title a {
  font-size: 18px;
  font-weight: bold;
  color: #333;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  text-overflow: ellipsis;
}

.news_text_box .news_title a:hover {
  color: var(--primary-color);
}

.news_text_box .news_desc {
  font-size: 14px;
  line-height: 1.8;
  color: #666;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  overflow: hidden;
  text-overflow: ellipsis;
}

.news_text_box .view_more {
  /* color: #f50000; */
  color: #333;
  font-weight: bold;
}

.news_text_box .view_more:hover {
  color: var(--primary-color);
}

/* 带图稿件模块 */
.enterprise_story_section {
  width: 1200px;
  margin: 0 auto 20px;
}

.enterprise_story_container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.enterprise_story_item {
  width: 384px;
  background-color: #fff;
  /* border-radius: 16px; */
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06), 0 8px 24px rgba(0, 0, 0, 0.1);
}

.enterprise_story_item:hover {
  transform: scale(1.05);
  cursor: pointer;
  transition: all .3s ease;
}

.enterprise_story_image {
  width: 100%;
  height: 220px;
}

.enterprise_story_image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.enterprise_story_body {
  padding: 26px 26px 32px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.enterprise_story_body h4 {
  font-size: 20px;
  color: #333;
  margin-bottom: 14px;
}

.enterprise_story_divider {
  width: 90px;
  height: 4px;
  border-radius: 4px;
  margin-bottom: 18px;
}

.enterprise_story_body p {
  font-size: 15px;
  line-height: 1.9;
  color: #555;
}

/* 图片滑动展示模块 */
.image_showcase_section {
  width: 1200px;
  margin: 20px auto 0px;
}

.image_showcase_wrapper {
  position: relative;
  background: #fff;
  padding: 24px;
  box-sizing: border-box;
}

.image_showcase_main {
  position: relative;
}

.showcase-main-swiper {
  height: 520px;
}

[class*="showcase-main-swiper"] {
  height: 520px;
}

.showcase_main_slide {
  position: relative;
  width: 100%;
  height: 100%;
}

.showcase_main_slide a {
  display: block;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.showcase_main_slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 8px;
}

.showcase_caption {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  text-align: center;
  color: #fff;
  padding: 16px 20px;
  font-size: 18px;
  letter-spacing: 1px;
}

.showcase_caption p {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.image_showcase_pagination {
  position: absolute;
  left: 50%;
  bottom: 60px;
  transform: translateX(-50%);
  width: auto;
  text-align: center;
}

.image_showcase_pagination .swiper-pagination-switch {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #A19F9F;
  margin: 0 5px;
  vertical-align: middle;
  opacity: 0.8;
  transition: all .2s ease;
}

/* 控制swiper分页器圆点颜色 */
.pagination .swiper-active-switch,
.image_showcase_pagination .swiper-active-switch {
  background: #fff;
  opacity: 0.8;
  /* box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.35); */
}

.showcase_btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  z-index: 5;
  transition: background .2s ease;
  font-size: 0;
}

.showcase_btn_prev {
  left: 12px;
}

.showcase_btn_next {
  right: 12px;
}

.showcase_btn::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
}

.showcase_btn_prev::before {
  margin-left: 5px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(45deg);
}

.showcase_btn_next::before {
  margin-right: 5px;
  border-right: 2px solid #fff;
  border-top: 2px solid #fff;
  transform: rotate(45deg);
}

.image_showcase_thumb {
  margin-top: 18px;
}

/* .showcase-thumb-swiper {
 *   height: 134px;
 *   } */

[class*="showcase-thumb-swiper"] { 
  height: 134px; 
}

.showcase_thumb_slide {
  height: 100%;
  border: 2px solid transparent;
  border-radius: 6px;
  box-sizing: border-box;
  overflow: hidden;
  opacity: 0.6;
  cursor: pointer;
  transition: opacity .2s ease, border-color .2s ease;
}

.showcase_thumb_slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.showcase_thumb_slide.is-active {
  opacity: 1;
}

@media (max-width: 1024px) {
  .enterprise_story_section {
    width: auto;
    padding: 0 20px;
  }

  .enterprise_story_container {
    flex-direction: column;
  }
}
