﻿@charset "utf-8";

/* ============================================================
   news.css — 新闻列表（对齐乔锋 news.html，品牌色欣宇绿）
   ============================================================ */

.news-page {
  --news-accent: #76B331;
  --news-accent-deep: #5BA323;
  --u: calc(100vw / 19.2);
  background: #fff;
}
@media (min-width: 1920px) {
  .news-page { --u: 100px; }
}
@media (max-width: 768px) {
  .news-page { --u: calc(100vw / 7.5); }
}

.news-page .site-wrap,
.news-page__wrap {
  width: var(--site-width-pct);
  max-width: var(--site-max-width);
}

/* Banner 副标题后绿方块（对齐乔锋 desc1） */
.page-news .common-banner .common-title-module .desc1 {
  position: relative;
  margin: 0;
  font-size: calc(.4 * var(--u));
  font-weight: 400;
  color: #1a1a1a;
  line-height: 1;
}
.page-news .common-banner .common-title-module .desc1::after {
  content: '';
  display: inline-block;
  width: calc(.12 * var(--u));
  height: calc(.08 * var(--u));
  background: var(--news-accent);
  transform: skew(-20deg);
  margin-left: calc(.05 * var(--u));
  vertical-align: middle;
}
@media (max-width: 990px) {
  .page-news .common-banner .common-title-module .desc1 {
    font-size: calc(.28 * var(--u));
  }
}

/* ---------- 「查看详细信息」按钮（乔锋 common-button） ---------- */
.news-more {
  display: inline-flex;
  align-items: center;
  position: relative;
  height: 38px;
  padding-left: 54px;
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  font-style: italic;
  color: #1a1a1a;
  line-height: 38px;
  transform: scale(.85);
  transform-origin: left center;
}
.news-more__text {
  position: relative;
  z-index: 2;
  margin-left: -27px;
}
.news-more__text::before {
  content: '';
  display: block;
  position: absolute;
  top: 50%;
  left: -27px;
  width: 54px;
  height: 38px;
  margin-top: -19px;
  background: url("../images/news-btn-frame.png") no-repeat center / contain;
  filter: brightness(0) saturate(100%) invert(58%) sepia(45%) saturate(700%) hue-rotate(50deg) brightness(95%);
  transition: width .3s ease, transform .3s ease;
}
.news-more::after {
  content: '';
  display: block;
  width: 11px;
  height: 12px;
  margin-left: 8px;
  background: url("../images/news-btn-arrow.png") no-repeat center / contain;
  filter: brightness(0) saturate(100%) invert(58%) sepia(45%) saturate(700%) hue-rotate(50deg) brightness(95%);
  transition: margin .3s ease;
  flex-shrink: 0;
}
.news-feature__link:hover .news-more__text::before,
.news-item__link:hover .news-more__text::before {
  width: 35px;
  transform: skew(-23deg);
}
.news-feature__link:hover .news-more::after,
.news-item__link:hover .news-more::after {
  margin-left: 15px;
}

/* ---------- 首条 Featured：全宽 50/50 ---------- */
.news-feature {
  position: relative;
  z-index: 10;
  width: 100%;
}
.news-feature__link {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  width: 100%;
  color: inherit;
  text-decoration: none;
}
.news-feature__media {
  width: 50%;
  min-width: 0;
}
.news-feature__pic {
  position: relative;
  width: 100%;
  overflow: hidden;
  /* 左上斜切，对齐参考图 */
  clip-path: polygon(calc(.72 * var(--u)) 0, 100% 0, 100% 100%, 0 100%, 0 calc(.72 * var(--u)));
  background: #f2f2f2;
}
.news-feature__pic::before {
  content: '';
  display: block;
  padding-top: 66.67%;
}
.news-feature__pic img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .55s var(--ease);
}
.news-feature__side {
  width: 50%;
  min-width: 0;
  min-height: calc(6.4 * var(--u));
  background: #f5f6f8;
  display: flex;
  align-items: flex-start;
}
.news-feature__body {
  max-width: calc(7 * var(--u));
  padding: calc(1.2 * var(--u)) 0 0 calc(.8 * var(--u));
  box-sizing: border-box;
}
.news-feature__date {
  margin: 0 0 calc(.15 * var(--u));
  font-size: calc(.2 * var(--u));
  font-weight: 400;
  color: var(--news-accent);
  line-height: 1.77;
}
.news-feature__title {
  margin: 0 0 calc(.35 * var(--u));
  font-size: calc(.3 * var(--u));
  font-weight: 600;
  color: #1a1a1a;
  line-height: 1.36;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  transition: color .25s var(--ease);
}
.news-feature__info {
  margin: 0;
  font-size: calc(.25 * var(--u));
  font-weight: 400;
  color: #808080;
  line-height: 1.26;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  overflow: hidden;
}
.news-feature__body .news-more {
  margin-top: calc(.4 * var(--u));
}
.news-feature__link:hover .news-feature__title {
  color: var(--news-accent-deep);
}
.news-feature__link:hover .news-feature__pic img {
  transform: scale(1.04);
}

