/* 新闻资讯页面样式 - xwzxlf.css */
/* 顶部导航 header / CTA / 页脚 footer 为全站公共样式，统一放在 style.css */

/* ==================== 首屏 ==================== */
/* 高度 / 定位 / 字号 / 按钮等结构样式统一在公共 style.css 的 .hero 系列（内页共用同一套：
   hero 560 高、文字块 @top188、标题 48px、副标题 24px、按钮 145×48 @top356），这里只定义本页背景 */
.hero {
  background: #eef3fb url('../img/xwzxlf/61700391.jpg') 50% 50%/cover no-repeat;
}

/* ==================== 栏目切换 ====================
   设计稿 con_11_53，与「关于我们」的 page-tabs 同源（结构逐字相同、只有文案不同），
   故栏体 / 项 / 激活下划线的样式全部复用 style.css 的 .catbar 与 .page-tabs / .news-tabs，本页不另写。 */

/* ==================== 资讯列表 ====================
   设计稿 con_19_45：top=698 高 1459，内含 5 个同构 area，各 1400×252，相对 top 40/292/544/796/1048（间距 252），每条底边 1px #f3f3f3。
   条目内部（相对 area 左上角）：
     封面 300×200 @(0,28) 圆角 10 ｜ 标题盒 388×35 @(329,37) 24px/700 #1d2129 ｜ 摘要盒 1051×83 @(329,88) 16px/1.5 #636e80
     日期图 24×24 @(330,200) ｜ 日期文 171×31 @(366,200) 16px/1.5 #a5a5a5 ｜ 查看详情 135×38 @(1256,192) ｜ 分页图 260×59 @(568,1340)
   我方 .catbar 收在 y696（设计稿 638..695 的栏体后还有 695..698 的空条），
   故 padding-top 记 42 让首条落在 738、padding-bottom 记 56 让 CTA 落在 2153。 */
.news {
  padding: 42px 0 56px;
  background: #fff;
}

.news-item {
  display: flex;
  gap: 29px;
  height: 252px;
  padding-top: 28px;
  border-bottom: 1px solid #f3f3f3;
  /* 强制走灰度抗锯齿：设计稿文字边缘是纯灰，不加会出橙/蓝彩边 */
  transform: translateZ(0);
}

.news-cover {
  flex: 0 0 300px;
  height: 200px;
  border-radius: 10px;
  overflow: hidden;
}

.news-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-body {
  flex: 1;
  min-width: 0;
  padding-top: 9px;
}

.news-body h3 {
  width: 388px;
  height: 35px;
  overflow: hidden;
  font-family: "Source Han Sans", Geneva, sans-serif;
  font-size: 24px;
  font-weight: 700;
  line-height: 25px;
  color: #1d2129;
}

.news-body h3 a:hover {
  color: #317af7;
}

.news-body>p {
  width: 1051px;
  height: 83px;
  margin-top: 16px;
  overflow: hidden;
  font-family: "Source Han Sans", Geneva, sans-serif;
  font-size: 16px;
  line-height: 24px;
  color: #636e80;
}

.news-meta {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-top: 21px;
  padding-right: 9px;
}

.news-date {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin: 8px 0 0 1px;
  font-family: "Source Han Sans", Geneva, sans-serif;
  font-size: 16px;
  line-height: 24px;
  color: #a5a5a5;
}

/* 原站把这张日历图标横向压到 22（源图 24×24），照抄；gap 相应补到 14 让日期文本仍在 x366 */
.news-date img {
  display: block;
  width: 22px;
  height: 24px;
}

.news-more {
  flex: 0 0 135px;
  display: block;
  height: 38px;
  font-family: Tahoma, Geneva, sans-serif;
  font-size: 16px;
  line-height: 38px;
  text-align: center;
  color: #a5a5a5;
}

.news-more:hover {
  color: #317af7;
}

/* ==================== 响应式适配 ==================== */
@media (max-width: 1399px) {
  .hero {
    background-position: 62% 50%;
  }

  /* 容器被压缩，条目从定尺 252 高改为流式 */
  .news-item {
    height: auto;
    gap: 22px;
    padding: 24px 0;
    align-items: flex-start;
  }

  .news-cover {
    flex: 0 0 220px;
    height: 147px;
  }

  .news-body {
    padding-top: 0;
  }

  .news-body h3 {
    width: auto;
    height: auto;
    font-size: 21px;
    line-height: 1.4;
  }

  .news-body>p {
    width: auto;
    height: auto;
    margin-top: 10px;
    font-size: 15px;
    line-height: 1.6;
    /* 桌面档靠固定盒高 83 截成 3 行；变流式后盒高交给内容，这里补回 3 行截断 */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .news-meta {
    margin-top: 14px;
    padding-right: 0;
    align-items: center;
  }

  .news-date {
    margin-top: 0;
    font-size: 15px;
    line-height: 22px;
    gap: 13px;
  }

  .news-date img {
    width: 20px;
    height: 22px;
  }

  .news-more {
    flex: 0 0 118px;
    height: 34px;
    font-size: 15px;
    line-height: 34px;
  }
}

@media (max-width: 991px) {
  .hero {
    background-image:
      linear-gradient(180deg, rgba(255, 255, 255, .9) 40%, rgba(255, 255, 255, .6)),
      url('../img/xwzxlf/61700391.jpg');
    background-position: 50% 50%, 68% 50%;
    background-size: cover, cover;
  }

  .news-cover {
    flex: 0 0 176px;
    height: 118px;
  }

  .news-body h3 {
    font-size: 19px;
  }
}

@media (max-width: 767px) {

  .news {
    padding-bottom: 44px;
  }

  .news-item {
    flex-direction: column;
    gap: 14px;
    padding: 22px 0;
  }

  .news-cover {
    flex: none;
    width: 100%;
    height: 186px;
  }

  .news-body h3 {
    font-size: 17px;
  }

  .news-body>p {
    margin-top: 8px;
    font-size: 14px;
  }

  .news-meta {
    margin-top: 12px;
  }

  .news-date {
    font-size: 14px;
  }

  .news-more {
    flex: 0 0 auto;
    height: 30px;
    font-size: 14px;
    line-height: 30px;
  }
}

@media (max-width: 479px) {
  .news-cover {
    height: 158px;
  }
}