/* ==================== 资讯组件样式 ==================== */

.news-widget-section {
    padding: 80px 0 100px;
    background: linear-gradient(180deg, #f8f9fc 0%, #ffffff 100%);
}

.news-widget-container {
    display: flex;
    gap: 40px;
    margin-top: 50px;
}
.section-title {
    text-align: center;
}
.section-title .newsh {
    position: relative;
}
.section-title .newsh:before {
    content: '';
    position: absolute;
    width: 492px;
    height: 2px;
    background: rgba(79, 77, 77, 1);
    right: calc(50% + 100px);
    margin-left: 24px;
    top: 50%;
}
.section-title .newsh:after {
    content: '';
    position: absolute;
    width: 492px;
    height: 2px;
    background:  rgba(79, 77, 77, 1);
    top: 50%;
    margin-left: 24px;
}

/* 主新闻卡片 */
.news-featured-card {
    flex: 1.5;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.4s ease;
    display: block;
    text-decoration: none;
    color: inherit;
}

.news-featured-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(138, 109, 177, 0.15);
}

.news-featured-card .news-img-wrap {
    height: 280px;
    overflow: hidden;
}

.news-featured-card .news-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-featured-card:hover .news-img-wrap img {
    transform: scale(1.08);
}

.news-featured-content {
    padding: 25px;
}

.news-featured-title {
    font-size: 20px;
    color: #333;
    margin-bottom: 12px;
    font-weight: 600;
    line-height: 1.4;
}

.news-featured-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.8;
    margin-bottom: 15px;
}

.news-date {
    font-size: 12px;
    color: #999;
    display: inline-block;
    margin-bottom: 10px;
}

.news-read-more {
    font-size: 14px;
    color: #8a6db1;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}

.news-read-more .icon-arrow {
    transition: transform 0.3s ease;
}

.news-featured-card:hover .news-read-more .icon-arrow {
    transform: translateX(5px);
}

/* 资讯列表 */
.news-list {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.news-item {
    display: flex;
    gap: 20px;
    background: #fff;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    align-items: center;
}

.news-item:hover {
    transform: translateX(8px);
    box-shadow: 0 4px 20px rgba(138, 109, 177, 0.12);
}

.news-item-img {
    width: 140px;
    height: 100px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
}

.news-item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.news-item:hover .news-item-img img {
    transform: scale(1.1);
}

.news-item-content {
    flex: 1;
    min-width: 0;
}

.news-item-content h4 {
    font-size: 16px;
    color: #333;
    margin-bottom: 8px;
    font-weight: 600;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.news-item-content .news-date {
    margin-bottom: 6px;
}

.news-item-content p {
    font-size: 13px;
    color: #888;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ==================== 响应式布局 ==================== */

@media screen and (max-width: 1024px) {
    .news-widget-container {
        gap: 30px;
    }
    
    .news-featured-card .news-img-wrap {
        height: 240px;
    }
}

@media screen and (max-width: 768px) {
    .news-widget-section {
        padding: 50px 0 60px;
    }
    
    .news-widget-container {
        flex-direction: column;
        gap: 25px;
    }
    
    .news-featured-card .news-img-wrap {
        height: 200px;
    }
    
    .news-featured-title {
        font-size: 18px;
    }
    
    .news-item-img {
        width: 110px;
        height: 85px;
    }
}

@media screen and (max-width: 480px) {
    .news-featured-card .news-img-wrap {
        height: 180px;
    }
    
    .news-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .news-item-img {
        width: 100%;
        height: 150px;
    }
}

/* ==================== 动画效果 ==================== */

.news-widget-section .news-featured-card,
.news-widget-section .news-item {
    opacity: 0;
    transform: translateY(20px);
    animation: newsFadeIn 0.6s ease forwards;
}

.news-widget-section .news-item:nth-child(1) { animation-delay: 0.1s; }
.news-widget-section .news-item:nth-child(2) { animation-delay: 0.2s; }
.news-widget-section .news-item:nth-child(3) { animation-delay: 0.3s; }

.news-widget-section .news-featured-card {
    animation-delay: 0s;
}

@keyframes newsFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
