/* =====================================================================
 * [PBCS PATCH] channel-article.html 专用现代样式 — channel-article-modern.css
 * ---------------------------------------------------------------------
 * 背景：channel-article.html 之前是「焦点视点横滑 + 8/4 主列表 + 侧栏 widget」
 *       用 Bootstrap 4 默认 .badge / .btn 风格，视觉陈旧。
 * 改成与 channel-download.html / show-news.html / show-download.html 一致
 * 的现代杂志/科技门户风。
 *
 * 命名空间：.pbcs-al- 前缀（article list 简写）
 * 引用：channel-article.html 自己在 head 之后 <link> 引入
 *
 * 设计同 channel-download-modern.css 平行：
 *   - 复用 home-modern.css 通用组件（.pbcs-home-wrap / .pbcs-section）
 *   - 复用 show-news-modern.css 通用组件（.pbcs-news-banner / .pbcs-news-breadcrumb /
 *     .pbcs-sidebar / .pbcs-widget / .pbcs-tagcloud）
 *   - 本文件新增：headline 横滑 carousel / tabs pill 导航 / list item 卡片 /
 *     rank 排行 / rec 推荐 / Element Plus 风格分页 + 跳转
 * ===================================================================== */

/* ---------- 主题变量（与 channel-download 一致） ---------- */
.pbcs-al-page {
    --pbcs-primary: #667eea;
    --pbcs-primary-dark: #5568d3;
    --pbcs-accent: #ff6b35;
    --pbcs-text: #212529;
    --pbcs-muted: #6c757d;
    --pbcs-border: #e9ecef;
    --pbcs-radius: 12px;
    --pbcs-radius-lg: 16px;
    --pbcs-shadow-sm: 0 2px 8px rgba(0, 0, 0, .06);
    --pbcs-shadow-md: 0 8px 24px rgba(0, 0, 0, .08);
}

/* =====================================================================
 * 头条横排 carousel（10 条 isrecommend=1，左右箭头切换）
 * 与 channel-download 区别：channel-article 用 isrecommend 替代 istop
 * ===================================================================== */
.pbcs-al-section-head {
    display: flex;
    align-items: center;
    margin: 32px 0 14px;
}
.pbcs-al-section-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--pbcs-text);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}
.pbcs-al-section-title i {
    color: #ffb020;
    font-size: 20px;
}
.pbcs-al-headline-nav {
    margin-left: auto;
    display: flex;
    gap: 6px;
}
.pbcs-al-headline-nav button {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid var(--pbcs-border);
    color: var(--pbcs-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .2s ease;
    font-size: 14px;
}
.pbcs-al-headline-nav button:hover {
    background: var(--pbcs-primary);
    color: #fff;
    border-color: var(--pbcs-primary);
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(102, 126, 234, .25);
}

.pbcs-al-headline-track {
    display: flex;
    gap: 16px;
    padding-bottom: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    margin: 0 -8px;
    padding-left: 8px;
    padding-right: 8px;
}
.pbcs-al-headline-track::-webkit-scrollbar { display: none; }

.pbcs-al-headline-card {
    flex-shrink: 0;
    width: 200px;
    text-decoration: none;
    color: inherit;
    display: block;
    transition: transform .2s ease;
}
.pbcs-al-headline-card:hover {
    transform: translateY(-4px);
    color: inherit;
    text-decoration: none;
}
.pbcs-al-headline-card:hover .pbcs-al-headline-img {
    box-shadow: 0 12px 28px rgba(102, 126, 234, .2);
}
.pbcs-al-headline-thumb {
    position: relative;
    overflow: hidden;
    border-radius: var(--pbcs-radius);
}
.pbcs-al-headline-img {
    width: 200px;
    height: 130px;
    object-fit: contain;
    display: block;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: var(--pbcs-radius);
    transition: box-shadow .2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .06);
}
.pbcs-al-headline-img-default {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, .7);
    font-family: 'FontAwesome';
    font-size: 36px;
}
.pbcs-al-headline-img-default::after {
    content: '\f15b';  /* fa-file-text-o (文章) */
}
.pbcs-al-headline-badge {
    position: absolute;
    top: 6px;
    left: 6px;
    padding: 2px 8px;
    background: linear-gradient(135deg, #ffc107 0%, #e0a800 100%);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    border-radius: 4px;
    box-shadow: 0 2px 6px rgba(255, 193, 7, .4);
    line-height: 1.4;
}
.pbcs-al-headline-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--pbcs-text);
    line-height: 1.45;
    margin: 8px 0 0;
    width: 200px;
    height: 40px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* =====================================================================
 * tab 导航条（最新 + 子分类 + 分页统计）
 * ===================================================================== */
