/* home-news.css - 首页新闻展示模块专属样式 */
/* 新增：首页新闻展示模块样式 */
.home-news {
    padding: 100px 0;
    background-color: #fff;
}

.home-news-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 20px;
}

.home-news-header h3 {
    font-size: 28px;
    font-weight: 700;
    color: #1d2129;
}

.home-news-header a {
    color: #165dff;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.home-news-header a:hover {
    color: #0e48d9;
}

.home-news-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.home-news-item {
    background-color: #f9fbff;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.home-news-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(22, 93, 255, 0.1);
}

.home-news-img {
    width: 100%;
    height: 180px;
    overflow: hidden;
}

.home-news-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.home-news-item:hover .home-news-img img {
    transform: scale(1.05);
}

.home-news-content {
    padding: 20px;
}

.home-news-date {
    font-size: 12px;
    color: #999;
    margin-bottom: 8px;
}

.home-news-title {
    font-size: 18px;
    font-weight: 600;
    color: #1d2129;
    margin-bottom: 10px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.home-news-desc {
    font-size: 14px;
    color: #666;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.6;
}

/* 响应式适配（新闻模块） */
@media (max-width: 768px) {
    .home-news-header h3 {
        font-size: 24px;
    }

    .home-news-list {
        grid-template-columns: 1fr;
    }
}