/* ==========================================================================
  新闻中心区块 — 样式
  与“公司介绍 / 产品中心”同一套设计语言：
   - 区块主色：鲜草绿 #2e9c27（Sodick 绿系一档）
   - 按钮渐变：鲜草绿 #2e9c27 → 青绿 #2e9c27
   - 分类页签（公司动态 / 展会信息）+ 图片卡片列表
   ========================================================================== */

.news {
  /* 设计变量：作用域限定在本区块内 */
  --ci-primary: #2e9c27;              /* 主色（鲜草绿） */
  --ci-ink: #161a17;                  /* 标题 */
  --ci-mute: #8b908b;                 /* 日期 / 辅助文字 */
  --ci-line: #e5e5df;                 /* 1px 分割线 */
  --ci-font: "Inter", "Noto Sans SC", "PingFang SC", "HarmonyOS Sans SC",
    "Source Han Sans SC", "Microsoft YaHei", sans-serif;

  box-sizing: border-box;
  font-family: var(--ci-font);
  line-height: 1.7;
  color: var(--ci-ink);
  padding-block: clamp(48px, 5vw, 80px);
}

.news *,
.news *::before,
.news *::after {
  box-sizing: border-box;
}

/* --------------------------------------------------------------------------
   1. 区块标题（与公司介绍 / 产品中心一致）
   -------------------------------------------------------------------------- */
.news__inner {
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 35px);
}

.news__head {
  max-width: 600px;
  margin-inline: auto;
  text-align: center;
  border-top: 1px solid var(--ci-line);
  padding-top: clamp(28px, 3.4vw, 46px);
}

.news__eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 14px;
  font-size: 12px;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--ci-primary);
}

.news__eyebrow-line {
  width: 60px;
  height: 1px;
  background: var(--ci-primary);
}

.news__title {
  margin-top: 0;
  font-size: clamp(30px, 3.4vw, 35px);
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: 0.02em;
  color: var(--ci-ink);
}

/* --------------------------------------------------------------------------
   2. 分类页签：公司动态 / 展会信息
   -------------------------------------------------------------------------- */
.news__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: clamp(36px, 5vw, 54px) 0 0;
  border-bottom: 1px solid var(--ci-line);
}

.news__tab {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  margin: 0;
  padding: 10px 26px 14px;
  border: 0;
  background: none;
  cursor: pointer;
  font-family: inherit;
}

.news__tab-cn {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--ci-mute);
  transition: color 0.3s ease;
}

.news__tab-en {
  font-size: 10px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ci-mute);
  opacity: 0.75;
  transition: color 0.3s ease;
}

.news__tab::after {
  content: "";
  position: absolute;
  left: 26px;
  right: 26px;
  bottom: -1px;
  height: 3px;
  background: var(--ci-primary);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.3s ease;
}

.news__tab:hover .news__tab-cn,
.news__tab:focus-visible .news__tab-cn,
.news__tab.is-active .news__tab-cn {
  color: var(--ci-primary);
}

.news__tab.is-active::after {
  transform: scaleX(1);
}

/* --------------------------------------------------------------------------
   3. 新闻卡片：与参考站点 news_Boxs 卡片一致（图片 + 分类 + 标题 + 日期）
   -------------------------------------------------------------------------- */
.news__panels {
  margin-top: clamp(28px, 4vw, 44px);
}

.news__panel {
  min-width: 0;
}

.news__panel[hidden] {
  display: none;
}

.news__listBox {
  width: 100%;
}

.news__listBox .new_items {
  width: 32%;
  box-sizing: border-box;
}

.news__listBox .new_items > a {
  display: block;
  border: 1px solid var(--ci-line);   /* 卡片浅灰细边框（包住图片 + 标题整体） */
  transition: all 0.5s ease;
}

.news__listBox .new_items:nth-of-type(-n+2) {
  margin-right: 2%;
}

