/* ============================================================
 * pages/news/news.css  新闻资讯模块（企业动态 / 展会信息 / 新闻详情）样式
 * @author sctjsj.com  @date 2026
 * 依赖：common/style.css、common/layout.css
 * ========================================================== */

.page-news .inner-banner,
.page-news-detail .inner-banner {
  background-image: url(../images/contact/contact_banner_moss@2x.webp);
}

.news__head { text-align: center; margin: 3.44rem }
.news__head .section-head__watermark { left: 50%; transform: translate(-50%, -50%); }

.news-list {
  width: 90%;
  margin: 0 auto;
  padding: 0 var(--container-pad) var(--sp-8);
  display: flex; flex-direction: column; gap: var(--sp-5);
}

/* FreeMarker list 循环单元：单条新闻行 */
.news-row {
  display: flex; align-items: stretch; gap: var(--sp-6);
  background: #fff; border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 0 0 0 var(--sp-5);
  transition: box-shadow .35s var(--ease-out), transform .35s var(--ease-out),
              border-color .35s var(--ease-out);
}
.news-row:hover { box-shadow: var(--shadow-lg); transform: translateY(-0.25rem); border-color: var(--color-primary-light); }
.news-row:hover .news-row__side,
.news-row:hover .news-row__date-day,
.news-row:hover .news-row__date-ym,
.news-row:hover .news-row__side span,
.news-row:hover .news-row__more::before {
  background: #1E4EB4;
  color: #ffffff;
}
.news-row__media {
  flex: none; width: 24rem; height: 17.44rem; border-radius: var(--radius);
  overflow: hidden;
  margin: var(--sp-5) 0;
}
.news-row__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease-out); }
.news-row:hover .news-row__media img { transform: scale(1.05); }

.news-row__body { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; }
.news-row__title {
  font-family: PingFang;
  font-weight: bold;
  font-size: 1.75rem;
  color: #000000;
  margin-bottom: var(--sp-3);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color .3s;
}
.news-row:hover .news-row__title { color: var(--color-primary); }
.news-row__summary {
  font-family: PingFang;
  font-weight: 400;
  font-size: 1.13rem;
  color: #999999;
  line-height: 2rem;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  text-overflow: ellipsis;
}

.news-row__side {
  flex: none; width: 7.5rem; border-left: 1px solid var(--line-color);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  border-radius:0 0.75rem 0.75rem 0 ;
}
.news-row__side span {
  border-top: 1px solid #CECECE;
}
.news-row__side > div,
.news-row__side span {
  height: 50%;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.news-row__date-day {
  font-family: OPPOSans;
  font-weight: 600;
  font-size: 2.25rem;
  line-height: 2.25rem;
  color: #333333;
}
.news-row__date-ym {
  font-family: OPPOSans;
  font-weight: normal;
  font-size: 1.13rem;
  color: #333333;
  margin-top: 0.25rem;
}
.news-row__more {
  display: flex; flex-direction: column; align-items: center; gap: 0.125rem;
  font-family: PingFang;
  font-weight: bold;
  font-size: 1.13rem;
  color: #333333;
  line-height: 2rem;
  transition: color .3s;
  border-radius: 0 0 0.75rem 0;
}
.news-row__more::before {
  content: "+";
  font-size: 1.875rem; line-height: 1; color: var(--color-primary);
}
.news-row__more:hover { color: var(--color-primary); }

.expo-grid {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 var(--container-pad) var(--sp-8);
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-5);
}

/* FreeMarker list 循环单元：单条展会项 */
.expo-item {
  background: #fff; border: 1px solid var(--border-color);
  padding: 0.75rem 1.3rem;
  border-radius: var(--radius); overflow: hidden;
  transition: box-shadow .35s var(--ease-out), transform .35s var(--ease-out);
  height: 27.04rem;
}
.expo-item:hover { box-shadow: var(--shadow-lg); transform: translateY(-0.25rem); }
.expo-item__media {
  height: 21.47rem; border-radius: 0.5rem; position: relative; overflow: hidden;
}
.expo-item__media img { height: 21.47rem; width: 100%; object-fit: cover; transition: transform .6s var(--ease-out); }
.expo-item:hover .expo-item__media img { transform: scale(1.08); }

