/* ==============================================================
   article_list_card — 文章列表卡片

   【子主题统一 UI 规范】（与 app_card_list / 主题 .widget-title 同规格）
   标题栏  : flex / space-between / gap 12
             margin 0 0 12px; padding-bottom 10px; border-bottom 2px solid var(--border-primary)
   标题    : 16px / 600 / var(--text-primary)
   分隔线  : var(--border-primary)
             注意：不要用 --border-secondary，它在暗色下等于 --bg-card，线会看不见
   悬停底色: var(--bg-hover)（不要写死 #fafafa）
   强调色  : var(--color-link)，禁止 #409eff
   ============================================================== */

/* ---- 外框 ---- */
.article-list-component {
    margin-bottom: 24px;
}

/* ---- 头部标题栏 ---- */
.article-list-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 12px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-primary);
}

.article-list-title {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.2s;
}

.article-list-title svg {
    flex-shrink: 0;
    transition: transform 0.2s;
}

.article-list-title:hover {
    color: var(--color-link);
}

.article-list-title:hover svg {
    transform: translateX(3px);
}

/* ---- 卡片列表容器 ---- */
.article-list--card {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* ---- 单张卡片 ---- */
.article-list-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    height: 164px;              /* 固定高度 164px */
    padding: 16px 0;
    border-bottom: 1px solid var(--border-primary);
    overflow: hidden;
    border-radius: var(--border-radius-sm);
    transition: background 0.2s;
}

.article-list-item:last-child {
    border-bottom: none;
}

.article-list-item:hover {
    background: var(--bg-hover);
}

/* ---- 缩略图（左侧） ---- */
.article-list-item__thumb {
    flex-shrink: 0;
    width: 200px;               /* 高度 164px - 上下 padding 32px = 132px，按 16:9 算约 200px */
    height: 132px;
    border-radius: var(--border-radius-sm);
    overflow: hidden;
    display: block;
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
}

.article-list-item__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.article-list-item:hover .article-list-item__thumb img {
    transform: scale(1.05);
}

/* ---- 内容区（右侧） ---- */
.article-list-item__content {
    flex: 1;
    min-width: 0;
    height: 132px;              /* 与图片同高 */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    overflow: hidden;
}

/* ---- 标题 ---- */
.article-list-item__title {
    margin: 0 0 8px 0;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    max-height: 44px;           /* 两行截断 */
    overflow: hidden;
}

.article-list-item__title a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.2s;
}

.article-list-item__title a:hover {
    color: var(--color-link);
}

.article-list-item__subtitle {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 400;
    margin-left: 6px;
}

/* ---- 摘要 ---- */
.article-list-item__excerpt {
    margin: 0 0 8px 0;
    font-size: 13px;
    color: var(--text-tertiary);
    line-height: 1.7;
    max-height: 42px;           /* 两行摘要 */
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    flex: 1;
}

/* ---- 元信息栏 ---- */
.article-list-item__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;           /* 推到底部 */
    padding-top: 4px;
}

.article-list-item__meta-main {
    display: flex;
    align-items: center;
    gap: 12px;
}

.article-list-item__date {
    font-size: 12px;
    color: var(--text-muted);
}

.article-list-item__stats {
    display: flex;
    align-items: center;
    gap: 14px;
}

.article-list-item__stat {
    display: flex;
    align-items: center;
    gap: 3px;
    font-size: 12px;
    color: var(--text-muted);
    font-variant-numeric: tabular-nums;
}

.article-list-item__stat i {
    font-size: 13px;
}

/* ---- 响应式 ---- */
@media (max-width: 768px) {
    .article-list-item {
        flex-direction: column;
        height: auto;
        gap: 10px;
        padding: 12px 0;
    }

    .article-list-item__thumb {
        width: 100%;
        height: 160px;          /* 移动端图片横铺 */
    }

    .article-list-item__content {
        height: auto;
    }

    .article-list-item__excerpt {
        max-height: none;
        -webkit-line-clamp: 3;
    }

    .article-list-item__title {
        max-height: none;
        -webkit-line-clamp: 2;
    }
}

@media (max-width: 480px) {
    .article-list-title {
        font-size: 15px;
    }

    .article-list-item__thumb {
        height: 120px;
    }

    .article-list-item__title {
        font-size: 15px;
    }

    .article-list-item__excerpt {
        font-size: 12px;
    }
}
