/* 文章中心列表：头尾复用 site-shell，主色对齐 --brand */
.article-center {
    --art-brand: var(--brand, #2B7DE9);
    --art-brand-dark: var(--brand-dark, #1D63C4);
    --art-soft: var(--brand-soft-bg, #EFF6FF);
    --art-line: #E8ECF0;
    --art-ink: #333;
    --art-muted: #666;
    --art-faint: #999;
    background: #F5F7FA;
}

.article-wrap {
    width: min(1200px, calc(100% - 40px));
    margin: 0 auto;
}

.article-breadcrumb {
    background: #fff;
    border-bottom: 1px solid var(--art-line);
    padding: 14px 0;
}

.article-breadcrumb a {
    color: var(--art-muted);
    text-decoration: none;
    font-size: 14px;
}

.article-breadcrumb a:hover {
    color: var(--art-brand);
}

.article-breadcrumb .sep {
    margin: 0 8px;
    color: #ccc;
    font-size: 14px;
}

.article-breadcrumb .current {
    color: var(--art-ink);
    font-size: 14px;
    font-weight: 500;
}

.article-main {
    padding: 24px 0 48px;
}

.article-layout {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.article-left {
    flex: 1;
    min-width: 0;
}

.article-sidebar {
    width: 300px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.filter-panel {
    background: #fff;
    border-radius: 12px;
    padding: 18px 20px;
    margin-bottom: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding-bottom: 16px;
    margin-bottom: 14px;
    border-bottom: 1px solid var(--art-line);
}

.filter-tab {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 15px;
    color: var(--art-muted);
    text-decoration: none;
    transition: all .2s ease;
}

.filter-tab:hover,
.filter-tab.is-active {
    color: var(--art-brand);
    background: var(--art-soft);
    font-weight: 500;
}

.filter-sort {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}

.sort-item {
    font-size: 14px;
    color: var(--art-faint);
    text-decoration: none;
}

.sort-item:hover,
.sort-item.is-active {
    color: var(--art-brand);
    font-weight: 500;
}

.article-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.article-empty,
.side-empty {
    background: #fff;
    border-radius: 12px;
    padding: 40px 20px;
    text-align: center;
    color: var(--art-faint);
    font-size: 14px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.side-empty {
    box-shadow: none;
    padding: 12px 0;
    list-style: none;
}

.article-card {
    display: flex;
    gap: 18px;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    transition: box-shadow .25s ease, transform .25s ease;
}

.article-card:hover {
    box-shadow: 0 8px 24px rgba(43, 125, 233, 0.14);
    transform: translateY(-2px);
}

.article-cover {
    position: relative;
    width: 240px;
    height: 150px;
    flex-shrink: 0;
    overflow: hidden;
    background: var(--art-soft);
    display: block;
}

.article-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .3s ease;
}

.article-card:hover .article-cover img {
    transform: scale(1.05);
}

.cover-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--art-brand);
    font-size: 36px;
    opacity: .55;
}

.cover-tag {
    position: absolute;
    top: 10px;
    right: 10px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--art-brand) 0%, var(--art-brand-dark) 100%);
    color: #fff;
    font-size: 12px;
}

.article-body {
    flex: 1;
    min-width: 0;
    padding: 16px 18px 16px 0;
    display: flex;
    flex-direction: column;
}

.article-cat {
    align-self: flex-start;
    padding: 3px 10px;
    border-radius: 4px;
    background: var(--art-soft);
    color: var(--art-brand);
    font-size: 12px;
    margin-bottom: 8px;
}

.article-title {
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.45;
}

.article-title a {
    color: var(--art-ink);
    text-decoration: none;
}

.article-title a:hover {
    color: var(--art-brand);
}

.article-summary {
    margin: 0 0 12px;
    font-size: 14px;
    color: var(--art-muted);
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.article-meta {
    display: flex;
    gap: 18px;
    margin-bottom: 12px;
    font-size: 13px;
    color: var(--art-faint);
}

.article-meta i {
    margin-right: 5px;
}

.article-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.product-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    min-width: 0;
    flex: 1;
}

.product-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 4px;
    background: var(--art-soft);
    color: var(--art-brand);
    font-size: 12px;
    text-decoration: none;
}

.product-tag:hover {
    background: #DBEAFE;
}

.read-btn {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 8px 14px;
    border-radius: 6px;
    background: linear-gradient(135deg, var(--art-brand) 0%, var(--art-brand-dark) 100%);
    color: #fff !important;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: box-shadow .2s ease;
}

.read-btn:hover {
    box-shadow: 0 4px 14px rgba(43, 125, 233, 0.35);
}

