/* 文章列表页 — 与静态 articles.html 版式一致（配合 home.css 中的 global-header / global-footer） */

.articles-page-header {
  background: linear-gradient(135deg, #0F4C81 0%, #1a6ba0 100%);
  color: #fff;
  padding: 50px 0 40px;
  margin-bottom: 40px;
}
.articles-page-header h1 {
  font-size: 32px;
  margin-bottom: 12px;
}
.articles-page-header p {
  font-size: 16px;
  opacity: 0.9;
  max-width: 700px;
}
.articles-page-header .stats {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  margin-top: 20px;
  font-size: 14px;
}
.articles-page-header .stats span {
  opacity: 0.8;
}

.category-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 30px;
  border-bottom: 1px solid #e0e0e0;
  padding-bottom: 15px;
}
.category-link {
  display: inline-block;
  padding: 8px 20px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s;
  background-color: #f0f2f5;
  color: #666;
}
.category-link.active {
  background-color: #0F4C81;
  color: #fff;
}
.category-link:hover:not(.active) {
  background-color: #e0e4e8;
  color: #0F4C81;
}

.pillar-filter-nav {
  margin-top: -12px;
  margin-bottom: 24px;
  padding-top: 0;
  border-bottom: none;
}
.pillar-filter-nav .category-link {
  font-size: 13px;
  padding: 6px 14px;
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  margin-bottom: 50px;
}
.article-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}
a.article-card {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
.article-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.1);
}
.article-card-content {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.article-badge {
  display: inline-block;
  padding: 4px 12px;
  font-size: 12px;
  border-radius: 20px;
  margin-bottom: 12px;
  align-self: flex-start;
  font-weight: 500;
}
.badge-tool { background: #e8f4f8; color: #0F4C81; }
.badge-case { background: #e6f7e6; color: #1e6b5e; }
.badge-pitfall { background: #fff3e0; color: #FF7F24; }
.badge-data { background: #f0e6f5; color: #8B5A2B; }
.badge-improve { background: #e0f5f0; color: #2c8e7c; }
.badge-audit { background: #f5e6d3; color: #B87C3A; }

.articles-page .article-card .article-title {
  font-size: 18px;
  font-weight: 600;
  color: #0F4C81;
  margin-bottom: 10px;
  line-height: 1.4;
}
.articles-page .article-card:hover .article-title {
  color: #FF7F24;
}
.articles-page .article-summary {
  color: #666;
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 15px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}
.articles-page .article-meta .article-stars {
  color: #c9a227;
  font-size: 13px;
  letter-spacing: 1px;
  margin-right: 8px;
}

.articles-page .article-meta {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #999;
  border-top: 1px solid #eee;
  padding-top: 12px;
  margin-top: auto;
}

.hot-articles {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 25px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.hot-articles h3 {
  font-size: 16px;
  color: #0F4C81;
  margin-bottom: 15px;
  padding-bottom: 8px;
  border-bottom: 2px solid #f1bf18;
}
.hot-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.hot-list li {
  padding: 12px 0;
  border-bottom: 1px solid #e8eef5;
}
.hot-list li:last-child {
  border-bottom: none;
}
.hot-list a {
  display: block;
  font-size: 14px;
  line-height: 1.5;
  font-weight: 500;
}
.hot-list a:hover {
  color: #FF7F24;
}
.hot-meta {
  font-size: 12px;
  color: #999;
  margin-top: 5px;
}

.articles-two-columns {
  display: flex;
  gap: 30px;
}
.articles-list-main {
  flex: 3;
  min-width: 0;
}
.articles-sidebar {
  flex: 1;
  min-width: 240px;
}

.pagination-articles {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 40px 0 60px;
}
.pagination-articles a.page-item,
.pagination-articles span.page-item {
  padding: 8px 14px;
  background: #fff;
  border-radius: 6px;
  color: #333;
  border: 1px solid #e0e0e0;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
  font-size: 14px;
}
.pagination-articles a.page-item:hover,
.pagination-articles a.page-item.active {
  background-color: #0F4C81;
  color: #fff;
  border-color: #0F4C81;
}
.pagination-articles span.page-item.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

@media (max-width: 992px) {
  .articles-two-columns {
    flex-direction: column;
  }
  .articles-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 768px) {
  .articles-grid {
    grid-template-columns: 1fr;
  }
  .category-nav {
    gap: 8px;
  }
  .category-link {
    padding: 6px 14px;
    font-size: 12px;
  }
}
