/* 聊3D打印 · Blog */
.blog-page {
  padding: 100px 0 80px;
  min-height: 60vh;
}

.blog-hub-head {
  margin-bottom: 48px;
}

.blog-hub-head h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: 12px;
}

.blog-hub-head p {
  color: var(--text-muted);
  max-width: 640px;
  line-height: 1.7;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
}

.blog-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  text-decoration: none;
  color: inherit;
  height: 100%;
}

.blog-card:hover {
  transform: translateY(-4px);
  border-color: rgba(99, 102, 241, 0.45);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
}

.blog-card-img {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #ececee;
}

.blog-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.blog-card:hover .blog-card-img img {
  transform: scale(1.04);
}

.blog-card-body {
  padding: 20px 22px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.blog-card-date {
  font-size: 12px;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 8px;
}

.blog-card-title {
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.45;
  margin-bottom: 10px;
}

.blog-card-excerpt {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
  flex: 1;
  margin-bottom: 16px;
}

.blog-card-more {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
}

/* Article detail */
.blog-article {
  max-width: 780px;
  margin: 0 auto;
}

.blog-article-hero {
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 32px;
  aspect-ratio: 16 / 9;
  background: #ececee;
}

.blog-article-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  align-items: center;
  margin-bottom: 16px;
  font-size: 13px;
  color: var(--text-muted);
}

.blog-article-meta time {
  color: var(--accent);
  font-weight: 600;
}

.blog-article h1 {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  line-height: 1.35;
  margin-bottom: 28px;
}

.blog-article-body p {
  font-size: 16px;
  line-height: 1.85;
  color: var(--text);
  margin-bottom: 1.25em;
}

.blog-article-body p:last-child {
  margin-bottom: 0;
}

.blog-article-cta {
  margin-top: 40px;
  padding: 24px;
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.25);
  border-radius: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

.blog-article-cta p {
  margin: 0;
  font-size: 14px;
  color: var(--text-muted);
  flex: 1;
  min-width: 200px;
}

/* Homepage teaser */
.blog-teaser {
  padding: 80px 0;
  background: linear-gradient(180deg, transparent, rgba(99, 102, 241, 0.04));
}

.blog-teaser-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.blog-teaser-foot {
  margin-top: 36px;
  text-align: center;
}

@media (max-width: 768px) {
  .blog-page { padding-top: calc(var(--header-h) + 16px); }
  .blog-grid { grid-template-columns: 1fr; gap: 20px; }
  .blog-hero { padding: 32px 0 24px; }
  .blog-hero h1 { font-size: clamp(1.5rem, 6vw, 2rem); }
  .blog-card-body { padding: 18px; }
  .blog-article { padding: 20px 16px; }
  .blog-article h1 { font-size: clamp(1.35rem, 5.5vw, 1.75rem); }
  .blog-article-body { font-size: 15px; }
}