.expo-item__date {
  position: absolute; top: 0.875rem; right: 0.875rem;
  width: 4.36rem;
  height: 4.54rem;
  background: var(--color-primary); color: #fff;
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.5rem; text-align: center; line-height: 1.2;
  box-shadow: var(--shadow-sm);
}
.expo-item__date b {
  display: block; font-family: OPPOSans;
  font-weight: normal;
  font-size: 1.63rem;
  color: #FFFFFF;
}
.expo-item__date span {
  font-family: OPPOSans;
  font-weight: normal;
  font-size: 0.88rem;
  color: #FFFFFF; opacity: .9;
}
.expo-item__title {
  padding: var(--sp-3) var(--sp-4);
  font-family: PingFang;
  font-weight: bold;
  font-size: 1.5rem;
  color: #000000;
}

/* ============================================================
 * 新闻详情 article
 * ========================================================== */
.article {
  max-width: var(--container-w);
  margin: 0 6.25rem;
  padding: var(--sp-8) var(--container-pad) var(--sp-6);
}
.article__head { position: relative; padding-bottom: var(--sp-5); border-bottom: 1px solid var(--line-color); }
.article__title { font-size: var(--fs-28); font-weight: 700; color: var(--text-main); line-height: 1.4; padding-right: 7.5rem; }
.article__date { color: #999999; font-size: var(--fs-24); margin-top: 0.5rem; }

.article__back {
  position: absolute; top: 0.5rem; right: 0;
  display: inline-flex; align-items: center; gap: var(--sp-2);
  font-weight: 500;
  font-size: 1rem;
  color: #000000; transition: color .3s, gap .3s;
}
.article__back:hover { color: var(--color-primary); gap: var(--sp-3); }
.article__back .circle {
  width: 2.98rem;
  height: 2.98rem;
  border-radius: 50%;
  border: 1px solid #CECECE;
  display: flex; align-items: center; justify-content: center;
  transition: all .3s;
}

.article__back .circle::after {
  width: 1.44rem;
  height: 1.06rem;
  content: '';
  position: absolute;
  background-size:100% 100%!important;
  background: url(../images/news/jiantoushang.png);
}

.article__back:hover .circle::after {
  background: url(../images/news/jiantoushang1.png);
}

.article__back:hover .circle { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }

.article__body { padding: var(--sp-6) 0; color: #000000; font-size: var(--fs-md); line-height: 2.1; }
.article__body p { margin-bottom: 3.81rem; text-indent: 2em; }
.article__body ol { list-style: none; counter-reset; }
.article__body ol li { counter-increment: item; margin-bottom: var(--sp-3); }
.article__body ol li::before {
  content: counter(item) ". "; color: var(--color-primary); font-weight: 600;
}

.article__sign {
  text-align: right; color: var(--text-sub); font-size: var(--fs-md);
  margin-top: var(--sp-8);
}
.article__sign span { margin-left: var(--sp-6); }

.article__pager {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 0 3.7%;
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  border-top: 1px solid var(--line-color);
}
.article__pager a {
  display: flex; align-items: center; gap: var(--sp-3);
  padding: var(--sp-5) var(--sp-4); font-size: var(--fs-sm); color: var(--fs-base);
  transition: background .3s, color .3s;
}
.article__pager a:hover { background: var(--color-bg-soft); color: var(--color-primary); }
.article__pager a + a { border-left: 1px solid var(--line-color); justify-items: end; text-align: right; }
.article__pager .arrow { transition: transform .3s var(--ease-out); }
.article__pager a:hover .arrow--left { transform: translateX(-0.3125rem); }
.article__pager a:hover .arrow--right { transform: translateX(0.3125rem); }

/* ============================================================
 * 平板：1024 以下
 * ========================================================== */
@media (max-width: 1024px) {
  .expo-grid { grid-template-columns: repeat(2, 1fr) !important; }

}

/* ============================================================
 * 手机：500 以下
 * ========================================================== */
@media (max-width: 500px) {
  /* 顶部标题 */
  .news__head { margin: 2.5rem 0.75rem; }

  /* 新闻列表 */
  .news-list {
    width: 100%;
    padding: 0 0.75rem 2rem;
    gap: 1rem;
  }

  .news-row {
    flex-direction: column;
    padding: 0 0.75rem;
    gap: 0;
  }
  .news-row__media {
    width: 100%;
    height: 180px;
    margin: 0.75rem 0;
  }
  .news-row__body {
    padding-bottom: 0.75rem;
  }
  .news-row__title {
    font-size: 1.125rem;
    -webkit-line-clamp: 2;
    margin-bottom: 0.5rem;
  }
  .news-row__summary {
    font-size: 0.875rem;
    line-height: 1.7;
    -webkit-line-clamp: 2;
  }

  /* 底部日期 + 更多：横向排布 */
  .news-row__side {
    flex-direction: row;
    width: 100%;
    border-left: 0;
    border-top: 1px solid var(--line-color);
    justify-content: space-between;
    padding: 0.75rem 0.25rem;
    gap: 0.5rem;
    border-radius: 0;
  }
  .news-row__side > div,
  .news-row__side span {
    height: auto;
    width: auto;
    flex-direction: row;
    align-items: baseline;
    gap: 0.375rem;
    padding: 0;
    border-top: 0;
  }
  .news-row__date-day {
    font-size: 1.25rem;
    line-height: 1.25rem;
  }
  .news-row__date-ym {
    font-size: 0.8125rem;
    margin-top: 0;
  }
  .news-row__more {
    flex-direction: row;
    font-size: 0.875rem;
    line-height: 1.5;
    gap: 0.25rem;
  }
  .news-row__more::before {
    font-size: 1.25rem;
  }

  /* 展会 */
  .expo-grid {
    grid-template-columns: 1fr;
    padding: 0 0.75rem 2rem;
    gap: 1rem;
  }
  .expo-item {
    height: auto;
    padding: 0.75rem;
  }
  .expo-item__media {
    height: 14rem;
  }
  .expo-item__media img {
    height: 14rem;
  }
  .expo-item__date {
    width: 3.25rem;
    height: 3.5rem;
    padding: 0.375rem;
  }
  .expo-item__date b { font-size: 1.25rem; }
  .expo-item__date span { font-size: 0.6875rem; }
  .expo-item__title {
    font-size: 1.125rem;
    padding: 0.75rem 0.5rem;
  }

  /* 新闻详情 */
  .article {
    margin: 0 0.75rem;
    padding: 2rem 0 1.5rem;
  }
  .article__head { padding-bottom: 1rem; }
  .article__title {
    font-size: 1.25rem;
    padding-right: 0;
    line-height: 1.5;
  }
  .article__date {
    font-size: 1.125rem;
    margin-top: 0.75rem;
  }
  .article__back {
    position: static;
    margin-top: 1rem;
    font-size: 0.875rem;
  }
  .article__back .circle {
    width: 2.25rem;
    height: 2.25rem;
  }
  .article__back .circle::after {
    width: 1rem;
    height: 0.75rem;
  }
  .article__body {
    line-height: 1.9;
    padding: 1.5rem 0;
    margin-bottom: 3rem;
  }
  .article__body p {
    margin-bottom: 1.5rem;
    text-indent: 2em;
  }
  .article__sign {
    font-size: 0.875rem;
    margin-top: 2rem;
  }
  .article__sign span { margin-left: 1rem; }
  .article__pager {
    grid-template-columns: 1fr;
    padding: 0 0.75rem;
  }
  .article__pager a {
    padding: 0.875rem ;
   font-size: 1.125rem;
  }
  .article__pager a + a {
    border-left: 0;
    border-top: 1px solid var(--line-color);
    text-align: left;
  }
}