/* ===== 新闻列表页专属样式 ===== */

/* 头条 */
.featured-article {
    width: 100%;
    background: #fff;
    border-radius: 28px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.02);
    display: flex;
    gap: 32px;
    padding: 28px;
    transition: all 0.3s ease;
    border: 1px solid #ecf3f9;
    position: relative;
    overflow: hidden;
    align-items: stretch;
}
.featured-article::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background: linear-gradient(180deg, #2563eb 0%, #93c5fd 100%);
    border-radius: 28px 0 0 28px;
}
.featured-article:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 30px -12px rgba(0,0,0,0.1);
    border-color: #bfdbfe;
}
.featured-img {
    width: 280px;
    flex-shrink: 0;
    border-radius: 14px;
    overflow: hidden;
    background: #eef2f8;
    position: relative;
}
.featured-img::before {
    content: '';
    display: block;
    padding-top: 66.666%;
}
.featured-img img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.featured-article:hover .featured-img img {
    transform: scale(1.03);
}
.featured-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4px 0;
    min-height: 0;
}
.meta-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #2563eb 0%, #60a5fa 100%);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 5px 16px;
    border-radius: 20px;
    margin-bottom: 16px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    width: fit-content;
    box-shadow: 0 2px 8px rgba(37,99,235,0.3);
}
.meta-tag i {
    font-size: 11px;
    color: rgba(255,255,255,0.85);
}
.featured-body h2 {
    font-size: 28px;
    line-height: 1.4;
    margin-bottom: 14px;
    font-weight: 700;
    color: #1a2a35;
    letter-spacing: -0.3px;
}
.featured-body h2 a {
    color: #1a2a35;
    text-decoration: none;
    transition: color 0.25s ease;
}
.featured-body h2 a:hover {
    color: #2563eb;
}
.featured-body p {
    font-size: 15px;
    color: #556b7e;
    line-height: 1.8;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.featured-meta {
    display: flex;
    gap: 28px;
    font-size: 13px;
    color: #8da3b8;
    padding-top: 16px;
    border-top: 1px solid #f0f4f9;
    flex-wrap: wrap;
}
.featured-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.featured-meta span i {
    color: #b8cadb;
    font-size: 13px;
}
.featured-meta span:first-child i {
    color: #2563eb;
}

/* 新闻列表 */
.news-list-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.news-list-item {
    display: flex;
    gap: 20px;
    background: #fff;
    border-radius: 24px;
    padding: 16px 20px;
    border: 1px solid #ecf3f9;
    transition: all 0.25s;
    align-items: center;
}
.news-list-item:hover {
    border-color: #bfdbfe;
    box-shadow: 0 4px 14px rgba(0,0,0,0.04);
    transform: translateY(-2px);
}
.news-list-item .item-img {
    flex: 0 0 140px;
    width: 140px;
    aspect-ratio: 3/2;
    background: #eef2f8;
    border-radius: 16px;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
}
.news-list-item .item-content {
    flex: 1;
    min-width: 0;
}
.news-list-item .item-content h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 4px;
}
.news-list-item .item-content h4 a {
    text-decoration: none;
    color: #1f2e3a;
    transition: color 0.2s;
}
.news-list-item .item-content h4 a:hover {
    color: #2563eb;
}
.news-list-item .item-content .summary {
    font-size: 0.8rem;
    color: #7a93ac;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}
.news-list-item .item-meta {
    font-size: 0.7rem;
    color: #8da3b8;
    display: flex;
    gap: 16px;
    margin-top: 4px;
    flex-wrap: wrap;
}
.news-list-item .item-meta i {
    margin-right: 2px;
}

/* 分页 */
.news-list-page .pagination-wrapper {
    display: flex;
    justify-content: center;
    padding: 16px 0;
    margin: 16px 0;
}
.news-list-page .pagination {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    padding: 10px 20px;
    border-radius: 80px;
    border: 1px solid #edf2f9;
    flex-wrap: wrap;
    justify-content: center;
}
.news-list-page .pagination a,
.news-list-page .pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 10px;
    border-radius: 40px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #1e3a5f;
    text-decoration: none;
    transition: all 0.2s;
    background: transparent;
    border: 1px solid transparent;
}
.news-list-page .pagination a:hover {
    background: #eff6ff;
    color: #2563eb;
    border-color: #bfdbfe;
}
.news-list-page .pagination a.active-page {
    background: #1e3a5f;
    color: #fff;
    border-color: #1e3a5f;
    box-shadow: 0 2px 6px rgba(30,58,95,0.15);
}

