/* ══════════════════════════════════════════════════════════════
   article-list.css — 技术文章列表页样式
   页面层级，对应 pages/article-list.php
   ══════════════════════════════════════════════════════════════ */

/* ── 布局容器 ── */
.mkl-article-list {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 40px 80px;
}

/* ══════════════════════════════════════════════════════════════
   Tab 栏 — 底部 2px 指示器
   与 tech-support Tab 视觉一致
   ══════════════════════════════════════════════════════════════ */
.mkl-article-tabs {
    display: flex;
    gap: 32px;
    border-bottom: 1px solid #E5E5E7;
    margin-bottom: 40px;
}

.mkl-article-tab {
    padding: 12px 0;
    font-size: 15px;
    font-weight: 500;
    color: #86868B;
    text-decoration: none;
    /* 底部指示器占位 */
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: color 0.2s, border-color 0.2s;
}

.mkl-article-tab:hover {
    color: #1D1D1F;
}

.mkl-article-tab--active {
    color: #1D1D1F;
    border-bottom-color: #0071E3;
}

/* ══════════════════════════════════════════════════════════════
   文章网格 — 3×3
   ══════════════════════════════════════════════════════════════ */
.mkl-article-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

/* ══════════════════════════════════════════════════════════════
   文章卡片
   ══════════════════════════════════════════════════════════════ */
.mkl-article-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.mkl-article-card:hover {
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

/* ── 图片区 ── */
.mkl-article-card__image {
    /* 16:10 比例 */
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: 12px 12px 0 0;
}

.mkl-article-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 品牌占位图 — 工业蓝（与 Spotlight fallback 同色系） */
.mkl-article-card__image--industrial {
    background: linear-gradient(135deg, rgba(0,113,227,0.06), rgba(0,113,227,0.02));
}

/* 品牌占位图 — 消费紫 */
.mkl-article-card__image--consumer {
    background: linear-gradient(135deg, rgba(88,86,214,0.06), rgba(88,86,214,0.02));
}

/* 品牌占位图 — 未分类兜底 */
.mkl-article-card__image--default {
    background: linear-gradient(135deg, rgba(0,0,0,0.04), rgba(0,0,0,0.01));
}

/* ── 卡片正文区 ── */
.mkl-article-card__body {
    padding: 16px 20px 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* ── Category 标签 ── */
.mkl-article-card__cat {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.02em;
    padding: 2px 8px;
    border-radius: 4px;
    width: fit-content;
}

/* 工业线标签 */
.mkl-article-card__cat--industrial {
    color: #0071E3;
    background: rgba(0, 113, 227, 0.08);
}

/* 消费线标签 */
.mkl-article-card__cat--consumer {
    color: #5856D6;
    background: rgba(88, 86, 214, 0.08);
}

/* ── 标题：两行截断 ── */
.mkl-article-card__title {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
    color: #1D1D1F;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ── 日期 + 阅读量 + 关联产品 ── */
.mkl-article-card__meta {
    display: flex;
    gap: 12px;
    font-size: 13px;
    color: #86868B;
}

/* ══════════════════════════════════════════════════════════════
   分页
   ══════════════════════════════════════════════════════════════ */
.mkl-article-pagination {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin-top: 48px;
}

.mkl-article-pagination a,
.mkl-article-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    font-size: 14px;
    border-radius: 8px;
    text-decoration: none;
    color: #1D1D1F;
    transition: background 0.15s;
}

.mkl-article-pagination a:hover {
    background: #F5F5F7;
}

/* 当前页 */
.mkl-article-pagination span.current {
    background: #0071E3;
    color: #fff;
}

/* 省略号 */
.mkl-article-pagination span.dots {
    color: #86868B;
}

/* ══════════════════════════════════════════════════════════════
   空状态
   ══════════════════════════════════════════════════════════════ */
.mkl-article-empty {
    text-align: center;
    padding: 80px 0;
    color: #86868B;
    font-size: 15px;
}
