/* 博客：首页「最新文章」+ /blog/ 归档 + 单篇
   复用 tokens.css 的设计变量（--ht-*），与首页玻璃卡同一套视觉语言。 */

/* 文章卡（首页 latest 与归档页共用） */
.ht-latest-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.ht-post-card {
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, .6);
  border: 1px solid rgba(255, 255, 255, .9);
  border-radius: var(--ht-r-lg);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 14px 38px rgba(70, 50, 35, .13), inset 0 1px 0 rgba(255, 255, 255, .98);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.ht-post-card:hover {
  transform: translateY(-4px);
  border-color: rgba(184, 68, 46, .5);
  box-shadow: 0 22px 54px rgba(70, 50, 35, .19), inset 0 1px 0 rgba(255, 255, 255, 1);
}
.ht-post-thumb {
  height: 150px;
  background-size: cover;
  background-position: center;
  background-color: var(--ht-brand-tint);
}
.ht-post-thumb--ph {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--ht-brand-tint), #fff);
}
.ht-post-ph {
  font-family: var(--ht-font-cn, serif);
  font-size: 20px;
  color: var(--ht-brand);
}
.ht-post-body {
  padding: 16px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.ht-post-meta {
  font-size: 13px;
  color: var(--ht-muted);
}
.ht-post-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--ht-ink);
  margin: 0;
  line-height: 1.3;
}
.ht-post-excerpt {
  font-size: 14px;
  color: var(--ht-ink-2);
  margin: 0;
  line-height: 1.5;
}

/* 归档页容器 */
.ht-blog-wrap {
  padding: 56px 0 72px;
}
.ht-blog-grid {
  margin-top: 28px;
}

/* 分页 */
.ht-blog-wrap .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 10px;
  border-radius: var(--ht-r-md);
  background: rgba(255, 255, 255, .6);
  border: 1px solid rgba(255, 255, 255, .9);
  color: var(--ht-ink);
  text-decoration: none;
  font-size: 14px;
}
.ht-blog-wrap .page-numbers.current {
  background: var(--ht-brand);
  color: #fff;
  border-color: var(--ht-brand);
}
.ht-blog-wrap .page-numbers:hover:not(.current) {
  border-color: rgba(184, 68, 46, .5);
}
.ht-blog-wrap .page-numbers.dots {
  background: transparent;
  border-color: transparent;
}

/* 单篇 */
.ht-post-single {
  padding: 48px 0 72px;
}
.ht-post-single-inner {
  max-width: 760px;
}
.ht-post-back {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--ht-brand);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}
.ht-post-back:hover {
  text-decoration: underline;
}
.ht-post-single .ht-post-meta {
  margin-bottom: 10px;
}
.ht-post-single .ht-h1 {
  margin: 0 0 24px;
}
.ht-post-content {
  font-size: 17px;
  line-height: 1.75;
  color: var(--ht-ink-2);
}
.ht-post-content p {
  margin: 0 0 1.2em;
}
.ht-post-content h2,
.ht-post-content h3 {
  color: var(--ht-ink);
  margin: 1.6em 0 .6em;
}
.ht-post-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--ht-r-md);
}
.ht-post-content a {
  color: var(--ht-brand);
}
.ht-post-content blockquote {
  margin: 1.4em 0;
  padding: 8px 18px;
  border-left: 3px solid var(--ht-brand);
  background: rgba(184, 68, 46, .06);
  color: var(--ht-ink);
}
.ht-post-content pre {
  background: #2b2b2b;
  color: #f5f5f5;
  padding: 14px 16px;
  border-radius: var(--ht-r-md);
  overflow: auto;
}

.ht-empty {
  color: var(--ht-muted);
}

@media (max-width: 900px) {
  .ht-latest-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 560px) {
  .ht-latest-grid {
    grid-template-columns: 1fr;
  }
}
