/* 新闻资讯（列表 / 分类 / 详情）附加样式 —— 与站点主色保持一致 */
:root {
  --nw-brand: #19432f;
  --nw-deep: #0a3a22;
  --nw-mid: #1c5c3f;
  --nw-bright: #2e7d52;
  --nw-body: #50564f;
  --nw-muted: #657268;
  --nw-soft: #f6f8f5;
  --nw-mint: #edf3ee;
  --nw-line: #e5e5e5;
}

/* ---------- 分类 tab ---------- */
.nw-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 40px;
  border-top: 1px solid var(--nw-line);
  border-bottom: 1px solid var(--nw-line);
  padding: 20px 0;
}
.nw-tab {
  position: relative;
  font-size: 17px;
  color: #9a9e99;
  line-height: 1.4;
  padding-bottom: 4px;
  transition: color .2s ease;
  white-space: nowrap;
}
.nw-tab:hover { color: var(--nw-brand); }
.nw-tab.is-active { color: var(--nw-deep); font-weight: 700; }
.nw-tab.is-active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -21px;
  height: 3px;
  background: var(--nw-deep);
}

/* ---------- 列表 ---------- */
.nw-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 36px 30px;
}
@media (max-width: 1024px) { .nw-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; } }
@media (max-width: 640px)  { .nw-grid { grid-template-columns: 1fr; } }

