/* 新闻列表容器 */
.news-list-container {
    width: 100%;
}

/* 新闻列表项 - 卡片式布局 */
.news-items {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 30px;
}

.news-card {
    display: flex;
    gap: 20px;
    /* background: #ffffff; */
    border-radius: 16px;
    padding: 20px;
    transition: all 0.3s ease;
    /* border: 1px solid #eef2f6; */
    cursor: pointer;
}

.news-card:hover {
    transform: translateY(-2px);
    border-color: #2c7da0;
}

/* 左侧图片区域 */
.news-card-image {
    flex-shrink: 0;
    width: 200px;
    height: 140px;
    border-radius: 12px;
    overflow: hidden;
    background: #f0f2f5;
}

.news-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-card:hover .news-card-image img {
    transform: scale(1.05);
}

/* 右侧内容区域 */
.news-card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.news-card-title {
    font-size: 18px;
    font-weight: 600;
    color: #1a2c3e;
    line-height: 1.4;
    text-decoration: none;
    transition: color 0.2s;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-title:hover {
    color: #2c7da0;
}

.news-card-summary {
    font-size: 14px;
    color: #5a6874;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-date {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #8a9bb0;
}

.news-card-date::before {
    content: '📅';
    font-size: 12px;
}

/* 加载骨架屏 */
.news-loading {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.loading-skeleton {
    display: flex;
    gap: 20px;
    background: #ffffff;
    border-radius: 16px;
    padding: 20px;
    border: 1px solid #eef2f6;
}

.loading-skeleton::before {
    content: '';
    flex-shrink: 0;
    width: 200px;
    height: 140px;
    border-radius: 12px;
    background: linear-gradient(110deg, #eceff3 8%, #f5f7fa 18%, #eceff3 33%);
    background-size: 200% 100%;
    animation: shimmer 1.2s linear infinite;
}

.loading-skeleton::after {
    content: '';
    flex: 1;
    height: 140px;
    border-radius: 12px;
    background: linear-gradient(110deg, #eceff3 8%, #f5f7fa 18%, #eceff3 33%);
    background-size: 200% 100%;
    animation: shimmer 1.2s linear infinite;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

/* 无数据状态 */
.news-empty {
    text-align: center;
    padding: 60px 20px;
    color: #8a9bb0;
    font-size: 14px;
    background: #fafcff;
    border-radius: 16px;
}

/* 分页组件样式 */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
    padding: 20px 0;
    flex-wrap: wrap;
}

.page-btn {
    padding: 8px 16px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #4a5b6e;
    cursor: pointer;
    transition: all 0.2s;
}

.page-btn:hover:not(:disabled) {
    background: #2c7da0;
    border-color: #2c7da0;
    color: #ffffff;
}

.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-numbers {
    display: flex;
    gap: 8px;
}

.page-number {
    min-width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 8px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #4a5b6e;
    cursor: pointer;
    transition: all 0.2s;
}

.page-number:hover {
    background: #eef3fc;
    border-color: #2c7da0;
    color: #2c7da0;
}

.page-number.active {
    background: #2c7da0;
    border-color: #2c7da0;
    color: #ffffff;
}

/* 响应式 */
@media (max-width: 768px) {
    .news-card {
        flex-direction: column;
        padding: 16px;
    }

    .news-card-image {
        width: 100%;
        height: 180px;
    }

    .news-card-title {
        font-size: 16px;
    }

    .news-card-summary {
        font-size: 13px;
        -webkit-line-clamp: 3;
    }

    .loading-skeleton {
        flex-direction: column;
    }

    .loading-skeleton::before {
        width: 100%;
        height: 180px;
    }

    .pagination {
        gap: 8px;
    }

    .page-btn {
        padding: 6px 12px;
        font-size: 12px;
    }

    .page-number {
        min-width: 34px;
        height: 34px;
        font-size: 12px;
    }
}