/* ---------- 列表 ---------- */
.news-page__wrap {
  padding-bottom: calc(1.2 * var(--u));
}
.news-list {
  margin-top: calc(1 * var(--u));
  display: flex;
  flex-direction: column;
}
.news-item {
  min-width: 0;
}
.news-item__link {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  gap: calc(.4 * var(--u));
  box-sizing: border-box;
  min-height: calc(3.22 * var(--u));
  padding: calc(.4 * var(--u)) calc(.3 * var(--u));
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 0, 0, .1);
  transition: background-color .25s var(--ease);
}
.news-item__link:hover {
  background: #f5f6f7;
}
.news-item__main {
  width: 65.38%;
  min-width: 0;
  display: flex;
  justify-content: space-between;
  gap: calc(.3 * var(--u));
}
.news-item__date {
  flex: 0 0 auto;
  font-size: calc(.16 * var(--u));
  font-weight: 400;
  color: #808080;
  line-height: 1;
  white-space: nowrap;
}
.news-item__content {
  flex: 1 1 0%;
  max-width: calc(7.2 * var(--u));
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}
.news-item__title {
  margin: 0;
  font-size: calc(.22 * var(--u));
  font-weight: 600;
  color: #1a1a1a;
  line-height: 1.36;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  transition: color .25s var(--ease);
}
.news-item__content .news-more {
  margin-bottom: calc(.2 * var(--u));
  margin-top: calc(.3 * var(--u));
}
.news-item__pic {
  flex: 0 0 auto;
  width: calc(3.6 * var(--u));
  max-width: 36%;
  overflow: hidden;
  /* 左上斜切，对齐参考图 */
  clip-path: polygon(calc(.3 * var(--u)) 0, 100% 0, 100% 100%, 0 100%, 0 calc(.3 * var(--u)));
  background: #f2f2f2;
  aspect-ratio: 3 / 2;
}
.news-item__pic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .45s var(--ease);
}
.news-item__link:hover .news-item__title {
  color: var(--news-accent-deep);
}
.news-item__link:hover .news-item__pic img {
  transform: scale(1.04);
}

/* ---------- 分页 ---------- */
.news-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: calc(.8 * var(--u)) 0 calc(.4 * var(--u));
  font-size: 14px;
  line-height: 1;
}

.news-pagination .btn,
.news-pagination a,
.news-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 12px;
  box-sizing: border-box;
  border: 1px solid rgba(0, 0, 0, .12);
  background: #fff;
  color: #1a1a1a;
  text-decoration: none;
  transition: color .25s var(--ease), background-color .25s var(--ease), border-color .25s var(--ease);
}

.news-pagination a:hover {
  color: var(--news-accent-deep);
  border-color: var(--news-accent);
}

.news-pagination .active,
.news-pagination span.active,
.news-pagination span.btn.active {
  background: var(--news-accent);
  border-color: var(--news-accent);
  color: #fff;
  cursor: default;
}

.news-pagination .prev,
.news-pagination .next {
  min-width: auto;
}

.news-empty {
  margin: 0;
  padding: 80px 0;
  text-align: center;
  font-size: 15px;
  color: var(--c-text-muted);
}

@media (max-width: 990px) {
  .news-feature__media,
  .news-feature__side {
    width: 100%;
  }
  .news-feature__side {
    min-height: 0;
  }
  .news-feature__body {
    max-width: none;
    padding: calc(.4 * var(--u));
  }
  .news-feature__date { font-size: calc(.28 * var(--u)); }
  .news-feature__title { font-size: calc(.32 * var(--u)); }
  .news-feature__info { font-size: calc(.28 * var(--u)); }
  .news-feature__pic {
    clip-path: polygon(calc(.4 * var(--u)) 0, 100% 0, 100% 100%, 0 100%, 0 calc(.4 * var(--u)));
  }
  .news-item__link {
    flex-direction: column-reverse;
    gap: calc(.3 * var(--u));
    padding: calc(.4 * var(--u)) 0;
  }
  .news-item__main {
    width: 100%;
    flex-direction: column;
    gap: calc(.2 * var(--u));
  }
  .news-item__pic {
    width: 100%;
    max-width: none;
    clip-path: polygon(calc(.28 * var(--u)) 0, 100% 0, 100% 100%, 0 100%, 0 calc(.28 * var(--u)));
  }
  .news-item__date { font-size: calc(.22 * var(--u)); }
  .news-item__title { font-size: calc(.28 * var(--u)); }
}

