/* ==========================================================================
   article.css —— 文章系统样式（详情页 / 列表页 / 分类页）
   依赖 style.css（基础）、product.css（chip / 询盘等）、list.css（list-hero）
   ========================================================================== */

/* ---------- 文章头部 ---------- */
.art-head {
  background: #fff;
  border: 1px solid #e5e9f2;
  border-radius: 12px;
  padding: 24px 26px 20px;
  margin-bottom: 22px;
  box-shadow: 0 2px 12px rgba(20, 40, 90, 0.05);
}
/* 文章标签组件 */
.art-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}
.art-tag {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.4;
  padding: 4px 13px;
  border-radius: 999px;
  border: 1px solid transparent;
}
.art-tag-cat {
  background: #eef4ff;
  color: #2563eb;
  border-color: #d6e0f5;
}
.art-tag-brand {
  background: #fff7ed;
  color: #ea580c;
  border-color: #fde0c2;
}
.art-tag-svc {
  background: #f0fdf4;
  color: #16a34a;
  border-color: #cdeed7;
}
.art-kicker {
  font-size: 14px;
  color: #2563eb;
  font-weight: 600;
  margin-bottom: 8px;
}
.art-kicker a {
  color: #2563eb;
  text-decoration: none;
}
.art-kicker a:hover {
  text-decoration: underline;
}
.art-head h1 {
  font-size: 28px;
  line-height: 1.35;
  color: #1a2233;
  margin: 0 0 10px;
}
.art-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 13px;
  color: #6b7280;
  margin-bottom: 16px;
}
.art-summary {
  background: #f0f5ff;
  border-left: 4px solid #2563eb;
  border-radius: 0 8px 8px 0;
  padding: 14px 18px;
  color: #334155;
  line-height: 1.8;
  font-size: 14.5px;
  margin-bottom: 8px;
}

/* ---------- 正文排版 ---------- */
.article-body {
  font-size: 15px;
  color: #2b3446;
  line-height: 1.9;
}
.article-body h2 {
  font-size: 20px;
  color: #1a2233;
  margin: 30px 0 12px;
  padding-left: 12px;
  border-left: 4px solid #2563eb;
}
.article-body h3 {
  font-size: 17px;
  color: #1a2233;
  margin: 22px 0 10px;
}
.article-body p {
  margin: 0 0 14px;
}
.article-body ul,
.article-body ol {
  margin: 0 0 14px;
  padding-left: 24px;
}
.article-body li {
  margin-bottom: 6px;
}
.article-body blockquote {
  margin: 0 0 14px;
  padding: 12px 18px;
  background: #fff7ed;
  border-left: 4px solid #f97316;
  border-radius: 0 8px 8px 0;
  color: #7c2d12;
  font-size: 14px;
  line-height: 1.8;
}
.article-body code {
  background: #f1f5f9;
  border-radius: 4px;
  padding: 1px 6px;
  font-size: 13.5px;
  color: #b91c1c;
}
.article-body a {
  color: #2563eb;
}
.md-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 16px;
  font-size: 14px;
}
.md-table th,
.md-table td {
  border: 1px solid #e5e9f2;
  padding: 9px 12px;
  text-align: left;
  line-height: 1.6;
}
.md-table th {
  background: #f0f5ff;
  color: #1a2233;
  font-weight: 600;
  white-space: nowrap;
}
.md-table tr:nth-child(even) td {
  background: #f8fafd;
}

/* ---------- 文章卡片（相关文章 / 列表页通用） ---------- */
.art-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}
.art-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid #e5e9f2;
  border-radius: 10px;
  padding: 18px;
  text-decoration: none;
  transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
}
.art-card:hover {
  border-color: #93b4f5;
  box-shadow: 0 8px 22px rgba(20, 40, 90, 0.10);
  transform: translateY(-2px);
}
.ac-cat {
  font-size: 12.5px;
  color: #2563eb;
  font-weight: 600;
  background: #eef4ff;
  border: 1px solid #d6e0f5;
  border-radius: 5px;
  padding: 2px 10px;
  align-self: flex-start;
  margin-bottom: 10px;
}
.ac-title {
  font-size: 16px;
  font-weight: 700;
  color: #1a2233;
  line-height: 1.45;
  margin-bottom: 8px;
}
.ac-summary {
  font-size: 13.5px;
  color: #6b7280;
  line-height: 1.7;
  margin-bottom: 12px;
  flex: 1;
}
.ac-meta {
  font-size: 12.5px;
  color: #9ca3af;
  font-weight: 400;
}
.ac-meta .ac-more-link {
  color: #2563eb;
  font-weight: 600;
}

/* ---------- 文章分类导航 chips ---------- */
.art-cat-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}
.art-cat-nav a {
  text-decoration: none;
  background: #ffffff;
  border: 1px solid #d6e0f5;
  color: #334;
  border-radius: 6px;
  padding: 7px 16px;
  font-size: 14px;
  transition: all 0.2s;
}
.art-cat-nav a:hover,
.art-cat-nav a.cur {
  background: #2563eb;
  border-color: #2563eb;
  color: #fff;
}

/* ---------- 响应式 ---------- */
@media (max-width: 760px) {
  .art-head h1 {
    font-size: 22px;
  }
  .md-table {
    font-size: 13px;
  }
  .md-table th,
  .md-table td {
    padding: 7px 8px;
  }
}
