/* ==================== 光伏资讯模块样式 ==================== */

.pv-news-section {
    padding: 100px 24px;
    background: #ffffff;
    position: relative;
    overflow: hidden;
}

.pv-news-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, rgba(11, 110, 253, 0.05) 0%, rgba(11, 110, 253, 0.02) 100%);
    border-radius: 50%;
    transform: translate(30%, -30%);
    z-index: 0;
}

.pv-news-section .container {
    position: relative;
    z-index: 1;
}

.pv-news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

.pv-news-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.pv-news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

.pv-news-card-image-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 60%;
    overflow: hidden;
    background: #f8f9fa;
}

.pv-news-card-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.pv-news-card:hover .pv-news-card-image {
    transform: scale(1.1);
}

.pv-news-card-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.3) 100%);
    display: flex;
    align-items: flex-end;
    padding: 16px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.pv-news-card:hover .pv-news-card-image-overlay {
    opacity: 1;
}

.pv-news-card-likes {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 500;
}

.pv-news-card-likes span {
    font-size: 1rem;
}

.pv-news-card-content {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.pv-news-card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #0f1f2f;
    margin-bottom: 12px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 3em;
}

.pv-news-card-excerpt {
    font-size: 0.95rem;
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 16px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pv-news-card-date {
    font-size: 0.85rem;
    color: #adb5bd;
    display: flex;
    align-items: center;
    gap: 6px;
}

.pv-news-card-date::before {
    content: '📅';
    font-size: 0.9rem;
}

/* 动画效果 */
.animate-fade-in {
    opacity: 0;
    animation: fadeIn 0.6s ease forwards;
}

.animate-slide-up {
    opacity: 0;
    transform: translateY(30px);
    animation: slideUp 0.6s ease forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .pv-news-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
    
    .pv-news-section {
        padding: 80px 20px;
    }
}

@media (max-width: 768px) {
    .pv-news-section {
        padding: 60px 16px;
    }
    
    .pv-news-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .pv-news-card-content {
        padding: 20px;
    }
    
    .pv-news-card-title {
        font-size: 1rem;
    }
    
    .pv-news-card-excerpt {
        font-size: 0.9rem;
    }
}

