/* ================================================================
   新闻资讯列表页 news_page.css
   复刻 toobest.net/news 布局：浅色 Banner + 左文章网格 + 右热门侧栏
   配色与站点一致：#2538FF → #8F00FF 蓝紫渐变
   ================================================================ */

/* ---------- 1. Banner ---------- */
.news-banner-section {
    padding: 100px 0 70px;
    background: url('/upload/20260826/news_banner_bg.png') no-repeat center center;
    background-size: cover;
    position: relative;
}
.news-banner-content {
    text-align: center;
    position: relative;
    z-index: 2;
}
.news-banner-title h1 {
    font-size: 36px;
    font-weight: 600;
    color: #1A2233;
    margin: 0;
    line-height: 1.4;
    margin-bottom: 18px;
}
.news-banner-title .n-highlight {
    display: inline-block;
    background: linear-gradient(270deg, #8F00FF 0%, #2538FF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.news-banner-crumbs {
    font-size: 14px;
    color: #8a8f9c;
}
.news-banner-crumbs a {
    color: #666;
    text-decoration: none;
    transition: color .2s;
}
.news-banner-crumbs a:hover { color: #2538FF; }
.news-banner-crumbs em { font-style: normal; opacity: .5; margin: 0 6px; }

/* ---------- 2. 主体两栏 ---------- */
.news-main-section {
    padding: 40px 0 60px;
    background: #f8f9fa;
}
.news-content-wrapper {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}
.news-articles-column {
    flex: 1;
    min-width: 0;
}

/* ---------- 3. 文章卡片网格 ---------- */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}
.article-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    text-decoration: none;
    display: block;
    border: 1px solid transparent;
    word-wrap: break-word;
    word-break: break-word;
}
.article-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(37, 56, 255, 0.22);
    border-color: #2538FF;
}
.article-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
    background: #f2f3f7;
}
.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.article-card:hover .article-image img {
    transform: scale(1.05);
}
.article-card .article-content {
    padding: 20px;
}
.article-card .article-title {
    font-size: 16px;
    font-weight: 600;
    color: #1A2233;
    margin: 0 0 12px 0;
    line-height: 1.4;
    min-height: 44px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    word-wrap: break-word;
    word-break: break-word;
}
.article-card .article-description {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin: 0 0 18px 0;
    height: 44px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    word-wrap: break-word;
    word-break: break-word;
}
.article-card .article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}
.article-card .article-tags {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
}
.article-card .article-category {
    background: linear-gradient(270deg, #8F00FF 0%, #2538FF 100%);
    color: #fff;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}
.article-card .article-date {
    font-size: 12px;
    color: #999;
}

/* ---------- 4. 分页（覆盖系统内联 .pagination） ---------- */
.pagination-section {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}
.news-articles-column .pagination {
    padding: 10px 0 !important;
    justify-content: center;
    gap: 8px;
}
.news-articles-column .pagination a {
    display: block;
    min-width: 40px;
    height: 36px;
    line-height: 36px;
    margin-right: 0 !important;
    padding: 0 14px !important;
    border: 1px solid #e4e6ef !important;
    background: #fff !important;
    text-decoration: none;
    color: #666 !important;
    font-size: 13px;
    border-radius: 8px !important;
    text-align: center;
    transition: all .2s ease;
}
.news-articles-column .pagination a:hover {
    color: #fff !important;
    background: linear-gradient(270deg, #8F00FF 0%, #2538FF 100%) !important;
    border-color: transparent !important;
}
.news-articles-column .pagination a.cur {
    border: none;
    background: linear-gradient(270deg, #8F00FF 0%, #2538FF 100%) !important;
    color: #fff !important;
    box-shadow: 0 4px 12px rgba(37, 56, 255, .35);
}
.news-articles-column .pagination p {
    margin-right: 0 !important;
    margin-bottom: 0 !important;
    min-width: 40px;
    height: 36px;
    line-height: 36px;
    padding: 0 14px !important;
    font-size: 13px !important;
    color: #bbb !important;
    border: 1px solid #e4e6ef !important;
    background: #fcfcfc !important;
    border-radius: 8px !important;
    text-align: center;
    cursor: default;
}
.news-articles-column .pagination p.pageRemark {
    border: none !important;
    background: none !important;
    min-width: 0;
    height: auto;
    line-height: 1.5;
    color: #666 !important;
}
.news-articles-column .pagination p.pageRemark b {
    background: linear-gradient(270deg, #8F00FF 0%, #2538FF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ---------- 5. 右侧热门推荐侧栏 ---------- */
.news-sidebar-column {
    width: 260px;
    flex-shrink: 0;
}
.sidebar-hot-articles {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    padding: 20px;
    margin-bottom: 30px;
}
.sidebar-section-title {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f4;
}
.sidebar-section-title .hot-icon {
    width: 20px;
    height: 20px;
    margin-right: 8px;
    flex-shrink: 0;
}
.sidebar-section-title h3 {
    font-size: 16px;
    font-weight: 600;
    background: linear-gradient(270deg, #8F00FF 0%, #2538FF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hot-articles-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.hot-article-item {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f4;
}
.hot-article-item:last-child {
    border-bottom: none;
}
.article-number {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
    color: #999;
    flex-shrink: 0;
}
.hot-articles-list li:nth-child(1) .article-number {
    color: #2538FF;
}
.hot-articles-list li:nth-child(2) .article-number {
    color: #2538FF;
    opacity: 0.7;
}
.hot-articles-list li:nth-child(3) .article-number {
    color: #2538FF;
    opacity: 0.4;
}
.hot-article-item .article-title2 {
    flex: 1;
    font-size: 14px;
    color: #1A2233;
    text-decoration: none;
    line-height: 1.4;
    margin: 0;
    padding-right: 6px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    word-break: break-all;
    transition: color .2s;
}
.hot-article-item .article-title2:hover {
    background: linear-gradient(270deg, #8F00FF 0%, #2538FF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hot-article-item .article-date {
    font-size: 12px;
    color: #999;
    margin-left: 10px;
    flex-shrink: 0;
}

/* ---------- 响应式 ---------- */
@media screen and (max-width: 992px) {
    .news-content-wrapper {
        flex-direction: column;
    }
    .news-sidebar-column {
        width: 100%;
    }
    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .news-banner-section {
        padding: 70px 0 50px;
    }
    .news-banner-title h1 {
        font-size: 28px;
    }
}
@media screen and (max-width: 640px) {
    .articles-grid {
        grid-template-columns: 1fr;
    }
    .article-image {
        height: 160px;
    }
    .news-banner-title h1 {
        font-size: 22px;
    }
    .news-banner-section {
        padding: 50px 0 36px;
    }
}