.nw-card { display: flex; flex-direction: column; }
.nw-card__media {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--nw-mint);
  aspect-ratio: 16 / 10;
}
.nw-card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.nw-card:hover .nw-card__media img { transform: scale(1.04); }
.nw-card__badge {
  position: absolute; left: 0; top: 0;
  background: rgba(10, 58, 34, .88);
  color: #fff;
  font-size: 12px;
  letter-spacing: .04em;
  padding: 6px 12px;
}
.nw-card__body { padding-top: 18px; }
.nw-card__date {
  font-size: 13px;
  color: var(--nw-muted);
  letter-spacing: .04em;
}
.nw-card__title {
  margin-top: 10px;
  font-size: 19px;
  line-height: 1.55;
  font-weight: 700;
  color: var(--nw-deep);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color .2s ease;
}
.nw-card:hover .nw-card__title { color: var(--nw-bright); }
.nw-card__desc {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.85;
  color: var(--nw-body);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.nw-card__more {
  margin-top: 14px;
  font-size: 13px;
  color: var(--nw-mid);
  letter-spacing: .02em;
}

/* 置顶项通栏 */
.nw-feature {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 0;
  border: 1px solid var(--nw-line);
  background: var(--nw-soft);
  margin-bottom: 44px;
}
.nw-feature__media { overflow: hidden; background: var(--nw-mint); aspect-ratio: 16 / 9; }
.nw-feature__media img { width: 100%; height: 100%; object-fit: cover; }
.nw-feature__body { padding: 34px 38px; display: flex; flex-direction: column; justify-content: center; }
.nw-feature__label {
  font-size: 12px; letter-spacing: .18em; color: var(--nw-bright);
  text-transform: uppercase;
}
.nw-feature__title {
  margin-top: 14px;
  font-size: 26px; line-height: 1.45; font-weight: 700; color: var(--nw-deep);
}
.nw-feature__desc { margin-top: 14px; font-size: 15px; line-height: 1.9; color: var(--nw-body); }
@media (max-width: 900px) {
  .nw-feature { grid-template-columns: 1fr; }
  .nw-feature__body { padding: 24px 22px 28px; }
  .nw-feature__title { font-size: 21px; }
}

/* ---------- 空状态 ---------- */
.nw-empty {
  border: 1px solid var(--nw-line);
  background: var(--nw-soft);
  text-align: center;
  padding: 76px 24px;
}
.nw-empty h2 { font-size: 22px; font-weight: 700; color: var(--nw-deep); }
.nw-empty p { margin: 12px auto 0; max-width: 520px; font-size: 14px; line-height: 1.9; color: var(--nw-body); }

/* ---------- 分页 ---------- */
.nw-pager {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 56px;
  flex-wrap: wrap;
}
.nw-pager a, .nw-pager span {
  min-width: 42px;
  height: 42px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--nw-line);
  font-size: 14px;
  color: var(--nw-body);
  transition: all .2s ease;
}
.nw-pager a:hover { border-color: var(--nw-deep); color: var(--nw-deep); }
.nw-pager .is-current {
  background: var(--nw-deep);
  border-color: var(--nw-deep);
  color: #fff;
}
.nw-pager .is-disabled { color: #c7ccc7; }

/* ---------- 详情 ---------- */
.nw-article { max-width: 880px; margin: 0 auto; }
.nw-article__cat {
  display: inline-block;
  font-size: 12px;
  letter-spacing: .12em;
  color: var(--nw-bright);
  border: 1px solid var(--nw-bright);
  padding: 5px 12px;
}
.nw-article__title {
  margin-top: 18px;
  font-size: 34px;
  line-height: 1.4;
  font-weight: 700;
  color: var(--nw-deep);
}
.nw-article__meta {
  margin-top: 18px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--nw-line);
  font-size: 13px;
  color: var(--nw-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
}
.nw-article__cover {
  margin: 30px 0 0;
  overflow: hidden;
  background: var(--nw-mint);
}
.nw-article__cover img { width: 100%; display: block; }

/* 正文排版（覆盖编辑器输出的常见标签） */
.nw-body { margin-top: 34px; font-size: 16px; line-height: 2.05; color: #33383a; }
.nw-body > * + * { margin-top: 18px; }
.nw-body h2 { font-size: 23px; font-weight: 700; color: var(--nw-deep); margin-top: 40px; line-height: 1.5; }
.nw-body h3 { font-size: 19px; font-weight: 700; color: var(--nw-mid); margin-top: 30px; line-height: 1.6; }
.nw-body h4 { font-size: 17px; font-weight: 700; color: var(--nw-mid); margin-top: 24px; }
.nw-body p { margin: 0; }
.nw-body strong, .nw-body b { font-weight: 700; color: var(--nw-deep); }
.nw-body a { color: var(--nw-bright); text-decoration: underline; text-underline-offset: 3px; }
.nw-body ul, .nw-body ol { padding-left: 1.4em; }
.nw-body ul { list-style: disc; }
.nw-body ol { list-style: decimal; }
.nw-body li + li { margin-top: 8px; }
.nw-body img { max-width: 100%; height: auto; display: block; margin: 26px auto; }
.nw-body blockquote {
  border-left: 3px solid var(--nw-bright);
  background: var(--nw-soft);
  padding: 16px 20px;
  color: var(--nw-body);
  font-size: 15px;
}
.nw-body table { width: 100%; border-collapse: collapse; font-size: 15px; }
.nw-body th, .nw-body td { border: 1px solid var(--nw-line); padding: 10px 12px; text-align: left; }
.nw-body th { background: var(--nw-soft); font-weight: 700; }
.nw-body hr { border: 0; border-top: 1px solid var(--nw-line); margin: 32px 0; }

/* 上一篇 / 下一篇 */
.nw-adjacent {
  max-width: 880px;
  margin: 56px auto 0;
  border-top: 1px solid var(--nw-line);
  padding-top: 26px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.nw-adjacent a { display: block; font-size: 14px; line-height: 1.8; color: var(--nw-body); }
.nw-adjacent a:hover { color: var(--nw-bright); }
.nw-adjacent .k { display: block; font-size: 12px; letter-spacing: .12em; color: var(--nw-muted); margin-bottom: 6px; }
.nw-adjacent .next { text-align: right; }
@media (max-width: 640px) {
  .nw-adjacent { grid-template-columns: 1fr; }
  .nw-adjacent .next { text-align: left; }
  .nw-article__title { font-size: 25px; }
}

.nw-back {
  max-width: 880px;
  margin: 40px auto 0;
}
.nw-back a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--nw-mid);
  border: 1px solid var(--nw-line);
  padding: 11px 20px;
  transition: all .2s ease;
}
.nw-back a:hover { border-color: var(--nw-deep); background: var(--nw-deep); color: #fff; }