.news__listBox .imgBox {
  width: 100%;
  max-height: 250px;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.news__listBox .imgBox img {
  display: block;
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.news__listBox .descBox {
  position: relative;
  z-index: 2;
  width: 100%;
  box-sizing: border-box;
  padding: 20px 24px 28px;
  background: #fff;
  transition: box-shadow 0.5s ease;
}

.news__listBox .descBox::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background: var(--ci-primary);
}

.news__listBox .new_tis {
  font-size: 12px;
  line-height: 26px;
  color: var(--ci-mute);
  margin-bottom: 8px;
}

.news__listBox .descBox h4 {
  margin: 0 0 20px;
  font-size: 16px;
  line-height: 24px;
  font-weight: 600;
  color: var(--ci-ink);
  height: 47px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  transition: color 0.3s ease;
}

.news__listBox .new_time {
  font-size: 12px;
  color: #666;
}

.news__listBox .new_items > a:hover .imgBox img {
  transform: scale(1.05);
}

.news__listBox .new_items > a:hover .descBox h4 {
  color: var(--ci-primary);
}

.news__listBox .new_items > a:hover {
  border-color: var(--ci-primary);    /* 悬停 / 选中：整卡边框变绿 */
  box-shadow: 0 14px 30px rgba(46, 156, 39, 0.16);
}

/* --------------------------------------------------------------------------
   3. 底部“查看全部”入口
   -------------------------------------------------------------------------- */
.news__more {
  display: flex;
  justify-content: flex-end;
  margin: 32px 0 0;
}

.news__more a {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  border: 0;
  background: linear-gradient(120deg, #2e9c27 0%, #2e9c27 100%);
  font-size: 12px;
  letter-spacing: 0.28em;
  color: #fff;
  box-shadow: 0 10px 24px rgba(46, 156, 39, 0.26);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

/* 流光扫过特效 */
.news__more a::before {
  content: "";
  position: absolute;
  top: 0;
  left: -90%;
  width: 55%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transform: skewX(-20deg);
  transition: left 0.65s ease;
}

.news__more svg {
  display: block;
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.2;
  stroke-linecap: square;
  transition: transform 0.3s ease;
}

.news__more a:hover,
.news__more a:focus-visible {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(46, 156, 39, 0.34);
}

.news__more a:hover::before,
.news__more a:focus-visible::before {
  left: 130%;
}

.news__more a:hover svg,
.news__more a:focus-visible svg {
  transform: translateX(4px);
}

/* --------------------------------------------------------------------------
   3b. 主页新闻轮播（左右箭头切换）
   -------------------------------------------------------------------------- */
.news__carousel {
  --nav-gap: clamp(44px, 5vw, 56px);
  position: relative;
  padding-left: var(--nav-gap);
  padding-right: var(--nav-gap);
  margin-top: clamp(28px, 4vw, 44px);
  min-width: 0;
  max-width: 100%;
}

.news__panel {
  min-width: 0;
}

.news__panel.is-active {
  display: block;
}

.news__panel[hidden] {
  display: none;
}

.news__carousel .news__listBox {
  overflow: hidden;
  min-width: 0;
}

.news-swiper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  min-width: 0;
}

.news-swiper .swiper-slide {
  box-sizing: border-box;
  height: auto;
  min-width: 0;
}

/* 卡片在轮播轨道内占满滑片，保持原有卡片视觉不变 */
.news-swiper .new_items {
  width: 100% !important;
  margin-right: 0 !important;
}

/* 主页轮播卡片：整体更紧凑（只作用于主页，不影响新闻列表页） */
.news__listBox .news-swiper .imgBox {
  max-height: 184px;
}

.news__listBox .news-swiper .imgBox img {
  height: 184px;
}

.news__listBox .news-swiper .descBox {
  padding: 18px 20px 22px;
}

.news__listBox .news-swiper .new_tis {
  line-height: 22px;
  margin-bottom: 6px;
}

.news__listBox .news-swiper .descBox h4 {
  margin-bottom: 14px;
  font-size: 15px;
  line-height: 22px;
  height: 44px;
}

.news__nav {
  position: absolute;
  top: 50%;
  z-index: 10;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;             /* 未选中：无背景 */
  color: var(--ci-primary);            /* 未选中：绿色箭头 */
  cursor: pointer;
  transform: translateY(-50%);
  transition: background-color 0.25s ease, color 0.25s ease,
    box-shadow 0.3s ease, opacity 0.3s ease;
}

.news__nav svg {
  width: 24px;
  height: 24px;
  display: block;
  fill: currentColor;
  stroke: none;
}

.news__nav svg path {
  fill: currentColor;
}

.news__nav:hover,
.news__nav:focus-visible {
  background: var(--ci-primary);       /* 选中：绿底 */
  color: #fff;                          /* 选中：白色箭头 */
  box-shadow: 0 10px 22px rgba(46, 156, 39, 0.32);
}

.news__nav:focus-visible {
  outline: 2px solid var(--ci-primary);
  outline-offset: 2px;
}

.news__nav.swiper-button-disabled,
.news__nav[disabled] {
  opacity: 0.35;
  cursor: not-allowed;
}

.news__nav-prev {
  left: calc((var(--nav-gap, 44px) - 44px) / 2);
}

.news__nav-next {
  right: calc((var(--nav-gap, 44px) - 44px) / 2);
}

/* --------------------------------------------------------------------------
  4. 滚动入场动画（复用 [data-reveal] 机制，逐条淡入）
   -------------------------------------------------------------------------- */
html.js .news [data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.9s ease-out, transform 0.9s ease-out;
  transition-delay: var(--ci-delay, 0ms);
}

html.js .news [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

.news__listBox .new_items:nth-child(2) { --ci-delay: 60ms; }
.news__listBox .new_items:nth-child(3) { --ci-delay: 120ms; }

/* --------------------------------------------------------------------------
   5. 移动端：分组上下堆叠，标题换行显示
   -------------------------------------------------------------------------- */
@media (max-width: 767.98px) {
  .news__tabs {
    gap: 0;
  }

  .news__tab {
    flex: 1 1 0;
    align-items: center;
    padding: 12px 10px 14px;
  }

  .news__tab::after {
    left: 10px;
    right: 10px;
  }

  .news__listBox .new_items,
  .news__listBox .new_items:nth-of-type(-n+2) {
    float: none;
    width: 100% !important;
    margin-right: 0 !important;
    margin-bottom: 28px;
  }

  .news__listBox .new_items:last-child {
    margin-bottom: 0;
  }

  .news__listBox .descBox {
    padding: 18px 20px 24px;
  }

  .news__nav {
    width: 36px;
    height: 36px;
  }

  .news__carousel {
    --nav-gap: 40px;
  }

  .news__nav svg {
    width: 18px;
    height: 18px;
  }

  .news__nav-prev {
    left: calc((var(--nav-gap, 40px) - 36px) / 2);
  }

  .news__nav-next {
    right: calc((var(--nav-gap, 40px) - 36px) / 2);
  }

  .news__more {
    justify-content: flex-start;
  }

}

/* --------------------------------------------------------------------------
   6. 无障碍：尊重系统“减弱动态效果”设置
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html.js .news [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ==========================================================================
   新闻列表页（newslist.html）与新闻详情页（news.html）
   延续 about-page 的公共骨架，卡片直角、主题绿 #2e9c27
   ========================================================================== */
.news-list-page,
.news-detail-page {
  --np-primary: #2e9c27;
  --np-primary-dark: #237d1e;
  --np-primary-light: #f3faf2;
  --np-ink: #161a17;
  --np-text: #3a413c;
  --np-muted: #788088;
  --np-line: #e3e8ec;
  --np-paper: #fff;
}

/* --------------------------------------------------------------------------
   1. 新闻列表
   -------------------------------------------------------------------------- */
.news-list {
  padding-block: clamp(44px, 6vw, 76px);
}

.news-list__head {
  max-width: 680px;
  margin-inline: auto;
  text-align: center;
}

.news-list__eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--np-primary);
}

.news-list__line {
  width: 48px;
  height: 2px;
  background: var(--np-primary);
}

.news-list__title {
  margin-top: 14px;
  font-size: clamp(26px, 3.4vw, 36px);
  font-weight: 700;
  line-height: 1.35;
  color: var(--np-ink);
}

.news-list__desc {
  margin-top: 14px;
  font-size: 15px;
  color: var(--np-muted);
}

.news-list__grid {
  margin-top: clamp(36px, 5vw, 60px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px 18px;
  list-style: none;
  padding: 0;
}

.news-list__item {
  min-width: 0;
}

.news-list__card {
  position: relative;
  display: flex;
  height: 100%;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--np-line);
  background: var(--np-paper);
  color: inherit;
  transition: transform 0.35s ease, border-color 0.35s ease,
    box-shadow 0.35s ease;
}

.news-list__card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  width: 100%;
  height: 3px;
  background: var(--np-primary);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.35s ease;
}

