/* article.css — 文章页面专属样式 */
.article-main { padding: 2rem 0 4rem; }

.article-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2.5rem;
  align-items: start;
}

.article-header { margin-bottom: 1.5rem; }

.article-meta-top {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
  font-size: .85rem;
  color: #666;
}

.article-header h1 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  line-height: 1.3;
  color: #1a1a2e;
  margin: .75rem 0;
}

.article-lead {
  font-size: 1.05rem;
  color: #555;
  line-height: 1.7;
  border-left: 4px solid #e30613;
  padding-left: 1rem;
  margin: 1rem 0 0;
}

.article-hero-img { margin: 1.5rem 0; }

.article-content {
  font-size: 1rem;
  line-height: 1.85;
  color: #333;
}

.article-content p { margin-bottom: 1.4rem; }

.article-content h2 {
  font-size: 1.25rem;
  color: #1a1a2e;
  margin: 2rem 0 .75rem;
  padding-bottom: .4rem;
  border-bottom: 2px solid #e30613;
}

.article-footer { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid #eee; }

.article-tags { display: flex; flex-wrap: wrap; gap: .3rem; align-items: center; }

/* Sidebar */
.article-sidebar { position: sticky; top: 80px; }

.sidebar-widget {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 1.2rem 1.4rem;
}

.widget-title {
  font-size: 1rem;
  font-weight: 700;
  color: #1a1a2e;
  margin: 0 0 .75rem;
  padding-bottom: .5rem;
  border-bottom: 2px solid #e30613;
}

.widget-links { list-style: none; padding: 0; margin: 0; }

.widget-links li {
  padding: .4rem 0;
  border-bottom: 1px solid #eee;
  font-size: .9rem;
}

.widget-links li:last-child { border-bottom: none; }

.widget-links a {
  color: #333;
  text-decoration: none;
  transition: color .2s;
}

.widget-links a:hover { color: #e30613; }

@media (max-width: 768px) {
  .article-layout { grid-template-columns: 1fr; }
  .article-sidebar { position: static; margin-top: 2rem; }
}
