/* ==================================================================
 * 资讯动态页 · Banner + 列表 + 分页（按设计稿，仅 news.html 引入）
 * ================================================================== */

/* ---------- Banner：复用首页背景图，只保留两行标题 ---------- */
body[data-page="news"] .page-banner {
  height: 475px;
  /* 不叠白色遮罩：背景图左侧本身是浅色留白，右侧插画自然过渡 */
  background: #eaf6fd url("../img/home/banner-factory.jpg") center center / cover no-repeat;
  border-bottom: 0;
}
/* 背景图自带插画，关闭内页的点阵 / 光晕装饰层 */
body[data-page="news"] .page-banner::before,
body[data-page="news"] .page-banner::after { display: none; }

body[data-page="news"] .page-banner__inner {
  height: 100%; min-height: 0;
  display: flex; align-items: center;
  padding-top: 0; padding-bottom: 0;
}
body[data-page="news"] .page-banner__text { flex: 1 1 100%; padding: 0; }

/* 大标题：900 / 42px / 60px / 180deg 渐变 #01B9C3 → #048AF0（设计稿原 62px/87px ，按需求调整） */
body[data-page="news"] .page-banner h1 {
  width: max-content; max-width: 100%;
  height: 60px; margin: 0 0 10px;
  font-family: "Alibaba PuHuiTi 3.0", "Alibaba PuHuiTi", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-weight: 900;
  font-size: 42px;
  line-height: 60px;
  letter-spacing: 0;
  white-space: nowrap;
  background: linear-gradient(180deg, #01B9C3 0%, #048AF0 100%) left top / 100% 100% no-repeat;
  -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
}
/* 小标题：400 / 28px / #4A5057 / 40px（设计稿原 32px/46px ，按需求调整） */
body[data-page="news"] .page-banner__sub {
  margin: 0;
  font-weight: 400; font-size: 28px; color: #4A5057;
  line-height: 40px; letter-spacing: 1px;
}

@media (max-width: 1100px) {
  body[data-page="news"] .page-banner h1 { font-size: 36px; height: 52px; line-height: 52px; }
  body[data-page="news"] .page-banner__sub { font-size: 26px; line-height: 38px; }
}
@media (max-width: 860px) {
  body[data-page="news"] .page-banner { height: 380px; }
  body[data-page="news"] .page-banner__inner { flex-direction: row; align-items: center; min-height: 0; padding: 0 24px; }
  body[data-page="news"] .page-banner h1 { font-size: 34px; height: auto; line-height: 1.3; white-space: normal; }
  body[data-page="news"] .page-banner__sub { font-size: 18px; line-height: 28px; }
}
@media (max-width: 560px) {
  body[data-page="news"] .page-banner { height: 300px; }
  body[data-page="news"] .page-banner__inner { padding: 0 18px; }
  body[data-page="news"] .page-banner h1 { font-size: 26px; }
  body[data-page="news"] .page-banner__sub { font-size: 14px; line-height: 24px; letter-spacing: 0; }
}

/* ==================================================================
 * 资讯列表 · 单行 = 左图 246×142 + 右侧三段文字（设计稿实测）
 * 图片右缘 x536 / 文字左缘 x561 → 间距 25px；上下各约 40px 留白
 * ================================================================== */
body[data-page="news"] .news-row {
  grid-template-columns: 246px 1fr;
  gap: 24px;
  padding: 40px 0;
  align-items: center;
  border-bottom: 1px solid var(--line);
}
/* 覆盖 pages.css 的首行上边框：设计稿首行上方无横线 */
body[data-page="news"] .news-row:first-child { border-top: 0; }

body[data-page="news"] .news-row__pic {
  width: 246px; height: 142px;
  border-radius: 0;
  overflow: hidden; background: var(--soft-2);
}
body[data-page="news"] .news-row__pic img { width: 100%; height: 100%; object-fit: cover; }

/* 三段文字在图片高度内上下均分，底部信息与图片底边对齐 */
body[data-page="news"] .news-row__body {
  min-width: 0; height: 142px;
  display: flex; flex-direction: column; justify-content: space-between;
}
/* 标题：700 / 18px / #4A5057 / 26px，单行省略 */
body[data-page="news"] .news-row__title {
  font-weight: 700; font-size: 18px; color: #4A5057; line-height: 26px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
body[data-page="news"] .news-row:hover .news-row__title { color: #4A5057; }
/* 描述：400 / 14px / #4A5057 / 30px，两行省略 */
body[data-page="news"] .news-row__brief {
  margin: 0; height: 60px;
  font-weight: 400; font-size: 14px; color: #4A5057; line-height: 30px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
body[data-page="news"] .news-row__foot {
  margin: 0;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
/* 年月日：400 / 14px / #747C86 / 30px */
body[data-page="news"] .news-row__date {
  font-weight: 400; font-size: 14px; color: #747C86; line-height: 30px;
}
/* 【阅读详情】：400 / 14px / #16BBC8 / 30px */
body[data-page="news"] .news-row__read {
  margin-left: auto;
  display: inline-flex; align-items: center; gap: 0;
  font-weight: 400; font-size: 14px; color: #16BBC8; line-height: 30px;
}

@media (max-width: 1100px) {
  body[data-page="news"] .news-row { gap: 18px; }
}
@media (max-width: 860px) {
  body[data-page="news"] .news-row { grid-template-columns: 200px 1fr; padding: 18px 0; }
  body[data-page="news"] .news-row__pic { width: 200px; height: 116px; }
  body[data-page="news"] .news-row__body { height: 116px; }
  body[data-page="news"] .news-row__title { font-size: 16px; line-height: 24px; }
  body[data-page="news"] .news-row__brief { height: 48px; line-height: 24px; }
  body[data-page="news"] .news-row__foot,
  body[data-page="news"] .news-row__date,
  body[data-page="news"] .news-row__read { line-height: 24px; }
}
@media (max-width: 560px) {
  body[data-page="news"] .news-row { grid-template-columns: 110px 1fr; gap: 12px; padding: 14px 0; }
  body[data-page="news"] .news-row__pic { width: 110px; height: 78px; }
  body[data-page="news"] .news-row__body { height: auto; gap: 4px; }
  body[data-page="news"] .news-row__title { font-size: 14px; line-height: 20px; }
  body[data-page="news"] .news-row__brief { height: 22px; line-height: 22px; font-size: 12px; -webkit-line-clamp: 1; }
  body[data-page="news"] .news-row__foot { margin-top: 2px; }
  body[data-page="news"] .news-row__foot,
  body[data-page="news"] .news-row__date,
  body[data-page="news"] .news-row__read { font-size: 12px; line-height: 22px; }
}

/* ==================================================================
 * 分页：2 页 × 15 条，纯 CSS radio 切页（全站无 JS）
 * radio 必须是 .news-list / .pager 的前置兄弟节点，才能用 ~ 联动
 * ================================================================== */
body[data-page="news"] .news-page-radio {
  position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none;
}
body[data-page="news"] .news-list--p2 { display: none; }
body[data-page="news"] #newsPage2:checked ~ .news-list--p1 { display: none; }
body[data-page="news"] #newsPage2:checked ~ .news-list--p2 { display: flex; }

/* 设计稿：右对齐 / 32×32 白底细框 / 当前页 #16BBC8 / 距分隔线 42px */
body[data-page="news"] .pager {
  justify-content: flex-end; flex-wrap: nowrap; gap: 8px; margin-top: 42px;
}
body[data-page="news"] .pager__btn {
  width: 32px; min-width: 32px; height: 32px; padding: 0;
  border: 1px solid #E7E8EA; border-radius: 0;
  background: #fff; color: #747C86;
  font-weight: 400; font-size: 14px; line-height: 30px; box-sizing: border-box;
}
body[data-page="news"] .pager__btn--nav { width: 62px; min-width: 62px; }
body[data-page="news"] .pager__btn:hover { border-color: #16BBC8; color: #16BBC8; }

/* 当前页高亮：.is-current 为服务端分页（/news）写法，:checked 组合为静态原型写法 */
body[data-page="news"] #newsPage1:checked ~ .pager .pager__num--1,
body[data-page="news"] #newsPage2:checked ~ .pager .pager__num--2,
body[data-page="news"] .pager__btn.is-current {
  background: #16BBC8; border-color: #16BBC8; color: #fff;
}
/* 首页禁用「上一页」，末页禁用「下一页」；.is-disabled 为服务端分页写法（同时不输出 href） */
body[data-page="news"] #newsPage1:checked ~ .pager .pager__nav--prev,
body[data-page="news"] #newsPage2:checked ~ .pager .pager__nav--next,
body[data-page="news"] .pager__btn.is-disabled {
  color: #C6D0D9; border-color: #E7E8EA; pointer-events: none; cursor: default;
}
/* 只有 1 页时不展示分页 */
body[data-page="news"] .pager[data-pages="1"] { display: none; }

@media (max-width: 560px) {
  body[data-page="news"] .pager { gap: 6px; }
  body[data-page="news"] .pager__btn--nav { width: 56px; min-width: 56px; }
}
