/* ===== Clash测评 · 博客列表与文章页专属样式 ===== */

.blog-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.blog-filter button {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-panel);
  border: none;
  border-radius: var(--radius-pill);
  padding: 9px 20px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.blog-filter button:hover {
  background: var(--bg-panel2);
  color: var(--text);
}

.blog-filter button.is-active {
  background: var(--accent);
  color: var(--text);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

@media (max-width: 720px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }
}

.blog-empty {
  grid-column: 1 / -1;
  color: var(--text-muted);
  font-size: 15px;
  padding: 32px 0;
  text-align: center;
}

.post-card {
  background: var(--bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 22px 22px 20px;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.post-card:hover {
  box-shadow: var(--shadow-lift);
  transform: translateY(-2px);
}

.post-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.post-tag {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-dark);
  background: var(--bg-panel2);
  border-radius: var(--radius-pill);
  padding: 4px 12px;
}

.post-date {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
}

.post-card h3 {
  font-size: 19px;
  font-weight: 800;
  line-height: 1.4;
  margin: 0 0 10px;
}

.post-card h3 a {
  color: var(--text);
  text-decoration: none;
}

.post-card h3 a:hover {
  color: var(--accent-dark);
}

.post-sum {
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--text-muted);
  margin: 0 0 16px;
  flex: 1;
}

.post-more {
  font-size: 14px;
  font-weight: 700;
  color: var(--accent-dark);
  text-decoration: none;
  align-self: flex-start;
}

.post-more:hover {
  text-decoration: underline;
}

/* ===== 面包屑(文章页) ===== */

.crumbs {
  margin-top: 1.4rem;
  padding-top: 0.2rem;
  margin-bottom: 8px;
  font-size: 13.5px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.crumbs a {
  color: var(--text-muted);
  text-decoration: none;
}

.crumbs a:hover {
  color: var(--accent-dark);
  text-decoration: underline;
}

.crumb-sep {
  color: var(--border);
}

.crumb-cur {
  color: var(--text);
  font-weight: 600;
}

/* ===== 文章 Hero ===== */

.post-hero {
  padding-top: 6px;
  padding-bottom: 8px;
}

.post-hero-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.post-hero-tag {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-dark);
  background: var(--bg-panel2);
  border-radius: var(--radius-pill);
  padding: 4px 12px;
}

.post-hero-date,
.post-hero-time {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text-muted);
}

.post-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  line-height: 1.35;
  margin: 0 0 14px;
  color: var(--text);
}

.post-hero-sum {
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-muted);
  max-width: 760px;
  margin: 0;
}

/* ===== 正文排版 ===== */

.prose {
  max-width: 760px;
  font-size: 16px;
  line-height: 1.85;
  color: var(--text);
}

.prose h2 {
  font-size: 24px;
  font-weight: 800;
  margin: 40px 0 16px;
  color: var(--text);
}

.prose h3 {
  font-size: 19px;
  font-weight: 700;
  margin: 28px 0 12px;
  color: var(--text);
}

.prose p {
  margin: 0 0 18px;
}

.prose ul,
.prose ol {
  margin: 0 0 18px;
  padding-left: 24px;
}

.prose li {
  margin-bottom: 8px;
}

.prose strong {
  color: var(--text);
  font-weight: 700;
}

.prose code {
  font-family: var(--font-mono);
  font-size: 13.5px;
  background: var(--bg-panel);
  border-radius: 6px;
  padding: 2px 6px;
}

.prose pre {
  background: var(--bg-panel);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  overflow-x: auto;
  margin: 0 0 20px;
}

.prose pre code {
  background: none;
  padding: 0;
  font-size: 13.5px;
  line-height: 1.7;
}

.prose blockquote {
  margin: 0 0 20px;
  padding: 4px 20px;
  border-left: 3px solid var(--accent);
  color: var(--text-muted);
}

.prose > .data-table {
  width: 100%;
}

/* ===== 文末下载引导卡 ===== */

.post-dl-card {
  background: var(--bg-panel2);
  border-radius: var(--radius-lg);
  padding: 32px clamp(20px, 4vw, 40px);
  margin: 48px 0 40px;
  text-align: center;
}

.post-dl-card h2 {
  font-size: 22px;
  font-weight: 800;
  margin: 0 0 10px;
  color: var(--text);
}

.post-dl-card p {
  font-size: 15px;
  color: var(--text-muted);
  margin: 0 0 22px;
}

.post-dl-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* ===== 延伸阅读 ===== */

.related-box {
  margin: 40px 0;
  max-width: 760px;
}

.related-box.is-hidden {
  display: none;
}

.related-title {
  font-size: 20px;
  font-weight: 800;
  margin: 0 0 18px;
  color: var(--text);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

@media (max-width: 720px) {
  .related-grid {
    grid-template-columns: 1fr;
  }
}

.related-card {
  background: var(--bg-panel);
  border-radius: var(--radius-md);
  padding: 16px 16px 14px;
}

.related-tag {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-dark);
  background: var(--bg-panel2);
  border-radius: var(--radius-pill);
  padding: 3px 10px;
  display: inline-block;
  margin-bottom: 10px;
}

.related-card h3 {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
  margin: 0 0 8px;
}

.related-card h3 a {
  color: var(--text);
  text-decoration: none;
}

.related-card h3 a:hover {
  color: var(--accent-dark);
}

.related-card p {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0;
}

/* ===== 上一篇/下一篇 ===== */

.post-nav {
  max-width: 760px;
  margin: 32px 0 48px;
}

.post-nav.is-hidden {
  display: none;
}

.post-nav-inner {
  display: flex;
  gap: 16px;
}

.post-nav-link {
  flex: 1;
  background: var(--bg-panel);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: background 0.15s ease;
}

.post-nav-link:hover {
  background: var(--bg-panel2);
}

.post-nav-next {
  text-align: right;
}

.post-nav-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-dark);
}

.post-nav-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.5;
}

.post-nav-spacer {
  flex: 1;
}

/* ===== 文章页常驻下载浮层 ===== */

.dl-fab {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 40;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  border-radius: var(--radius-pill);
  padding: 12px 20px;
  box-shadow: var(--shadow-lift);
}

.dl-fab:hover {
  background: var(--accent-dark);
}