/*
 * 新闻列表页专属样式（news.html）
 * 设计稿：1:4558「新闻资讯-定」（1920×3765，底色 #F2F2F2）
 * 结构：banner(700) → 二级菜单 2 项(100，行业新闻激活) →
 *       面包屑 + 搜索框 → 新闻卡 5 张（1600×350，间隔 40）→ 分页（1-5/.../37）
 * 二级菜单复用 .subnav（common.css，本页 2 项，覆盖 max-width）；
 * 搜索框 .search-box 与分页 .pager 为公共组件（common.css）
 */

/* ---------- 二级菜单（设计稿 1:4658：2 项各 805 宽，32/28 字号，与 .subnav 规格一致） ---------- */
/* 本页菜单项为 button（点击过滤分类），需清除默认边框/底色；左右分隔线沿用 .subnav 规则 */
.subnav-item {
  max-width: 805px;
  background: none;
  border-top: none;
  border-bottom: none;
  border-left: none;
  font-family: inherit;
  cursor: pointer;
}

/* ---------- 新闻卡列表（设计稿 5 张「新闻-1」：1600×350，间隔 40） ---------- */
.news-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
@media (min-width: 1024px) {
  .news-list {
    gap: 40px;
  }
}

/* 单卡：白底 + 左图 650×350 + 右文（设计稿 矩形218/219、组1473） */
.news-card {
  display: flex;
  flex-direction: column;
  background: #FFFFFF;
  transition: box-shadow 0.2s;
}
.news-card > img {
  width: 100%;
  aspect-ratio: 650 / 350;
  object-fit: cover;
  flex-shrink: 0;
}
.news-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 20px;
}
@media (min-width: 1024px) {
  .news-card {
    flex-direction: row;      /* 设计稿横向布局 */
  }
  .news-card > img {
    width: 40.6%;             /* 650 / 1600 */
  }
  .news-card-body {
    padding: 45px 46px;       /* 设计稿 x=709-650=59、y=45 */
  }
}

/* 标题（font_1:4568：24 Medium；设计稿首卡为 hover 态蓝字示意） */
.news-title {
  font-size: 18px;
  line-height: 28px;
  font-weight: 500;
  color: #333333;
  transition: color 0.2s;
}
.news-date {
  margin-top: 8px;
  font-family: MiSans, "Alibaba PuHuiTi 3.0", sans-serif;
  font-size: 14px;
  color: #666666;
}
/* 摘要（font_1:4573：18 Light，两行截断） */
.news-summary {
  margin-top: 10px;
  font-size: 14px;
  line-height: 26px;
  font-weight: 300;
  color: #3D3D3D;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}
/* 查看详情按钮（设计稿 组60：130×40 圆角 80，默认 #9CA3AF，hover 橙） */
.news-more {
  margin-top: 18px;
  width: 110px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 80px;
  background: #9CA3AF; /* paint_1:4594 */
  color: #FFFFFF;
  font-size: 14px;
  transition: background 0.2s;
}
@media (min-width: 1024px) {
  .news-title { font-size: 24px; line-height: 36px; }
  .news-date { margin-top: 8px; font-size: 18px; }
  .news-summary { margin-top: 8px; font-size: 18px; line-height: 36px; }
  .news-more { margin-top: 24px; width: 130px; height: 40px; font-size: 18px; }
}

/* hover 态（设计稿首卡所示：阴影 + 蓝标题 + 橙按钮） */
.news-card:hover {
  box-shadow: 0 4px 10px 0 rgba(0, 0, 0, 0.3); /* effect_1:3375 */
}
.news-card:hover .news-title {
  color: #0971CE;
}
.news-card:hover .news-more {
  background: #F18903;
}

/* ---------- 过滤空态 ---------- */
.news-empty {
  padding: 60px 0;
  text-align: center;
  font-size: 16px;
  color: #999999;
}
