/* ==========================================================================
   新闻中心 — 列表 / 详情 / 首页区块
   ========================================================================== */

.pf-page-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}

.pf-page-btn--primary {
  background: var(--pf-page-accent, #1a3a5c);
  color: #fff;
  border: 1px solid var(--pf-page-accent, #1a3a5c);
}

.pf-page-btn--primary:hover {
  background: #0f2438;
  color: #fff;
  transform: translateY(-1px);
}

body.pf-news-page-active {
  --pf-page-accent: var(--wp--preset--color--accent, #1a3a5c);
  --pf-page-gold: var(--wp--preset--color--secaccent, #c9a000);
}

/* ---------- 首页新闻区块 ---------- */
.pf-home-news-section {
  padding: 48px 0 56px;
  background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
}

.pf-home-news-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

.pf-home-news-head {
  text-align: center;
  margin-bottom: 32px;
}

.pf-home-news-label {
  display: inline-block;
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--pf-page-gold, #c9a000);
  text-transform: uppercase;
}

.pf-home-news-title {
  margin: 0 0 10px;
  font-size: clamp(22px, 4vw, 30px);
  font-weight: 700;
  color: var(--pf-page-accent, #1a3a5c);
}

.pf-home-news-desc {
  margin: 0 auto;
  max-width: 560px;
  font-size: 15px;
  line-height: 1.7;
  color: #6b7280;
}

.pf-home-news-grid,
.pf-news-archive-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.pf-news-archive-grid--compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pf-news-card {
  margin: 0;
}

.pf-news-card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 4px 20px rgba(15, 36, 56, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.pf-news-card-link:hover {
  transform: translateY(-4px);
  border-color: rgba(201, 160, 0, 0.45);
  box-shadow: 0 12px 32px rgba(15, 36, 56, 0.12);
}

.pf-news-card-image {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #e8eef4;
}

.pf-news-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.pf-news-card-link:hover .pf-news-card-image img {
  transform: scale(1.04);
}

.pf-news-card-date {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  background: rgba(15, 36, 56, 0.82);
  border-radius: 4px;
}

.pf-news-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 18px 20px 20px;
  gap: 8px;
}

.pf-news-card-title {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--pf-page-accent, #1a3a5c);
}

.pf-news-card-excerpt {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
  color: #6b7280;
  flex: 1;
}

.pf-news-card-more {
  font-size: 13px;
  font-weight: 600;
  color: var(--pf-page-gold, #c9a000);
}

.pf-home-news-actions {
  margin-top: 36px;
  text-align: center;
}

.pf-home-news-empty {
  text-align: center;
  padding: 40px 20px;
  color: #6b7280;
  background: #fff;
  border-radius: 12px;
  border: 1px dashed #dde3ea;
}

/* ---------- 列表页 ---------- */
.pf-news-archive {
  padding-bottom: 64px;
}

.pf-news-pagination {
  margin-top: 40px;
  text-align: center;
}

.pf-news-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  margin: 0 4px;
  padding: 0 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  color: var(--pf-page-accent, #1a3a5c);
  background: #fff;
  border: 1px solid #dde3ea;
}

.pf-news-pagination .page-numbers.current {
  background: var(--pf-page-accent, #1a3a5c);
  border-color: var(--pf-page-accent, #1a3a5c);
  color: #fff;
}

.pf-news-empty {
  text-align: center;
  padding: 64px 24px;
  background: #fff;
  border-radius: 12px;
  border: 1px solid #dde3ea;
}

.pf-news-empty i {
  font-size: 48px;
  color: var(--pf-page-gold, #c9a000);
  margin-bottom: 16px;
}

.pf-news-empty h2 {
  margin: 0 0 8px;
  color: var(--pf-page-accent, #1a3a5c);
}

/* ---------- 详情页 ---------- */
.pf-news-breadcrumb {
  font-size: 13px;
  margin: 24px 0 20px;
  color: #6b7280;
}

.pf-news-breadcrumb a {
  color: var(--pf-page-accent, #1a3a5c);
  text-decoration: none;
}

.pf-news-breadcrumb a:hover {
  color: var(--pf-page-gold, #c9a000);
}

.pf-news-breadcrumb span {
  margin: 0 6px;
  opacity: 0.5;
}

.pf-news-article {
  background: #fff;
  border-radius: 12px;
  padding: 32px 36px 40px;
  border: 1px solid #dde3ea;
  box-shadow: 0 8px 32px rgba(15, 36, 56, 0.08);
}

.pf-news-article-featured {
  margin: 0 0 24px;
  border-radius: 10px;
  overflow: hidden;
}

.pf-news-article-featured img {
  display: block;
  width: 100%;
  height: auto;
}

.pf-news-article-meta {
  margin-bottom: 20px;
  font-size: 14px;
  color: #6b7280;
}

.pf-news-article-meta i {
  margin-right: 6px;
  color: var(--pf-page-gold, #c9a000);
}

.pf-news-article-content {
  font-size: 16px;
  line-height: 1.9;
  color: #333;
}

.pf-news-article-content p {
  margin: 0 0 1.2em;
}

.pf-news-article-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.pf-news-article-product-figure {
  margin: 0 0 28px;
  text-align: center;
  background: #f8f9fa;
  padding: 16px;
  border-radius: 10px;
}

.pf-news-article-product-figure img,
.pf-news-article-content .pf-news-product-photo {
  max-height: 420px;
  width: auto;
  margin: 0 auto;
  object-fit: contain;
}

.pf-news-article-footer {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid #eef2f6;
}

.pf-news-related {
  margin-top: 28px;
}

@media (max-width: 991px) {
  .pf-home-news-grid,
  .pf-news-archive-grid,
  .pf-news-archive-grid--compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pf-news-article {
    padding: 24px 20px 32px;
  }
}

@media (max-width: 600px) {
  .pf-home-news-grid,
  .pf-news-archive-grid,
  .pf-news-archive-grid--compact {
    grid-template-columns: 1fr;
  }
}
