/* ============================================================
   齐鲁丰景 · 乡村振兴 专题页
   设计基准宽度 1900px（与设计稿 1:1），1rem = 100 设计像素
   html 字号 = 100vw / 19  →  19rem = 100vw，全屏等比缩放
   说明：本文件位于 css/ 子目录，背景图相对路径使用 ../images/
   ============================================================ */
:root {
  /* 设计基准单位：1rem = 100 设计像素，融媒 Swiper 沿用参考页的 --size-100 变量 */
  --size-100: 1rem;
}

html {
  font-size: calc(100vw / 19);
  /* 1900px 基准：1rem = 100px */
  background: #f9efdb;
  /* 背景图同色，内容增高时不留白 */
}

@media (min-width: 1900px) {

  /* 超宽屏封顶，按 1:1 居中显示 */
  html {
    font-size: 100px;
  }
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  width: 19rem;
  margin: 0 auto;
  font-family: "PingFang SC", "Microsoft YaHei", "Source Han Sans SC", "Hiragino Sans GB", sans-serif;
  color: #333;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ---------- 区块通用：整块背景 + 等比不裁切 ---------- */
.sec {
  position: relative;
  background-repeat: no-repeat;
  background-position: top center;
  background-size: 100% auto;
  /* 高度按图片比例自动，随宽度等比 */
  overflow: hidden;
}

.sec .more1 {
  position: absolute;
  top: 19%;
  right: 20%;
  font-size: 0.16rem;
  font-weight: bold;
}

/* ============ 01 头部主视觉 ============ */
.sec-banner {
  min-height: 8.39rem;
  background-image: url(../images/01-banner.png);
}

/* ============ 02 文字稿件 / 最新报道 ============ */
.sec-news {
  min-height: 9.64rem;
  padding-top: 1.68rem;
  background-image: url(../images/02-news.png);
}

.news-card {
  width: 11.46rem;
  min-height: 5.91rem;
  margin-left: 3.91rem;
  /* background: #fff; */
  border-radius: 0.1rem;
  /* box-shadow: 0 0.04rem 0.22rem rgba(176, 146, 96, .22); */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.news-card__head {
  width: 100%;
}

.news-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 1.09rem;
  padding: 0.1rem 0.67rem 0.06rem 0.37rem;
}

.news-item {
  position: relative;
  padding-bottom: 0.1rem;
  margin-bottom: 0.1rem;
  border-bottom: 1px dashed #eae2d5;
}

.news-item:nth-last-child(-n+2) {
  border-bottom: 0;
  margin-bottom: 0;
  padding-bottom: 0;
}

.news-item h3 {
  font-size: 0.16rem;
  line-height: 0.28rem;
  font-weight: 700;
  color: #2f2f2f;
  margin-bottom: 0.1rem;
}

.news-item h3 a:hover {
  color: #1f7a68;
}

.news-item p {
  font-size: 0.12rem;
  line-height: 0.25rem;
  color: #8e8e8e;
  text-align: justify;
  padding-right: 0.9rem;
  /* 预留右下角“详细”空间，避免压字 */
}

.news-item .more {
  font-size: 0.12rem;
  color: #e2603c;
  letter-spacing: 0.02rem;
}

.news-item .more:hover {
  color: #c9451f;
}

.news-item__foot {
  position: absolute;
  right: 0;
  bottom: 0.1rem;
  padding-left: 0.06rem;
}

/* ============ 04 短视频（3×3 网格，初始样式） ============ */
.sec-video {
  min-height: 9.49rem;
  padding-top: 1.76rem;
  background-image: url(../images/04-video.png);
  display: flex;
  justify-content: center;
}

.video-card {
  width: 11rem;
  min-height: 6.46rem;
  border-radius: 0.1rem;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.video-card__head {
  width: 100%;
}



/* 3×3 短视频缩略图网格（初始样式） */
.video-grid {
  display: grid;
  gap: 0.18rem 0.18rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
}

.video-grid a {
  width: 2.6rem;
  display: block;
  border-radius: 0.04rem;
  /* overflow: hidden; */
  transition: transform .25s, box-shadow .25s;
  position: relative;
  margin: 0.5rem 0.3rem;
}

.video-grid img {
  width: 100%;
}

.video-grid a:hover {
  transform: translateY(-0.04rem);
  box-shadow: 0 0.06rem 0.16rem rgba(0, 0, 0, .25);
}

.video-grid .mask {
  width: 100%;
  position: absolute;
  bottom: -16%;
  height: 15%;
  color: #000;
  font-size: 0.15rem;
  text-align: center;
}

/* ============ 05 微电影（含下方标题，整块） ============ */
.sec-movie {
  min-height: 9.78rem;
  padding-top: 1.49rem;
  background-image: url(../images/05-movie.png);
  display: flex;
  align-items: center;
  justify-content: center;
}

.sec-movie ul {
  width: 1200px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
}

.sec-movie ul li {
  width: 8.1rem;
  height: 6rem;
  list-style: none;
  margin-top: 0.4rem;
}

.sec-movie ul li img {
  width: 100%;
  height: 80%;
}

.sec-movie ul li p {
  font-size: 0.2rem;
  display: flex;
  justify-content: center;
  margin-top: 0.1rem;
}

/* ============ 07 融媒作品（Swiper 居中轮播） ============ */
.sec-works {
  min-height: 9.46rem;
  background-image: url(../images/07-works.png);
  display: flex;
  justify-content: center;
}

/* 轮播容器：顶部位移对齐设计稿 p3 位置（1.68rem），高度取最高海报 5.75rem */

.xczj .sw {
  position: absolute;
  top: 16%;
  overflow: hidden;
  width: 60%;
  height: 60%;
  margin-top: 5%;
}

.xczj .swiper {
  width: 100%;
  height: 100%;
}

.swiper-wrapper {
  display: flex;
  height: 100%;
  align-items: center;
}

.xczj .swiper-slide {
  width: calc(var(--size-100) * 3);
  height: 70%;
  text-align: center;
  font-size: calc(var(--size-100) * 0.18);
  background: #cfb79b;
  display: -webkit-box;
  display: -ms-flexbox;
  display: -webkit-flex;
  display: flex;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  -webkit-justify-content: center;
  justify-content: center;
  -webkit-box-align: center;
  -ms-flex-align: center;
  -webkit-align-items: center;
  align-items: center;
  transition: 300ms;
  transform: scale(1);
  -webkit-transform: scale(1);
  -ms-transform: scale(1);
  outline: calc(var(--size-100) * 0.02) solid #fff;
  z-index: 0;
  filter: drop-shadow(calc(var(--size-100) * 0.08) calc(var(--size-100) * 0.13856) calc(var(--size-100) * 0.04) rgba(147, 90, 25, 0.28));
  /* 添加硬件加速优化 */
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.xczj .swiper-slide-active {
  z-index: 2;
  transform: scale(1.4);
  -webkit-transform: scale(1.4);
  -ms-transform: scale(1.4);
}

.xczj .swiper-slide-prev,
.xczj .swiper-slide-next {
  transform: scale(1.2);
  -webkit-transform: scale(1.2);
  -ms-transform: scale(1.2);
  z-index: 1;
}

.xczj .swiper-slide a {
  height: 100%;
  width: 100%;
  display: inline-block;
  position: relative;
}

.xczj .swiper-slide a .mask {
  position: absolute;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: #0000007e;
}

.xczj .swiper-slide a img {
  height: 100%;
  width: 100%;
}

.xczj .swiper-slide-active a .mask {
  background-color: transparent;
}

.xczj .next,
.xczj .prev {
  height: 10%;
  position: absolute;
  top: 50%;
  cursor: pointer;
}

.xczj .next img,
.xczj .prev img {
  height: 100%;
}

.xczj .next {
  left: 12%;
}

.xczj .prev {
  right: 12%;
}


/* ============ 08 评论 ============ */
.sec-comment {
  min-height: 8.88rem;
  padding-top: 1.92rem;
  background-image: url(../images/08-comment.png);
}

.comment-panel {
  position: relative;
  width: 10.74rem;
  min-height: 4.02rem;
  margin-left: 4.48rem;
  padding: 0.27rem 0.65rem 0.6rem 0.52rem;
  border-radius: 0.14rem;
  /* background: linear-gradient(135deg, #dceeed 0%, #eef7f7 40%, #dcefee 100%); */
  /* box-shadow: inset 0 0 0.5rem rgba(255, 255, 255, .95), 0 0.02rem 0.1rem rgba(120, 170, 165, .18); */
}

.comment-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.25rem 0.33rem;
}

.comment-item {
  position: relative;
  min-height: 1.41rem;
  padding: 0.34rem 0.26rem 0.18rem 0.3rem;
  background: rgba(255, 255, 255, .55);
  border: 2px solid #d7a868;
  border-radius: 0.04rem;
  transition: background .25s, box-shadow .25s;
}

/* 内层细金线（中式双线描边） */
.comment-item::before {
  content: "";
  position: absolute;
  inset: 0.05rem;
  border: 1px solid #e6c79a;
  border-radius: 0.02rem;
  pointer-events: none;
}

.comment-item:hover {
  background: rgba(255, 255, 255, .78);
  box-shadow: 0 0.03rem 0.12rem rgba(180, 150, 100, .25);
}

.comment-item__no {
  position: absolute;
  left: -0.1rem;
  top: -0.15rem;
  width: 0.28rem;
  height: 0.48rem;
  border-radius: 0.03rem;
  background: #c00b1e;
  color: #fff;
  font-size: 0.2rem;
  line-height: 0.28rem;
  text-align: center;
  font-weight: 700;
  box-shadow: 0 0.02rem 0.06rem rgba(160, 10, 25, .4);
  display: flex;
  align-items: center;
  justify-content: center;
}

.comment-item p {
  position: relative;
  font-size: 0.16rem;
  line-height: 0.24rem;
  color: #000;
}

/* ============ 移动端适配（≤768px） ============
   背景图仍整页等比还原（section 高度由 rem 随 vw 等比，无露白）；
   仅把内容卡片改为流式百分比并居中、字号兜底，提升手机可读性。 */
@media (max-width: 768px) {

  .news-card,
  .video-card,
  .comment-panel,
  .movie-player {
    width: 92% !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  /* 新闻列表单列 */
  .news-list {
    grid-template-columns: 1fr;
  }

  .news-card {
    padding-bottom: 0.3rem;
  }

  /* 字号兜底（rem 随整页缩小后过小，用 px 保证可读） */
  .news-item h3 {
    font-size: 14px;
    line-height: 1.5;
  }

  .news-item p {
    font-size: 12px;
    line-height: 1.7;
    padding-right: 0;
  }

  /* 短视频网格保持 3 列，缩小间距 */
  .video-card {
    min-height: auto;
    padding-bottom: 0.2rem;
  }

  .video-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.08rem;
    padding: 0.12rem 0.1rem 0.1rem;
  }

  .video-grid .mask {
    font-size: 10px;
    height: 18%;
  }

  /* 微电影播放器按比例自适应高度 */
  .sec-movie ul {
    width: 100%;
  }

  .sec-movie ul li {
    width: 8rem;
    height: 6rem;

  }

  .sec-movie ul li p {
    font-size: 0.6rem;
  }

  /* 评论单列 */
  .comment-grid {
    grid-template-columns: 1fr;
  }

  .comment-item p {
    font-size: 13px;
    line-height: 1.6;
  }
}