.pbcs-al-tabs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 16px 0;
    border-bottom: 1px solid var(--pbcs-border);
    margin-bottom: 28px;
}
.pbcs-al-tab {
    padding: 8px 18px;
    border-radius: 20px;
    background: #f8f9fa;
    color: var(--pbcs-muted);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all .2s ease;
    border: 1px solid transparent;
    white-space: nowrap;
}
.pbcs-al-tab:hover {
    background: rgba(102, 126, 234, .1);
    color: var(--pbcs-primary);
    text-decoration: none;
}
.pbcs-al-tab.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(102, 126, 234, .3);
}
.pbcs-al-tab-meta {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 13px;
    color: var(--pbcs-muted);
}
.pbcs-al-tab-meta strong {
    color: var(--pbcs-text);
    font-weight: 600;
}
@media (max-width: 768px) {
    .pbcs-al-tab-meta { display: none; }
}

/* =====================================================================
 * 主列表 item（缩略图 + 标题/徽章 + 描述 + meta）
 * ===================================================================== */
.pbcs-al-list {
    display: flex;
    flex-direction: column;
}
.pbcs-al-item {
    display: flex;
    gap: 24px;
    padding-bottom: 28px;
    margin-bottom: 28px;
    border-bottom: 1px solid var(--pbcs-border);
    transition: opacity .2s ease;
}
.pbcs-al-item:last-child { border-bottom: 0; }
.pbcs-al-item-thumb {
    flex-shrink: 0;
    width: 200px;
    border-radius: var(--pbcs-radius);
    overflow: hidden;
}
.pbcs-al-item-img {
    width: 200px;
    height: 130px;
    object-fit: contain;
    display: block;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: var(--pbcs-radius);
    box-shadow: 0 2px 8px rgba(0, 0, 0, .06);
    transition: transform .2s ease, box-shadow .2s ease;
}
.pbcs-al-item-thumb a:hover .pbcs-al-item-img {
    transform: scale(1.03);
    box-shadow: 0 8px 20px rgba(102, 126, 234, .2);
}
.pbcs-al-item-img-default {
    background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}
.pbcs-al-item-img-default::after {
    content: '\f15b';  /* fa-file-text */
    font-family: 'FontAwesome';
    color: rgba(102, 126, 234, .5);
    font-size: 36px;
}

.pbcs-al-item-body {
    flex-grow: 1;
    min-width: 0;
}
.pbcs-al-item-title-row {
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}
.pbcs-al-item-title {
    color: var(--pbcs-text);
    text-decoration: none;
    transition: color .2s ease;
}
.pbcs-al-item-title:hover {
    color: var(--pbcs-primary);
    text-decoration: none;
}

