.right-flex1 {
    flex: 1;
    margin-left: 20px;
    padding: 0 20px 0;
}

.news-grid-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto auto; /* 自适应高度 */
    gap: 12px;
    padding: 8px 0;
}

.news-item {
    display: flex;
    flex-direction: column;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    background: #fff;
    overflow: hidden;
}

.news-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.news-item a {
    text-decoration: none;
    color: inherit;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.news-thumb {
    width: 100%;
    height: 120px; /* 固定图片高度 */
    object-fit: cover; /* 保持比例裁剪 */
    transition: transform 0.3s ease;
}

.news-item:hover .news-thumb {
    transform: scale(1.05);
}

.news-title {
    padding: 8px 10px;
    font-size: 13px;
    line-height: 1.3;
    color: #333;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .news-grid-container {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(3, 1fr);
        height: 600px;
    }

    .news-thumb {
        height: 100px;
    }
}

@media (max-width: 480px) {
    .news-grid-container {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(6, 1fr);
        height: 1200px;
    }
}