@media (prefers-reduced-motion: reduce) {
  .news-feature__pic img,
  .news-item__pic img,
  .news-more__text::before,
  .news-more::after {
    transition: none;
  }
}

/* ============================================================
   新闻详情页 — 对齐乔锋 newsinfo 布局
   ============================================================ */

.page-news-read {
  --news-accent: #76B331;
  --news-accent-deep: #5BA323;
  --u: calc(100vw / 19.2);
}
@media (min-width: 1920px) {
  .page-news-read { --u: 100px; }
}
@media (max-width: 768px) {
  .page-news-read { --u: calc(100vw / 7.5); }
}

.page-news-read .site-header {
  background: #fff;
  border-bottom: 1px solid var(--c-line);
}

.page-news-read .common-banner .common-title-module {
  max-width: calc(9.8 * var(--u));
}

.page-news-read .common-banner .common-title-module .desc {
  margin: 0;
  font-size: calc(.4 * var(--u));
  font-weight: 400;
  color: #1a1a1a;
  line-height: 1.3;
}
@media (max-width: 990px) {
  .page-news-read .common-banner .common-title-module .desc {
    font-size: calc(.32 * var(--u));
  }
}

.news-read {
  background: #fff;
}

.news-read__section {
  position: relative;
  z-index: 10;
  margin-top: calc(-1.3 * var(--u));
  padding-bottom: calc(1.2 * var(--u));
}

.news-read__box {
  width: var(--site-width-pct);
  max-width: var(--site-max-width);
}

.news-read__layout {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: calc(.6 * var(--u));
}

.news-read__main {
  width: 68%;
  min-width: 0;
}

.news-read__labels {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: calc(.1 * var(--u));
  padding-bottom: calc(.4 * var(--u));
  border-bottom: 1px solid rgba(0, 0, 0, .1);
}

.news-read__label {
  display: inline-block;
  padding: 0 calc(.25 * var(--u));
  background: #f5f6f7;
  color: #808080;
  font-size: calc(.14 * var(--u));
  font-weight: 400;
  line-height: calc(.45 * var(--u));
  text-align: center;
  clip-path: polygon(calc(.1 * var(--u)) 0, 100% 0, 100% calc(100% - calc(.1 * var(--u))), calc(100% - calc(.1 * var(--u))) 100%, calc(.1 * var(--u)) 100%, 0 calc(.1 * var(--u)));
}

.news-read__body {
  display: block;
  margin-top: calc(.4 * var(--u));
  font-size: calc(.18 * var(--u));
  font-weight: 400;
  color: #808080;
  line-height: 1.56;
  overflow-wrap: anywhere;
  word-break: break-word;
  overflow-x: clip;
}

.news-read__body,
.news-read__body * {
  text-wrap-mode: wrap !important;
  white-space: normal !important;
}

.news-read__body pre,
.news-read__body code {
  white-space: pre-wrap !important;
}

.news-read__body p {
  margin: 0 0 calc(.4 * var(--u));
  line-height: 1.66;
}

.news-read__body strong,
.news-read__body b {
  font-weight: 700;
  color: #1a1a1a;
}

.news-read__body img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 0 auto calc(.4 * var(--u));
}

.news-read__body h2,
.news-read__body h3,
.news-read__body h4 {
  margin: 1.4em 0 .6em;
  font-weight: 600;
  line-height: 1.4;
  color: #1a1a1a;
}

.news-read__body a {
  color: var(--news-accent-deep);
}

.news-read__body a:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.news-read__body video,
.news-read__body iframe {
  display: block;
  max-width: 100%;
  margin: calc(.4 * var(--u)) auto;
}

/* 上一页 / 下一个 */
.news-read__pager {
  display: flex;
  flex-wrap: wrap;
  gap: calc(.2 * var(--u));
  margin: calc(.3 * var(--u)) 0 calc(1.2 * var(--u));
}