/* ===== 新闻列表页响应式（整合自备份正确版本） ===== */

/* 平板 (≤992px) */
@media (max-width: 992px) {
    .news-layout {
        grid-template-columns: 220px 1fr;
        gap: 32px;
    }
    .featured-img {
        width: 220px;
    }
}

/* 移动端 (≤768px) — 关键：切换为单列布局 */
@media screen and (max-width: 768px) {
    .news-layout {
        grid-template-columns: 1fr !important;
        gap: 24px;
    }
    .news-sidebar,
    .sidebar-categories {
        position: static !important;
        width: 100% !important;
        padding: 20px;
        display: block;
    }
    .news-sidebar .sidebar-block {
        margin-bottom: 28px;
    }
    .news-sidebar .sidebar-block:last-child {
        margin-bottom: 0;
    }

    /* 头条改为纵向 */
    .featured-article {
        flex-direction: column;
        padding: 20px;
        gap: 18px;
        border-radius: 16px;
        align-items: stretch;
    }
    .featured-article::before {
        width: 100%;
        height: 4px;
        border-radius: 16px 16px 0 0;
        background: linear-gradient(90deg, #2563eb, #93c5fd);
        top: 0;
        left: 0;
        right: 0;
    }
    .featured-img {
        width: 100%;
        flex-shrink: 1;
        border-radius: 12px;
    }
    .featured-img::before {
        padding-top: 66.666%;
    }
    .featured-body h2 {
        font-size: 20px;
    }
    .featured-body p {
        font-size: 14px;
        -webkit-line-clamp: 2;
    }
    .featured-meta {
        gap: 16px;
        font-size: 12px;
        padding-top: 12px;
    }
    .meta-tag {
        font-size: 11px;
        padding: 4px 14px;
    }

    /* 列表项改为纵向 */
    .news-list-item {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    .news-list-item .item-img {
        flex: 0 0 auto;
        width: 100%;
        aspect-ratio: 3/2;
    }

    /* 分页缩小 */
    .news-list-page .pagination {
        padding: 8px 12px;
        gap: 6px;
    }
    .news-list-page .pagination a,
    .news-list-page .pagination span {
        min-width: 36px;
        height: 36px;
        font-size: 0.85rem;
        padding: 0 8px;
    }
}

/* 小屏手机 (≤600px) */
@media (max-width: 600px) {
    .featured-img {
        aspect-ratio: 3/2;
        min-height: unset;
    }
    .news-list-page .pagination {
        padding: 4px 8px;
        gap: 4px;
    }
    .news-list-page .pagination a,
    .news-list-page .pagination span {
        min-width: 32px;
        height: 32px;
        font-size: 0.8rem;
        padding: 0 6px;
    }
}

/* 超小屏 (≤480px) */
@media screen and (max-width: 480px) {
    .featured-article {
        padding: 16px;
        border-radius: 14px;
    }
    .featured-img {
        border-radius: 10px;
    }
    .featured-body h2 {
        font-size: 17px;
    }
    .featured-body p {
        font-size: 13px;
        -webkit-line-clamp: 2;
    }
    .featured-meta {
        gap: 12px;
        font-size: 11px;
        flex-wrap: wrap;
    }
    .meta-tag {
        font-size: 10px;
        padding: 3px 12px;
    }
    .news-list-item {
        padding: 12px;
        border-radius: 14px;
    }
    .news-list-item .item-content h4 {
        font-size: 0.88rem;
    }
    .news-list-item .item-content .summary {
        font-size: 0.75rem;
        -webkit-line-clamp: 1;
    }
}
