/* ==========================================================================
   news.css —— 只作用于 news/ 新闻资讯栏目
   ========================================================================== */

/* ---------- 新闻列表 ---------- */
.news-list { display: grid; gap: 22px; max-width: 980px; margin: 0 auto; }
.news-item {
  display: grid; grid-template-columns: 320px 1fr; gap: 26px; background: #fff;
  border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden;
  transition: var(--transition);
}
.news-item:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); border-color: transparent; }
.news-item .ni-media { overflow: hidden; background: var(--primary-light); }
.news-item .ni-media img { width: 100%; height: 100%; min-height: 200px; object-fit: cover; transition: transform 0.5s ease; }
.news-item:hover .ni-media img { transform: scale(1.05); }
.news-item .ni-body { padding: 26px 28px 26px 0; display: flex; flex-direction: column; justify-content: center; }
.news-item .ni-date { font-size: 13px; color: var(--text-lighter); display: flex; align-items: center; gap: 8px; }
.news-item h3 { font-size: 20px; margin: 10px 0 10px; }
.news-item p { color: var(--text-light); font-size: 15px; }
.news-item .ni-more { margin-top: 14px; color: var(--primary); font-size: 14px; font-weight: 500; }

/* ---------- 新闻详情 ---------- */
.article { max-width: 820px; margin: 0 auto; }
.article .article-meta {
  display: flex; flex-wrap: wrap; gap: 18px; color: var(--text-lighter); font-size: 14px;
  padding-bottom: 18px; border-bottom: 1px solid var(--border); margin-bottom: 30px;
}
.article .article-body { font-size: 16px; color: #374151; line-height: 2; }
.article .article-body p + p { margin-top: 18px; }
.article .article-body h3 { font-size: 20px; margin: 30px 0 12px; color: var(--text); }
.article .article-body img { border-radius: var(--radius); margin: 20px 0; }
.article .article-body ul { margin: 14px 0 0 4px; }
.article .article-body li { position: relative; padding-left: 18px; color: var(--text-light); }
.article .article-body li + li { margin-top: 8px; }
.article .article-body li::before { content: ""; position: absolute; left: 0; top: 13px; width: 6px; height: 6px; border-radius: 50%; background: var(--primary); }

/* 生成的文章正文（.prose.article-body） */
.article-body { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 34px 36px; margin-top: 26px; }
.article-body h2 { font-size: 21px; font-weight: 700; margin: 30px 0 12px; padding-left: 13px; position: relative; color: var(--text); }
.article-body h2:first-child { margin-top: 0; }
.article-body h2::before { content: ""; position: absolute; left: 0; top: 5px; bottom: 5px; width: 4px; border-radius: 2px; background: var(--primary); }
.article-body h3 { font-size: 17px; margin: 22px 0 8px; color: var(--text); }
.article-body p { color: #374151; font-size: 15.5px; line-height: 1.95; }
.article-body p + p { margin-top: 14px; }
.article-body ul { margin: 12px 0 0 4px; }
.article-body li { position: relative; padding-left: 18px; color: var(--text-light); font-size: 15px; line-height: 1.9; }
.article-body li + li { margin-top: 8px; }
.article-body li::before { content: ""; position: absolute; left: 0; top: 12px; width: 6px; height: 6px; border-radius: 50%; background: var(--primary); }
.article-body b { color: var(--text); }

.photo-card { margin: 0; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; transition: var(--transition); }
.photo-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.photo-card img { width: 100%; height: 230px; object-fit: contain; padding: 12px; cursor: zoom-in; background: #fff; }
.photo-card figcaption { padding: 14px 18px; border-top: 1px solid var(--border); font-size: 14px; color: var(--text-light); }

.article-foot {
  margin-top: 40px; padding-top: 26px; border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}

@media (max-width: 900px) {
  .news-item { grid-template-columns: 1fr; }
  .news-item .ni-body { padding: 22px; }
  .news-item .ni-media img { min-height: 180px; }
}