.pbcs-al-badge {
    display: inline-block;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 4px;
    line-height: 1.4;
    color: #fff;
    vertical-align: middle;
}
.pbcs-al-badge-top {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    box-shadow: 0 2px 6px rgba(255, 107, 53, .3);
}
.pbcs-al-badge-rec {
    background: linear-gradient(135deg, #ffc107 0%, #e0a800 100%);
    color: #212529;
    box-shadow: 0 2px 6px rgba(255, 193, 7, .3);
}
.pbcs-al-badge-head {
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
    box-shadow: 0 2px 6px rgba(23, 162, 184, .3);
}

.pbcs-al-item-desc {
    color: var(--pbcs-muted);
    font-size: 14px;
    line-height: 1.7;
    margin: 8px 0 12px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.pbcs-al-item-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 13px;
    color: var(--pbcs-muted);
}
.pbcs-al-item-meta i {
    color: var(--pbcs-primary);
    margin-right: 4px;
}
.pbcs-al-item-meta .ml-auto {
    margin-left: auto;
}

/* =====================================================================
 * 侧栏：本月热门排行
 * ===================================================================== */
.pbcs-al-rank {
    counter-reset: rank-counter;
    list-style: none;
    margin: 0;
    padding: 0;
}
.pbcs-al-rank-item {
    display: flex;
    align-items: flex-start;
    padding: 10px 0;
    border-bottom: 1px dashed var(--pbcs-border);
    gap: 12px;
}
.pbcs-al-rank-item:last-child { border-bottom: 0; }
.pbcs-al-rank-num {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border-radius: 6px;
    background: #e9ecef;
    color: var(--pbcs-muted);
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}
.pbcs-al-rank-item:nth-child(1) .pbcs-al-rank-num {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    color: #fff;
    box-shadow: 0 2px 6px rgba(255, 107, 53, .3);
}
.pbcs-al-rank-item:nth-child(2) .pbcs-al-rank-num {
    background: linear-gradient(135deg, #ffc107 0%, #e0a800 100%);
    color: #fff;
    box-shadow: 0 2px 6px rgba(255, 193, 7, .3);
}
.pbcs-al-rank-item:nth-child(3) .pbcs-al-rank-num {
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
    color: #fff;
    box-shadow: 0 2px 6px rgba(23, 162, 184, .3);
}
.pbcs-al-rank-title {
    flex-grow: 1;
    color: var(--pbcs-text);
    text-decoration: none;
    line-height: 1.5;
    font-size: 14px;
    transition: color .2s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.pbcs-al-rank-title:hover {
    color: var(--pbcs-primary);
    text-decoration: none;
}

/* =====================================================================
 * 侧栏：编辑推荐
 * ===================================================================== */
.pbcs-al-rec {
    list-style: none;
    margin: 0;
    padding: 0;
}
.pbcs-al-rec-item {
    padding: 10px 0;
    border-bottom: 1px dashed var(--pbcs-border);
}
.pbcs-al-rec-item:last-child { border-bottom: 0; }
.pbcs-al-rec-item a {
    color: var(--pbcs-text);
    text-decoration: none;
    line-height: 1.5;
    font-size: 14px;
    transition: color .2s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.pbcs-al-rec-item a:hover { color: var(--pbcs-primary); text-decoration: none; }
.pbcs-al-rec-item i { color: var(--pbcs-accent); margin-right: 4px; }

/* =====================================================================
 * 响应式微调
 * ===================================================================== */
@media (max-width: 768px) {
    .pbcs-al-item {
        flex-direction: column;
        gap: 12px;
    }
    .pbcs-al-item-thumb {
        width: 100%;
    }
    .pbcs-al-item-img {
        width: 100%;
        height: 180px;
    }
    .pbcs-al-headline-card {
        width: 160px;
    }
    .pbcs-al-headline-img {
        width: 160px;
        height: 100px;
    }
    .pbcs-al-headline-title {
        width: 160px;
    }
}

/* =====================================================================
 * 分页（Element Plus 风格 — 覆盖 Bootstrap 4 .pagination 默认）
 * 与 channel-download / list-download / productlist 一致
 * ===================================================================== */
.pbcs-al-page .pagination {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 40px 0 16px;
    border-radius: 0;
    gap: 0;
}

.pbcs-al-page .pagination .page-item,
.pbcs-al-page .pagination .page-num {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 16px;
    margin: 0;
    margin-left: -1px;
    border: 1px solid #d9d9d9;
    background: #fff;
    color: #409eff;
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
    text-align: center;
    text-decoration: none;
    border-radius: 0;
    box-sizing: border-box;
    transition: color .15s ease, background .15s ease, border-color .15s ease;
    cursor: pointer;
    user-select: none;
    vertical-align: middle;
}

.pbcs-al-page .pagination > a:first-child,
.pbcs-al-page .pagination > .page-num:first-child,
.pbcs-al-page .pagination > .page-item:first-child {
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
    margin-left: 0;
}
.pbcs-al-page .pagination > a:last-child,
.pbcs-al-page .pagination > .page-num:last-child,
.pbcs-al-page .pagination > .page-item:last-child {
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
}

.pbcs-al-page .pagination .page-item:hover,
.pbcs-al-page .pagination .page-num:hover {
    position: relative;
    z-index: 1;
    color: #66b1ff;
    border-color: #66b1ff;
}

.pbcs-al-page .pagination .page-num-current {
    position: relative;
    z-index: 2;
    background: #409eff;
    color: #fff;
    border-color: #409eff;
    cursor: default;
}
.pbcs-al-page .pagination .page-num-current:hover {
    color: #fff;
    background: #66b1ff;
    border-color: #66b1ff;
}

.pbcs-al-page .pagination .page-num:not([href]) {
    color: #c0c4cc;
    cursor: default;
    background: #f5f7fa;
}
.pbcs-al-page .pagination .page-num:not([href]):hover {
    color: #c0c4cc;
    background: #f5f7fa;
    border-color: #d9d9d9;
}

@media (max-width: 576px) {
    .pbcs-al-page .pagination .page-item,
    .pbcs-al-page .pagination .page-num {
        min-width: 32px;
        height: 32px;
        padding: 0 10px;
        font-size: 13px;
    }
}

/* =====================================================================
 * 分页跳转（Element Plus 风格 — "前往 X 页" + GO 按钮）
 * 与 channel-download / list-download / productlist 一致
 * ===================================================================== */
.pbcs-al-page .pbcs-pagination-jump {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    margin: 16px 0 8px;
    font-size: 14px;
    color: #606266;
    vertical-align: middle;
}
.pbcs-al-page .pbcs-pagination-jump .jump-label {
    color: #606266;
    margin: 0 6px;
    user-select: none;
}
.pbcs-al-page .pbcs-pagination-jump .jump-input {
    width: 56px;
    height: 32px;
    padding: 0 8px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    font-size: 14px;
    color: #606266;
    text-align: center;
    background: #fff;
    transition: border-color .15s ease;
    -moz-appearance: textfield;
    appearance: textfield;
    outline: none;
    font-family: inherit;
    line-height: 1;
}
.pbcs-al-page .pbcs-pagination-jump .jump-input::-webkit-outer-spin-button,
.pbcs-al-page .pbcs-pagination-jump .jump-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.pbcs-al-page .pbcs-pagination-jump .jump-input:focus {
    border-color: #409eff;
}
.pbcs-al-page .pbcs-pagination-jump .jump-input:hover {
    border-color: #c0c4cc;
}
.pbcs-al-page .pbcs-pagination-jump .jump-btn {
    min-width: 40px;
    height: 32px;
    padding: 0 14px;
    background: #fff;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    color: #409eff;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all .15s ease;
    font-family: inherit;
    line-height: 1;
}
.pbcs-al-page .pbcs-pagination-jump .jump-btn:hover {
    color: #66b1ff;
    border-color: #66b1ff;
    background: #ecf5ff;
}
.pbcs-al-page .pbcs-pagination-jump .jump-btn:active {
    transform: scale(0.98);
}

@media (max-width: 576px) {
    .pbcs-al-page .pbcs-pagination-jump .jump-input { width: 48px; }
    .pbcs-al-page .pbcs-pagination-jump .jump-btn { padding: 0 10px; font-size: 13px; }
    .pbcs-al-page .pbcs-pagination-jump .jump-label { font-size: 13px; }
}

/* =====================================================================
 * 标签云（pbcs-tagcloud 内部 a class="pbcs-tag"）
 * [PBCS PATCH 2026-08-01] 修白色文字看不见 bug
 *   之前：channel-article.html 用 class="pbcs-tag"，但 show-news-modern.css
 *         只定义 .pbcs-tagcloud .tag-pill → 匹配不到 → 颜色继承
 *   现在：加 .pbcs-tagcloud .pbcs-tag 规则显式设 color + 圆角 + hover
 * ===================================================================== */
.pbcs-tagcloud .pbcs-tag,
.pbcs-tagcloud .tag-pill {
    display: inline-block;
    padding: 4px 10px;
    background: #f1f3f5;
    color: #495057;
    border-radius: 12px;
    text-decoration: none;
    font-size: 12px;
    transition: all .2s ease;
    line-height: 1.4;
}
.pbcs-tagcloud .pbcs-tag:hover,
.pbcs-tagcloud .tag-pill:hover {
    background: var(--pbcs-primary);
    color: #fff;
    text-decoration: none;
}