.news-list__card:hover,
.news-list__card:focus-visible {
  border-color: rgba(46, 156, 39, 0.55);
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(23, 61, 23, 0.14);
}

.news-list__card:hover::before,
.news-list__card:focus-visible::before {
  transform: scaleX(1);
}

.news-list__media {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  flex-shrink: 0;
  overflow: hidden;
  background: #f5f7f8;
}

.news-list__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease-out;
}

.news-list__card:hover .news-list__media img,
.news-list__card:focus-visible .news-list__media img {
  transform: scale(1.06);
}

.news-list__body {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
  padding: 22px 22px 24px;
}

.news-list__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.news-list__cat {
  display: inline-block;
  padding: 3px 10px;
  background: var(--np-primary-light);
  color: var(--np-primary-dark);
  font-size: 12px;
  font-weight: 600;
}

.news-list__date {
  color: var(--np-muted);
  font-size: 12px;
}

.news-list__title {
  margin-top: 14px;
  color: var(--np-ink);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.5;
  transition: color 0.25s ease;
}

.news-list__card:hover .news-list__title,
.news-list__card:focus-visible .news-list__title {
  color: var(--np-primary);
}

.news-list__desc {
  margin-top: 10px;
  color: var(--np-muted);
  font-size: 14px;
  line-height: 1.8;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.news-list__more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  align-self: flex-end;
  margin-top: auto;
  margin-left: auto;
  padding: 8px 16px;
  background: var(--np-primary);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
}

