/* 新闻资讯页面专用样式 */

/* 新闻卡片样式 */
.news-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.news-image {
    aspect-ratio: 16/9;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-card:hover .news-image {
    transform: scale(1.05);
}

/* 新闻分类标签 */
.news-category {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.category-breaking {
    background: #fef2f2;
    color: #dc2626;
}

.category-politics {
    background: #eff6ff;
    color: #2563eb;
}

.category-economy {
    background: #f0fdf4;
    color: #16a34a;
}

.category-technology {
    background: #faf5ff;
    color: #9333ea;
}

.category-sports {
    background: #fff7ed;
    color: #ea580c;
}

/* 新闻标题样式 */
.news-title {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
    color: #1f2937;
    transition: color 0.2s ease;
}

.news-card:hover .news-title {
    color: #2563eb;
}

/* 新闻摘要样式 */
.news-excerpt {
    color: #6b7280;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 新闻元信息样式 */
.news-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    color: #9ca3af;
    font-size: 14px;
}

.news-meta .author {
    font-weight: 500;
    color: #6b7280;
}

.news-meta .date {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* 热门新闻样式 */
.hot-news {
    position: relative;
    background: linear-gradient(135deg, #fef3c7 0%, #fed7a1 100%);
    border-left: 4px solid #f59e0b;
}

.hot-news::before {
    content: '🔥';
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: 18px;
}

/* 置顶新闻样式 */
.pinned-news {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    border-left: 4px solid #3b82f6;
}

.pinned-news::before {
    content: '📌';
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: 16px;
}

/* 新闻列表样式 */
.news-list {
    display: grid;
    gap: 24px;
}

.news-item {
    display: flex;
    gap: 16px;
    padding: 16px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
}

.news-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.news-item-image {
    width: 120px;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

.news-item-content {
    flex: 1;
}

.news-item-title {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 8px;
    color: #1f2937;
}

.news-item-excerpt {
    color: #6b7280;
    font-size: 14px;
    line-height: 1.4;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 分页样式 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 32px;
}

.pagination a {
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
    color: #6b7280;
    text-decoration: none;
    transition: all 0.2s ease;
}

.pagination a:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.pagination .active {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .news-item {
        flex-direction: column;
        gap: 12px;
    }
    
    .news-item-image {
        width: 100%;
        height: 160px;
    }
    
    .news-card {
        margin-bottom: 16px;
    }
}