/* ============================================
   鑫绿源环保 - 工程笔记（博客）样式补充
   ============================================ */

.blog-hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  padding: 180px 0 80px;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.blog-hero::before {
  content: "";
  position: absolute;
  right: -100px; top: -80px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(201,169,110,0.15) 0%, transparent 70%);
  border-radius: 50%;
}
.blog-hero .section-tag { color: var(--accent-light); }
.blog-hero h1 { color: #fff; font-size: clamp(1.8rem,4vw,2.6rem); margin-bottom: 16px; position: relative; }
.blog-hero p { color: rgba(255,255,255,0.78); font-size: 1.08rem; max-width: 640px; line-height: 1.8; position: relative; }
.blog-hero .breadcrumb { margin-top: 24px; font-size: 0.9rem; color: rgba(255,255,255,0.6); position: relative; }
.blog-hero .breadcrumb a { color: rgba(255,255,255,0.85); }
.blog-hero .breadcrumb a:hover { color: var(--accent); }
.blog-hero .breadcrumb .sep { margin: 0 8px; }

.blog-filters {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin: -30px auto 48px; position: relative; z-index: 2;
  background: #fff; padding: 20px 24px; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.filter-btn {
  padding: 8px 20px; border-radius: 40px; font-size: 0.9rem; font-weight: 500;
  color: var(--text-body); background: var(--bg-gray); transition: all var(--transition);
}
.filter-btn:hover { background: var(--primary-50); color: var(--primary); }
.filter-btn.active { background: var(--primary); color: #fff; box-shadow: 0 4px 12px rgba(30,58,95,0.25); }

.blog-grid {
  display: grid; grid-template-columns: repeat(auto-fill,minmax(340px,1fr));
  gap: 28px; margin-bottom: 56px;
}
.article-card {
  background: #fff; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-sm); transition: all var(--transition);
  display: flex; flex-direction: column;
}
.article-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.article-card-cover { position: relative; aspect-ratio: 16/10; overflow: hidden; }
.article-card-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.article-card:hover .article-card-cover img { transform: scale(1.06); }
.article-card-cat {
  position: absolute; top: 14px; left: 14px;
  padding: 5px 14px; background: rgba(30,58,95,0.92); color: #fff;
  font-size: 0.78rem; font-weight: 500; border-radius: 4px;
}
.article-card-body { padding: 24px 26px 28px; flex: 1; display: flex; flex-direction: column; }
.article-card-date {
  font-size: 0.82rem; color: var(--text-light); margin-bottom: 10px;
  display: flex; align-items: center; gap: 6px;
}
.article-card-date svg { width: 14px; height: 14px; }
.article-card h3 {
  font-size: 1.15rem; line-height: 1.5; margin-bottom: 12px; color: var(--text-dark);
  transition: color var(--transition);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.article-card:hover h3 { color: var(--primary); }
.article-card-excerpt {
  color: var(--text-body); font-size: 0.92rem; line-height: 1.75; margin-bottom: 18px; flex: 1;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.article-card-link {
  color: var(--accent-dark); font-size: 0.9rem; font-weight: 600;
  display: inline-flex; align-items: center; gap: 6px; margin-top: auto;
}
.article-card-link:hover { gap: 10px; color: var(--primary); }
.article-card-link svg { width: 16px; height: 16px; transition: transform var(--transition); }

.pagination { display: flex; justify-content: center; gap: 8px; margin-bottom: 80px; }
.pagination a, .pagination span {
  min-width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--radius); font-size: 0.92rem; font-weight: 500;
  color: var(--text-body); background: #fff; border: 1px solid var(--border); padding: 0 12px;
}
.pagination a:hover { border-color: var(--primary); color: var(--primary); }
.pagination .current { background: var(--primary); color: #fff; border-color: var(--primary); }

/* 文章详情页 */
.article-hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  padding: 170px 0 50px; color: #fff;
}
.article-hero .container { max-width: 820px; }
.article-hero .breadcrumb { font-size: 0.88rem; color: rgba(255,255,255,0.6); margin-bottom: 20px; }
.article-hero .breadcrumb a { color: rgba(255,255,255,0.85); }
.article-hero .breadcrumb a:hover { color: var(--accent); }
.article-hero .breadcrumb .sep { margin: 0 8px; }
.article-cat-badge {
  display: inline-block; padding: 5px 16px; background: var(--accent); color: #fff;
  font-size: 0.8rem; font-weight: 600; border-radius: 4px; margin-bottom: 18px;
}
.article-hero h1 { color: #fff; font-size: clamp(1.5rem,3.5vw,2.2rem); line-height: 1.4; margin-bottom: 20px; font-weight: 700; }
.article-meta { display: flex; flex-wrap: wrap; gap: 20px; font-size: 0.88rem; color: rgba(255,255,255,0.7); }
.article-meta span { display: inline-flex; align-items: center; gap: 6px; }
.article-meta svg { width: 15px; height: 15px; }

.article-layout { padding: 56px 0 80px; }
.article-layout .container {
  max-width: 1180px; display: grid;
  grid-template-columns: minmax(0,1fr) 300px; gap: 48px; align-items: start;
}
.article-content {
  background: #fff; border-radius: var(--radius-lg); padding: 40px 44px;
  box-shadow: var(--shadow-sm); min-width: 0;
}
.article-featured { margin: 0 0 20px; border-radius: var(--radius); overflow: hidden; max-width: 520px; margin-left: auto; margin-right: auto; }
.article-featured img { width: 100%; max-height: 180px; object-fit: cover; display: block; }

.article-summary {
  background: var(--bg-warm); border-left: 4px solid var(--accent);
  padding: 20px 24px; border-radius: 0 var(--radius) var(--radius) 0;
  margin-bottom: 36px; font-size: 0.98rem; line-height: 1.85; color: var(--text-dark);
}
.article-summary strong { color: var(--primary); }

.article-body { font-size: 0.98rem; line-height: 1.85; color: #333; }
.article-body h2 {
  font-size: 1.3rem; margin: 36px 0 14px; padding-left: 12px;
  border-left: 4px solid var(--accent); color: var(--text-dark); line-height: 1.4;
}
.article-body h3 { font-size: 1.1rem; margin: 26px 0 12px; color: var(--primary); }
.article-body p { margin-bottom: 16px; }
.article-body ul, .article-body ol { margin: 16px 0 22px; padding-left: 0; }
.article-body li { position: relative; padding-left: 26px; margin-bottom: 12px; line-height: 1.8; }
.article-body ul li::before {
  content: ""; position: absolute; left: 4px; top: 11px;
  width: 7px; height: 7px; background: var(--accent); border-radius: 50%;
}
.article-body ol { counter-reset: item; }
.article-body ol li { padding-left: 32px; }
.article-body ol li::before {
  counter-increment: item; content: counter(item); position: absolute; left: 0; top: 2px;
  width: 22px; height: 22px; background: var(--primary); color: #fff;
  font-size: 0.8rem; font-weight: 600; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.article-body img { max-width: 100%; height: auto; border-radius: var(--radius); margin: 20px auto; box-shadow: var(--shadow-sm); display: block; }
.article-body blockquote {
  background: var(--primary-50); border-left: 4px solid var(--primary);
  padding: 18px 24px; margin: 24px 0; border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--primary); font-weight: 500;
}
.article-body strong { color: var(--text-dark); font-weight: 600; }

.article-img-group { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 16px 0; max-width: 460px; }
.article-img-group img { margin: 0; width: 100%; height: 120px; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow-sm); }

.faq-section { margin-top: 48px; padding-top: 36px; border-top: 1px solid var(--border); }
.faq-section h2 {
  font-size: 1.35rem; margin-bottom: 24px; padding-left: 14px;
  border-left: 4px solid var(--accent);
}
.faq-item { background: var(--bg-gray); border-radius: var(--radius); padding: 18px 22px; margin-bottom: 12px; }
.faq-item .q {
  font-weight: 600; color: var(--text-dark); margin-bottom: 8px; font-size: 0.98rem;
  display: flex; gap: 8px;
}
.faq-item .q::before {
  content: "Q"; background: var(--primary); color: #fff; width: 22px; height: 22px;
  border-radius: 4px; display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.78rem; flex-shrink: 0;
}
.faq-item .a { color: var(--text-body); line-height: 1.8; padding-left: 30px; font-size: 0.95rem; }

.article-cta {
  margin-top: 40px; background: linear-gradient(135deg,var(--primary),var(--primary-dark));
  border-radius: var(--radius-lg); padding: 36px 40px; color: #fff;
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.article-cta h3 { color: #fff; font-size: 1.25rem; margin-bottom: 8px; }
.article-cta p { color: rgba(255,255,255,0.8); font-size: 0.95rem; margin: 0; }
.article-cta .btn { flex-shrink: 0; }

.article-nav {
  display: flex; justify-content: space-between; gap: 16px; margin-top: 32px;
  padding-top: 28px; border-top: 1px solid var(--border);
}
.article-nav a {
  flex: 1; padding: 16px 20px; background: var(--bg-gray); border-radius: var(--radius);
  font-size: 0.92rem; color: var(--text-body); transition: all var(--transition);
}
.article-nav a:hover { background: var(--primary-50); color: var(--primary); }
.article-nav a.next { text-align: right; }
.article-nav .nav-label { display: block; font-size: 0.8rem; color: var(--text-light); margin-bottom: 4px; }

.article-sidebar { position: sticky; top: 120px; display: flex; flex-direction: column; gap: 24px; }
.sidebar-widget {
  background: #fff; border-radius: var(--radius-lg); padding: 28px 26px; box-shadow: var(--shadow-sm);
}
.sidebar-widget h4 {
  font-size: 1.05rem; margin-bottom: 18px; padding-bottom: 12px;
  border-bottom: 2px solid var(--primary-50); color: var(--text-dark);
  display: flex; align-items: center; gap: 8px;
}
.sidebar-widget h4::before { content: ""; width: 4px; height: 18px; background: var(--accent); border-radius: 2px; }
.sidebar-contact { background: linear-gradient(135deg,var(--primary),var(--primary-dark)); color: #fff; }
.sidebar-contact h4 { color: #fff; border-bottom-color: rgba(255,255,255,0.15); }
.sidebar-contact p { font-size: 0.9rem; color: rgba(255,255,255,0.8); margin-bottom: 16px; line-height: 1.7; }
.sidebar-contact .contact-item {
  display: flex; align-items: center; gap: 10px; padding: 10px 0;
  color: rgba(255,255,255,0.9); font-size: 0.92rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.sidebar-contact .contact-item:first-of-type { border-top: none; }
.sidebar-contact .contact-item svg { width: 16px; height: 16px; color: var(--accent); flex-shrink: 0; }
.sidebar-contact .btn { width: 100%; margin-top: 18px; }

.related-list a {
  display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border);
}
.related-list a:last-child { border-bottom: none; }
.related-list img { width: 72px; height: 56px; object-fit: cover; border-radius: 6px; flex-shrink: 0; }
.related-list .related-info { min-width: 0; }
.related-list .related-title {
  font-size: 0.88rem; line-height: 1.5; color: var(--text-dark);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 4px;
}
.related-list a:hover .related-title { color: var(--primary); }
.related-list .related-date { font-size: 0.78rem; color: var(--text-light); }

.cat-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.cat-cloud a {
  padding: 6px 14px; background: var(--bg-gray); border-radius: 4px;
  font-size: 0.85rem; color: var(--text-body); transition: all var(--transition);
}
.cat-cloud a:hover { background: var(--primary); color: #fff; }

@media (max-width: 900px) {
  .article-layout .container { grid-template-columns: 1fr; gap: 32px; }
  .article-sidebar { position: static; }
  .article-content { padding: 28px 22px; }
  .article-featured { margin: 0 auto 16px; max-width: 100%; }
  .article-featured img { max-height: 160px; }
  .article-img-group { max-width: 100%; }
  .article-img-group img { height: 100px; }
  .article-cta { flex-direction: column; text-align: center; }
  .blog-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .article-img-group { grid-template-columns: 1fr; }
  .article-nav { flex-direction: column; }
  .article-nav a.next { text-align: left; }
}