.news-list__more svg {
  width: 14px;
  height: 14px;
  transition: transform 0.3s ease;
}

.news-list__card:hover .news-list__more svg,
.news-list__card:focus-visible .news-list__more svg {
  transform: translateX(4px);
}

.news-list__empty {
  margin-top: clamp(36px, 5vw, 60px);
  padding: 64px 20px;
  border: 1px dashed #d9dfe4;
  color: var(--np-muted);
  font-size: 15px;
  text-align: center;
}

/* --------------------------------------------------------------------------
   2. 分页
   -------------------------------------------------------------------------- */
.news-page__pager {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 42px;
}

.news-page__pager .pagination-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 14px;
  border: 1px solid var(--np-line);
  background: var(--np-paper);
  color: #55606a;
  font-size: 14px;
  transition: color 0.25s ease, border-color 0.25s ease,
    background-color 0.25s ease;
}

.news-page__pager .pagination-btn:hover,
.news-page__pager .pagination-btn:focus-visible {
  border-color: var(--np-primary);
  color: var(--np-primary);
}

.news-page__pager .pagination-btn.active {
  border-color: var(--np-primary);
  background: var(--np-primary);
  color: #fff;
}

.news-page__pager .page-disabled {
  opacity: 0.45;
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   3. 新闻详情
   -------------------------------------------------------------------------- */
.news-detail {
  padding-block: clamp(40px, 5vw, 64px) clamp(56px, 7vw, 88px);
}

.news-detail__card {
  max-width: 920px;
  margin: 0 auto;
  padding: clamp(28px, 4vw, 48px);
  border: 1px solid var(--np-line);
  background: var(--np-paper);
}

.news-detail__title {
  margin: 0;
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 700;
  line-height: 1.45;
  color: var(--np-ink);
}

.news-detail__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 22px;
  margin-top: 20px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--np-line);
}

.news-detail__meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--np-muted);
  font-size: 13px;
}

.news-detail__meta-item svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
}

.news-detail__content {
  margin-top: 30px;
  color: var(--np-text);
  font-size: 16px;
  line-height: 2;
  overflow-wrap: break-word;
}

.news-detail__content > * + * {
  margin-top: 16px;
}

.news-detail__content h1,
.news-detail__content h2,
.news-detail__content h3,
.news-detail__content h4 {
  color: var(--np-ink);
  font-weight: 700;
  line-height: 1.45;
}

.news-detail__content h1 {
  font-size: 24px;
}

.news-detail__content h2 {
  font-size: 22px;
}

.news-detail__content h3 {
  margin-top: 28px;
  padding-left: 12px;
  border-left: 4px solid var(--np-primary);
  font-size: 20px;
}

.news-detail__content h4 {
  font-size: 17px;
}

.news-detail__content p {
  text-align: justify;
}

.news-detail__content strong {
  color: var(--np-primary-dark);
}

.news-detail__content ul,
.news-detail__content ol {
  padding-left: 22px;
}

.news-detail__content ul {
  list-style: disc;
}

.news-detail__content ol {
  list-style: decimal;
}

.news-detail__content li + li {
  margin-top: 8px;
}

.news-detail__content blockquote {
  margin: 26px 0;
  padding: 22px 26px;
  border-left: 4px solid var(--np-primary);
  background: var(--np-primary-light);
  color: var(--np-primary-dark);
  font-weight: 700;
}

.news-detail__content img {
  max-width: 100%;
  height: auto;
}

.news-detail__content a {
  color: var(--np-primary);
  text-decoration: underline;
}

.news-detail__tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--np-line);
  font-size: 13px;
  color: var(--np-muted);
}

