
/******************************************************************************/
.news_xytzg {
    /*background-image: url("../image/about-us-bg-icon.png");*/
    background-color: #ffffff;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    position: sticky;
}

/* 自定义标签按钮样式 */
.nav-custom .nav-link {
    background-color: #000;
    color: white;
    border: none;
    border-radius: 0;
    margin: 0 2px;
    transition: background-color 0.3s;
}

.nav-custom .nav-link:hover {
    background-color: #ff0000;
}

.nav-custom .nav-link.active {
    background-color: #ff0000;
}

.card-hover {
    transition: all 0.3s ease;
}
.card-hover:hover {
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    transform: translateY(-5px);
}
.date-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background-color: #ef4444;
    color: white;
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 3px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    white-space: nowrap;
    z-index: 10;
}
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.news-image-container {
    position: relative;
    overflow: hidden;
    height: 160px;
}
.news-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease; /* 添加过渡效果 */
}

@media (max-width:575.98px) {
    .news-image-container {
        position: relative;
        overflow: hidden;
        height: 100px;
    }
    .news-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.5s ease; /* 添加过渡效果 */
    }
}

.card-content {
    padding: 0.25rem;
}
.news-title {
    margin-top: 0.75rem; height:39px; overflow-y: hidden; font-size:17px; font-weight: bold;
}

.news-title {
    color: #333333; /* 默认黑色 */
    transition: color 0.3s; /* 平滑过渡效果 */
}
a:hover .news-title {
    color: #ff0000; /* 鼠标悬停时红色 */
}
a {
    text-decoration: none; /* 去除下划线 */
}

/* 鼠标悬停时图片放大 */
.news-image-container:hover .news-image {
    transform: scale(1.08);
}