﻿/* 博客样式(配合 main.css 使用) */

/* 列表页 hero */
.blog-hero {
  padding: 62px 0 42px;
  background: linear-gradient(115deg, #fff 0%, #faf9f6 55%, #f3f1ec 100%);
  border-bottom: 1px solid var(--line);
}
.blog-hero h1 { font-size: 42px; margin: 10px 0 12px; line-height: 1.15; }
.blog-hero h1 em { font-style: normal; color: var(--gold-deep); }
.blog-hero p { color: var(--muted); max-width: 640px; margin: 0; font-size: 15.5px; }

/* 列表网格 */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  padding: 44px 0 30px;
}
@media (max-width: 1000px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px) { .blog-grid { grid-template-columns: 1fr; } }

.post-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow .25s ease, transform .25s ease;
}
.post-card:hover { box-shadow: 0 18px 44px rgba(23, 24, 26, .1); transform: translateY(-3px); }
.pc-cover-link { display: block; }
.pc-cover { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.pc-cover-empty { background: linear-gradient(135deg, #17181a 0%, #2c2e33 100%); position: relative; }
.pc-cover-empty::after {
  content: "NIFJ";
  position: absolute; inset: 0; display: grid; place-items: center;
  color: rgba(228, 199, 138, .5); font: 800 30px/1 Archivo, sans-serif; letter-spacing: 4px;
}
.pc-body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.pc-date { color: var(--muted); font-size: 12px; letter-spacing: 1.2px; text-transform: uppercase; font-weight: 600; }
.pc-body h2 { font-size: 18.5px; margin: 0; line-height: 1.35; }
.pc-body h2 a { color: #17181a; text-decoration: none; }
.pc-body h2 a:hover { color: var(--gold-deep); }
.pc-body p { color: var(--muted); font-size: 14px; margin: 0; }
.pc-more { margin-top: auto; color: var(--gold-deep); font-weight: 700; font-size: 13.5px; text-decoration: none; }
.pc-more:hover { text-decoration: underline; }

/* 分页 */
.blog-pager { display: flex; gap: 8px; justify-content: center; padding: 10px 0 64px; }
.blog-pager a, .blog-pager span {
  padding: 7px 14px; border-radius: 8px; border: 1px solid var(--line);
  background: #fff; color: var(--text-soft); text-decoration: none; font-size: 14px;
}
.blog-pager a:hover { border-color: var(--gold-deep); color: var(--gold-deep); }
.blog-pager .cur { background: #17181a; border-color: #17181a; color: #fff; }

.blog-empty { padding: 70px 0 80px; text-align: center; color: var(--muted); font-size: 15.5px; }

/* 详情页 */
.article-wrap { max-width: 780px; margin: 0 auto; padding: 46px 24px 70px; }
.breadcrumb { font-size: 13px; color: var(--muted); margin-bottom: 20px; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--gold-deep); }
.article-wrap h1 { font-size: 38px; line-height: 1.2; margin: 0 0 12px; }
.article-meta { color: var(--muted); font-size: 13.5px; margin: 0 0 26px; }
.article-cover { width: 100%; border-radius: 14px; margin-bottom: 28px; }

.article-body { font-size: 16.5px; line-height: 1.85; color: #33363c; }
.article-body h2 { font: 800 26px/1.3 Archivo, sans-serif; color: #17181a; margin: 36px 0 14px; }
.article-body h3 { font: 700 20px/1.35 Archivo, sans-serif; color: #17181a; margin: 28px 0 10px; }
.article-body p { margin: 0 0 17px; }
.article-body ul { margin: 0 0 17px; padding-left: 22px; }
.article-body li { margin-bottom: 8px; }
/* 正文表格：宽表在小屏横向滚动，避免撑破版面（html_clean 会剥离 class，只能按标签选） */
.article-body table { border-collapse: collapse; margin: 0 0 24px; font-size: 14.5px; display: block; width: max-content; max-width: 100%; overflow-x: auto; }
.article-body thead th { background: #f6f4ef; font: 700 12.5px/1.4 Archivo, sans-serif; letter-spacing: .6px; text-transform: uppercase; color: #6b6b6b; text-align: left; padding: 11px 13px; border-bottom: 1px solid #e5e1d8; white-space: nowrap; }
.article-body td { padding: 11px 13px; border-bottom: 1px solid #ece8df; vertical-align: top; line-height: 1.65; }
.article-body tbody tr:last-child td { border-bottom: 0; }
.article-body tbody tr:hover td { background: #fbfaf7; }
.article-body img { display: block; width: 100%; height: auto; border-radius: 14px; margin: 6px 0 24px; }
.article-body a { color: var(--gold-deep); text-decoration: underline; text-underline-offset: 2px; }
.article-body a:hover { color: #17181a; }

.article-cta {
  margin-top: 44px;
  background: #17181a;
  border-radius: 14px;
  padding: 30px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.article-cta h3 { color: #fff; font-size: 20px; margin: 0 0 6px; }
.article-cta p { color: rgba(255, 255, 255, .72); font-size: 14px; margin: 0; max-width: 460px; }

@media (max-width: 720px) {
  .blog-hero h1 { font-size: 31px; }
  .article-wrap h1 { font-size: 28px; }
}