.news-detail__tag {
  padding: 4px 12px;
  border: 1px solid var(--np-line);
  color: var(--np-text);
  transition: color 0.25s ease, border-color 0.25s ease;
}

.news-detail__tag:hover,
.news-detail__tag:focus-visible {
  border-color: var(--np-primary);
  color: var(--np-primary);
}

.news-detail__nav {
  display: flex;
  gap: 12px;
  max-width: 920px;
  margin: 26px auto 0;
}

.news-detail__nav-link {
  display: flex;
  min-width: 0;
  flex: 1 1 auto;
  max-width: 46%;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border: 1px solid var(--np-line);
  background: var(--np-paper);
  color: #4a5259;
  line-height: 1.3;
  transition: color 0.25s ease, border-color 0.25s ease,
    background-color 0.25s ease;
}

.news-detail__nav-link svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
}

.news-detail__nav-link.is-next {
  justify-content: flex-end;
  text-align: right;
  margin-left: auto;
}

.news-detail__nav-text {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 2px;
}

.news-detail__nav-label {
  color: var(--np-muted);
  font-size: 11px;
}

.news-detail__nav-title {
  overflow: hidden;
  color: var(--np-ink);
  font-size: 13px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.news-detail__nav-link:hover,
.news-detail__nav-link:focus-visible {
  border-color: var(--np-primary);
  background: var(--np-primary-light);
}

.news-detail__nav-link:hover .news-detail__nav-label,
.news-detail__nav-link:focus-visible .news-detail__nav-label,
.news-detail__nav-link:hover .news-detail__nav-title,
.news-detail__nav-link:focus-visible .news-detail__nav-title {
  color: var(--np-primary);
}

.news-detail__back {
  max-width: 920px;
  margin: 22px auto 0;
  text-align: center;
}

.news-detail__back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border: 1px solid var(--np-primary);
  color: var(--np-primary);
  font-size: 14px;
  transition: color 0.25s ease, background-color 0.25s ease;
}

.news-detail__back-btn:hover,
.news-detail__back-btn:focus-visible {
  background: var(--np-primary);
  color: #fff;
}

.news-detail__related {
  max-width: 920px;
  margin: 56px auto 0;
}

.news-detail__related-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 20px;
  color: var(--np-ink);
  font-size: 20px;
}

.news-detail__related-title::before {
  content: "";
  width: 4px;
  height: 18px;
  background: var(--np-primary);
}

.news-detail__related-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  list-style: none;
  padding: 0;
}

.news-detail__related-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 96px;
  padding: 20px 22px;
  border: 1px solid var(--np-line);
  background: var(--np-paper);
  color: inherit;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.news-detail__related-item:hover,
.news-detail__related-item:focus-visible {
  border-color: var(--np-primary);
  background: var(--np-primary-light);
}

.news-detail__related-date {
  color: var(--np-muted);
  font-size: 12px;
}

.news-detail__related-name {
  color: var(--np-ink);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
}

.news-detail__related-item:hover .news-detail__related-name {
  color: var(--np-primary);
}

/* --------------------------------------------------------------------------
   4. 入场动画
   -------------------------------------------------------------------------- */
html.js .news-list-page [data-reveal],
html.js .news-detail-page [data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.9s ease-out, transform 0.9s ease-out;
  transition-delay: var(--np-delay, 0ms);
}

html.js .news-list-page [data-reveal].is-visible,
html.js .news-detail-page [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

.news-list__item:nth-child(2) { --np-delay: 60ms; }
.news-list__item:nth-child(3) { --np-delay: 120ms; }
.news-list__item:nth-child(4) { --np-delay: 180ms; }
.news-list__item:nth-child(n + 5) { --np-delay: 240ms; }
.news-detail__related-list li:nth-child(2) { --np-delay: 60ms; }
.news-detail__related-list li:nth-child(3) { --np-delay: 120ms; }

/* --------------------------------------------------------------------------
   5. 响应式
   -------------------------------------------------------------------------- */
@media (max-width: 1080px) {
  .news-list__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767.98px) {
  .news-list__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  .news-list__body {
    padding: 18px 18px 20px;
  }

  .news-detail__card {
    padding: 24px 20px;
  }

  .news-detail__nav {
    flex-direction: column;
  }

  .news-detail__nav-link {
    max-width: 100%;
  }

  .news-detail__nav-link.is-next {
    justify-content: flex-start;
    text-align: left;
    margin-left: 0;
  }

  .news-detail__related-list {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html.js .news-list-page [data-reveal],
  html.js .news-detail-page [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
