/* ============ 新闻详情页 · 大图卡片风（中英文模板共用） ============ */
.news-post-page {
  background: #f5f6f8;
  padding: 64px 0 90px;
}

/* 文章卡片 */
.post-card {
  max-width: 880px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: 14px;
  border: 1px solid #eceef2;
  box-shadow: 0 4px 20px rgba(24, 32, 56, 0.05);
  overflow: hidden;
}

/* 返回列表 */
.post-back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 500;
  color: #8b93a0;
  margin-bottom: 28px;
  transition: color 0.2s ease, gap 0.2s ease;
}
.post-back:hover {
  color: #2460f2;
  gap: 10px;
}

/* 封面图（卡片顶部通栏） */
.post-cover {
  aspect-ratio: 16 / 8;
  background: #e8ebf0;
  overflow: hidden;
}
.post-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 标题区 */
.post-head {
  padding: 38px 56px 0;
}
.post-title {
  font-size: 30px;
  font-weight: 700;
  line-height: 1.45;
  color: #181c28;
  margin: 0 0 18px;
}
.post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 22px;
  padding-bottom: 26px;
  border-bottom: 1px solid #eef0f3;
  font-size: 13px;
  color: #9aa2af;
}
.post-meta span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.post-meta i {
  color: #2460f2;
  font-size: 14px;
}
.post-meta a {
  display: inline-block;
  padding: 4px 12px;
  background: #edf2ff;
  border-radius: 4px;
  color: #2460f2;
  font-weight: 600;
  font-size: 12px;
  transition: background-color 0.2s ease;
}
.post-meta a:hover {
  background: #2460f2;
  color: #ffffff;
}

/* ---- 正文 ---- */
.post-body {
  padding: 34px 56px 44px;
  font-size: 16px;
  line-height: 1.95;
  color: #3a404d;
}
.post-body p {
  margin: 0 0 22px;
}
.post-body img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 28px auto;
  border-radius: 8px;
}
.post-body h1,
.post-body h2,
.post-body h3,
.post-body h4,
.post-body h5 {
  color: #181c28;
  font-weight: 700;
  line-height: 1.45;
  margin: 34px 0 16px;
}
.post-body h2 { font-size: 23px; }
.post-body h3 { font-size: 19px; }
.post-body h4 { font-size: 17px; }
.post-body ul,
.post-body ol {
  margin: 0 0 22px;
  padding-left: 26px;
}
.post-body li {
  margin-bottom: 9px;
}
.post-body a {
  color: #2460f2;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.post-body a:hover {
  color: #1e40af;
}
.post-body blockquote {
  margin: 26px 0;
  padding: 8px 24px;
  border-left: 3px solid #2460f2;
  background: #f5f8ff;
  border-radius: 0 8px 8px 0;
  color: #586070;
  font-size: 15px;
}
.post-body blockquote p {
  margin: 14px 0;
}
.post-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 26px 0;
  font-size: 14px;
}
.post-body table th,
.post-body table td {
  border: 1px solid #e4e7ec;
  padding: 10px 14px;
  text-align: left;
}
.post-body table th {
  background: #f6f8fb;
  color: #181c28;
  font-weight: 600;
}

/* ---- 标签（浅底药丸，克制） ---- */
.post-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0 56px;
  padding: 26px 0;
  border-top: 1px solid #eef0f3;
}
.post-tags .tags-label {
  font-size: 13px;
  font-weight: 600;
  color: #8b93a0;
  margin-right: 4px;
}
.post-tags a {
  display: inline-block;
  padding: 5px 14px;
  background: #f2f4f7;
  border-radius: 20px;
  font-size: 12.5px;
  color: #5d6573;
  transition: color 0.2s ease, background-color 0.2s ease;
}
.post-tags a:hover {
  background: #edf2ff;
  color: #2460f2;
}

/* ---- 上一篇 / 下一篇（卡片化双栏） ---- */
.post-pn {
  max-width: 880px;
  margin: 28px auto 0;
}
.post-pn .next-prev {
  margin: 0;
}
.post-pn .next-prev .row {
  display: flex;
  flex-wrap: wrap;
  margin: 0;
  background: #ffffff;
  border: 1px solid #eceef2;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(24, 32, 56, 0.04);
}
.post-pn .next-prev-left,
.post-pn .next-prev-right {
  flex: 1 1 0;
  min-width: 0;
  padding: 20px 26px;
  font-size: 14px;
  color: #9aa2af;
}
.post-pn .next-prev-left {
  border-right: 1px solid #eef0f3;
}
.post-pn .next-prev-right {
  text-align: right;
}
.post-pn .next-prev-left p,
.post-pn .next-prev-right p {
  margin: 0;
}
.post-pn .next-prev-left a,
.post-pn .next-prev-right a {
  display: block;
  margin-top: 6px;
  color: #1c2230;
  font-weight: 600;
  font-size: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color 0.2s ease;
}
.post-pn .next-prev-left a:hover,
.post-pn .next-prev-right a:hover {
  color: #2460f2;
}

/* ---- 响应式 ---- */
@media (max-width: 991px) {
  .news-post-page { padding: 48px 0 70px; }
  .post-head { padding: 30px 36px 0; }
  .post-title { font-size: 26px; }
  .post-body { padding: 28px 36px 38px; font-size: 15px; }
  .post-tags { margin: 0 36px; }
}
@media (max-width: 767px) {
  .news-post-page { padding: 36px 0 60px; }
  .post-back { margin-bottom: 22px; }
  .post-cover { aspect-ratio: 16 / 10; }
  .post-head { padding: 24px 22px 0; }
  .post-title { font-size: 21px; margin-bottom: 14px; }
  .post-meta {
    gap: 14px;
    font-size: 12px;
    padding-bottom: 20px;
  }
  .post-body {
    padding: 24px 22px 32px;
    font-size: 15px;
    line-height: 1.85;
  }
  .post-body p { margin-bottom: 18px; }
  .post-body img { margin: 22px auto; }
  .post-body h2 { font-size: 19px; }
  .post-body h3 { font-size: 17px; }
  .post-tags {
    margin: 0 22px;
    padding: 22px 0;
    gap: 8px;
  }
  .post-pn { margin-top: 20px; }
  .post-pn .next-prev-left {
    border-right: none;
    border-bottom: 1px solid #eef0f3;
  }
  .post-pn .next-prev-left,
  .post-pn .next-prev-right {
    flex: 1 1 100%;
    padding: 16px 20px;
    text-align: left;
  }
  .post-pn .next-prev-left a,
  .post-pn .next-prev-right a {
    white-space: normal;
  }
}