.load-more {
    display: block;
    margin-top: 16px;
    background: #fff;
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    color: var(--art-brand);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.load-more:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.load-more.is-done {
    color: var(--art-faint);
    cursor: default;
}

.article-pager {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
}

.article-pager a {
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #fff;
    color: var(--art-muted);
    text-decoration: none;
    font-size: 14px;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.04);
}

.article-pager a.is-active,
.article-pager a:hover {
    background: var(--art-brand);
    color: #fff;
}

.side-card {
    background: #fff;
    border-radius: 12px;
    padding: 18px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.side-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--art-line);
    font-size: 16px;
    font-weight: 600;
    color: var(--art-ink);
}

.side-title .fa-fire {
    color: #FF6B6B;
}

.side-title .fa-star {
    color: #FFB800;
}

.side-title .fa-list-ul {
    color: var(--art-brand);
}

.hot-list,
.side-products,
.side-cats {
    margin: 0;
    padding: 0;
    list-style: none;
}

.hot-list li + li,
.side-products li + li {
    margin-top: 10px;
}

.hot-list a,
.side-products a,
.side-cats a {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 8px;
    border-radius: 8px;
    text-decoration: none;
    transition: background .2s ease;
}

.hot-list a:hover,
.side-products a:hover,
.side-cats a:hover,
.side-cats a.is-active {
    background: #F5F7FA;
}

.side-cats a.is-active,
.side-cats a:hover {
    background: var(--art-soft);
}

.hot-rank {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    background: #F5F7FA;
    color: var(--art-faint);
    font-size: 13px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.hot-rank.is-top {
    background: linear-gradient(135deg, #FF6B6B 0%, #FF8E53 100%);
    color: #fff;
}

.hot-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.hot-title {
    font-size: 14px;
    color: var(--art-ink);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hot-views {
    font-size: 12px;
    color: var(--art-faint);
}

.side-products img,
.side-product-fallback {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
    background: var(--art-soft);
}

.side-product-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--art-brand);
}

.side-products strong {
    display: block;
    font-size: 15px;
    font-weight: 500;
    color: var(--art-ink);
    margin-bottom: 4px;
}

.side-products em {
    display: block;
    font-style: normal;
    font-size: 13px;
    color: var(--art-faint);
    line-height: 1.4;
}

.side-cats a {
    align-items: center;
    justify-content: space-between;
    color: var(--art-ink);
    font-size: 14px;
}

.side-cats a span:last-child {
    color: var(--art-faint);
    font-size: 13px;
}

.side-cats a.is-active span:first-child {
    color: var(--art-brand);
    font-weight: 500;
}

/* 文章详情（列表页同套样式文件） */
.article-detail {
    max-width: 860px;
}

.detail-card {
    background: #fff;
    border-radius: 12px;
    padding: 28px 32px 36px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.detail-card h1 {
    margin: 0 0 10px;
    font-size: 28px;
    line-height: 1.4;
    color: var(--art-ink);
}

.detail-subtitle {
    margin: 0 0 14px;
    font-size: 15px;
    color: var(--art-muted);
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 18px;
    margin-bottom: 20px;
    font-size: 13px;
    color: var(--art-faint);
}

.detail-meta i {
    margin-right: 5px;
}

.detail-cover {
    margin-bottom: 24px;
    border-radius: 10px;
    overflow: hidden;
}

.detail-cover img {
    display: block;
    width: 100%;
    height: auto;
}

.detail-content {
    font-size: 16px;
    line-height: 1.85;
    color: #444;
    word-break: break-word;
}

.detail-content img {
    max-width: 100%;
    height: auto;
}

.detail-content p {
    margin: 0 0 1em;
}

.detail-products {
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid var(--art-line);
}

.detail-products h3 {
    margin: 0 0 12px;
    font-size: 16px;
    color: var(--art-ink);
}

.detail-back {
    margin-top: 28px;
}

.detail-back a {
    color: var(--art-brand);
    text-decoration: none;
    font-size: 14px;
}

.detail-back a:hover {
    text-decoration: underline;
}

@media (max-width: 960px) {
    .article-layout {
        flex-direction: column;
    }

    .article-sidebar {
        width: 100%;
    }
}

@media (max-width: 720px) {
    .article-card {
        flex-direction: column;
        gap: 0;
    }

    .article-cover {
        width: 100%;
        height: 180px;
    }

    .article-body {
        padding: 14px 16px 16px;
    }

    .article-foot {
        flex-direction: column;
        align-items: stretch;
    }

    .read-btn {
        justify-content: center;
    }
}