.news-read__pager-item {
  flex: 1 1 calc(50% - calc(.2 * var(--u)));
  max-width: calc(5.2 * var(--u));
  min-height: calc(1.4 * var(--u));
  box-sizing: border-box;
  padding: 0 calc(.36 * var(--u));
  background: #f5f6f7;
  color: inherit;
  text-decoration: none;
  /* 左上 / 右下切角，对齐乔锋卡片 */
  clip-path: polygon(
    calc(.18 * var(--u)) 0,
    100% 0,
    100% calc(100% - calc(.18 * var(--u))),
    calc(100% - calc(.18 * var(--u))) 100%,
    0 100%,
    0 calc(.18 * var(--u))
  );
}

.news-read__pager-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: calc(.4 * var(--u));
  font-size: calc(.16 * var(--u));
  font-weight: 500;
  color: #808080;
  border-bottom: 1px solid rgba(0, 0, 0, .1);
  transition: color .3s ease, border-color .3s ease;
}

.news-read__pager-top::after {
  content: '';
  display: block;
  width: 7px;
  height: 7px;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  transform: rotate(45deg);
  flex-shrink: 0;
  transition: border-color .3s ease, transform .3s ease;
}

.news-read__pager-item.is-prev .news-read__pager-top::after {
  transform: rotate(-135deg);
}

.news-read__pager-title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  padding: calc(.18 * var(--u)) 0 calc(.22 * var(--u));
  font-size: calc(.18 * var(--u));
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.45;
  transition: color .3s ease;
}

.news-read__pager-item:hover .news-read__pager-top {
  color: var(--news-accent-deep);
  border-bottom-color: var(--news-accent-deep);
}

.news-read__pager-item:hover .news-read__pager-title {
  color: var(--news-accent-deep);
}

/* 推荐侧栏 */
.news-read__aside {
  width: calc(32% - 1 * var(--u));
  min-width: 0;
  position: sticky;
  top: calc(var(--header-h, 60px) + 24px);
}

.news-read__aside-head {
  box-sizing: border-box;
  line-height: calc(.84 * var(--u));
  border-bottom: 1px solid rgba(0, 0, 0, .1);
}

.news-read__aside-title {
  margin: 0;
  font-size: calc(.3 * var(--u));
  font-weight: 600;
  color: var(--news-accent);
  line-height: inherit;
}

.news-read__aside-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.news-read__aside-list li {
  border-bottom: 1px solid #ececec;
}

.news-read__aside-list a {
  display: block;
  padding: calc(.3 * var(--u)) 0;
  color: inherit;
  text-decoration: none;
}

.news-read__aside-item {
  max-width: 100%;
}

.news-read__aside-name {
  font-size: calc(.2 * var(--u));
  font-weight: 600;
  color: #1a1a1a;
  line-height: 1.5;
  transition: color .3s ease;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.news-read__aside-date {
  padding-top: calc(.18 * var(--u));
  font-size: calc(.14 * var(--u));
  font-weight: 400;
  color: #666;
  line-height: 1.4;
}

.news-read__aside-list a:hover .news-read__aside-name {
  color: var(--news-accent-deep);
}

@media (max-width: 990px) {
  .news-read__section {
    margin-top: 0;
    padding-top: calc(.6 * var(--u));
  }

  .news-read__main,
  .news-read__aside {
    width: 100%;
  }

  .news-read__aside {
    position: static;
    margin-top: calc(.4 * var(--u));
  }

  .news-read__pager-item {
    flex: 1 1 100%;
    max-width: none;
  }
}

/* 小屏统一正文字号 14px */
@media (max-width: 768px) {
  .page-news-read .common-banner .common-title-module .desc {
    font-size: 18px;
    line-height: 1.4;
  }

  .news-read__label {
    font-size: 12px;
    line-height: 28px;
    padding: 0 12px;
  }

  .news-read__body,
  .news-read__body p,
  .news-read__body div,
  .news-read__body span,
  .news-read__body li,
  .news-read__body td {
    font-size: 14px !important;
    line-height: 1.7 !important;
  }

  .news-read__body h2,
  .news-read__body h3,
  .news-read__body h4 {
    font-size: 16px !important;
    line-height: 1.5 !important;
  }

  .news-read__pager-top {
    height: 36px;
    font-size: 14px;
  }

  .news-read__pager-title {
    font-size: 14px;
    font-weight: 600;
    padding: 12px 0 14px;
  }

  .news-read__aside-title {
    font-size: 18px;
  }

  .news-read__aside-name {
    font-size: 14px;
  }

  .news-read__aside-date {
    font-size: 12px;
    padding-top: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .news-read__pager-top,
  .news-read__pager-title,
  .news-read__aside-name {
    transition: none;
  }
}
