/* =========================================================
   新闻中心 · 页面样式（复用 style.css 的设计令牌）
   1. 顶部大图  2. 双行标题  3. 新闻列表  4. 响应式

   尺寸依据原站参考图逐像素实测（排版宽 1192，视口 1201）：
     页眉 73 · 顶部大图 73..431（359）
     中文标题 ink 466..498 · 英文 NEWS ink 519..545（32px/700）
     列表顶 585 · 缩略图 316×140 · 列表容器 1046 · 图文间距 11
     条目标题 14px/700 · 摘要 11px/1.27 · 条目间距 142
   ========================================================= */

/* ---------- 1. 顶部大图 ---------- */
/* 原图 1201×361 与版位几乎同比例，故 img 必须铺满版位（inset:0），
   否则 cover 会把画面放大约 1.4 倍，取景与原站不符 */
.news-banner {
  position: relative;
  height: clamp(260px, 30vw, 400px);
  overflow: hidden;
}
.news-banner__media {
  position: absolute; inset: 0;
  overflow: hidden;
}
.news-banner__img {
  position: absolute;
  inset: 0;
  background: #d7cec2 url("../img/news-banner.jpg") center 42% / cover no-repeat;
  animation: newsDrift 26s ease-in-out infinite alternate;
}
@keyframes newsDrift {
  from { transform: scale(1.01); }
  to   { transform: scale(1.03); }
}

/* ---------- 2. 双行标题（中文 / 英文） ---------- */
/* 距大图下沿 22px（标题墨迹落在 466，与原站一致） */
.news-head {
  padding: 22px 0 0;
  text-align: center;
}
.news-head__title {
  margin: 0;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: .02em;
  line-height: 1.3;
  color: #000;
}
/* 中文标题墨迹底 498 → 英文墨迹顶 519，间距 21px */
.news-head__en {
  margin: 14px 0 0;
  font-family: var(--font-en);
  font-size: 32px;
  font-weight: 700;
  letter-spacing: .02em;
  line-height: 1.1;
  color: var(--teal);
}

/* ---------- 3. 新闻列表 ---------- */
/* 列表顶落在 585（缩略图上沿） */
.news-body { padding: 36px 0 78px; }

/* 列表容器宽度对齐原站：1046px（缩略图 316 + 间距 11 + 文字 719） */
.news-list {
  max-width: 1046px;
  margin: 0 auto;
}
/* 条目步距 142px = 缩略图 140 + 间隔 2 */
.news-item { margin-bottom: 2px; }
.news-item__link {
  display: grid;
  grid-template-columns: 316px minmax(0, 1fr);
  gap: 11px;
  align-items: start;
}

/* 缩略图 */
.news-item__media {
  display: block;
  width: 316px;
  height: 140px;
  border: 1px solid #ececec;
  overflow: hidden;
  background: var(--mist);
}
.news-item__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .8s var(--ease);
}
.news-item__link:hover .news-item__media img { transform: scale(1.06); }

/* 文字 */
.news-item__title {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  color: #333;
  transition: color .3s var(--ease);
}
.news-item__link:hover .news-item__title { color: var(--teal); }
.news-item__desc {
  margin: 26px 0 0;
  font-size: 11px;
  line-height: 1.27;
  color: #8a8f93;
  text-align: justify;
}

/* ---------- 4. 响应式 ---------- */
@media (max-width: 1080px) {
  .news-list { max-width: 100%; }
  .news-item__link { grid-template-columns: 280px minmax(0, 1fr); }
  .news-item__media { width: 280px; height: 124px; }
  .news-item__desc { margin-top: 20px; }
}

@media (max-width: 760px) {
  .news-banner { height: 240px; }
  .news-head { padding-top: 24px; }
  .news-head__title { font-size: 26px; }
  .news-head__en { font-size: 30px; }
  .news-body { padding: 26px 0 56px; }
  .news-item { margin-bottom: 22px; }
  .news-item__link { grid-template-columns: 1fr; gap: 14px; }
  .news-item__media { width: 100%; height: auto; aspect-ratio: 316 / 140; }
  .news-item__title { font-size: 16px; line-height: 1.5; }
  .news-item__desc { margin-top: 12px; font-size: 13px; line-height: 1.8; }
}

/* 尊重系统减弱动效设置 */
@media (prefers-reduced-motion: reduce) {
  .news-banner__media { transform: none !important; }
  .news-banner__img { animation: none; }
}
