/* =========================================================
   articles.css - 文章列表（卡片网格）
   ========================================================= */

/* ===== 分类标签 ===== */
.tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.tabs .tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  cursor: pointer;
  font-family: inherit;
  transition: .16s;
  text-decoration: none;
}
.tabs .tab:hover {
  border-color: var(--navy);
  color: var(--navy);
}
.tabs .tab.active {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
  font-weight: 600;
}
.tabs .tab .cnt {
  opacity: .65;
  font-size: 12px;
}

/* ===== 卡片网格 ===== */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}
.news-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 6px 20px rgba(11,37,69,.05);
  transition: .18s;
}
.news-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 42px rgba(11,37,69,.12);
}

/* 封面 */
.news-card .cover {
  position: relative;
  margin: 0;
  height: 186px;
  background: var(--bg-soft);
  overflow: hidden;
}
.news-card .cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}
.news-card:hover .cover img {
  transform: scale(1.04);
}
.news-card .cover .cat {
  position: absolute;
  left: 12px;
  top: 12px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .03em;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.93);
  color: var(--navy);
}
/* 无图时的兜底封面 */
.news-card .cover.cover-fallback {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.news-card .cover.cover-fallback .cover-mark {
  font-size: 40px;
  font-weight: 800;
  color: rgba(255,255,255,.15);
  letter-spacing: .14em;
  font-family: "Inter", sans-serif;
}

/* 卡片主体 */
.news-card .cbody {
  padding: 20px 20px 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.news-card .meta {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 11.5px;
  color: #9aa3ad;
  letter-spacing: .03em;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.news-card .meta .kind {
  color: var(--gold-deep, #8f6626);
  font-weight: 700;
}
.news-card .meta .dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #c8d0d9;
}
.news-card h3 {
  font-size: 16.5px;
  line-height: 1.45;
  font-weight: 700;
  margin-bottom: 10px;
}
.news-card h3 a {
  color: var(--navy);
  border-bottom: none;
  transition: color .15s;
}
.news-card h3 a:hover {
  color: var(--gold);
}
.news-card .sum {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 14px;
}
.news-card .read-more {
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
  border-bottom: none;
  margin-top: auto;
}
.news-card .read-more:hover {
  color: var(--gold);
}

/* ===== 响应式 ===== */
@media (max-width: 1024px) {
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 760px) {
  .news-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 6px;
    scrollbar-width: thin;
  }
  .tabs .tab {
    flex: 0 0 auto;
  }
}