/* Banner样式 */
.dynamics-banner {
    height: 400px;
    background: url('/image/Welfare/banner.png') no-repeat center;
    background-size: cover;
    position: relative;
    margin-top: 80px;     
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.dynamics-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
}

.banner-content {
    position: relative;
    z-index: 1;
    color: #fff;
}

.banner-content h1 {
    font-size: 48px;
    font-weight: 600;
    margin-bottom: 20px;
}

.banner-content p {
    font-size: 24px;
    opacity: 0.9;
}

/* 列表部分 */
.dynamics-list {
    padding: 80px 0;
    background: #F8F8F8;
}

.container {
    max-width: 1920px;
    margin: 0 auto;
    padding: 0 360px;
}

/* 左右布局部分 */
.dynamics-row {
    display: flex;
    gap: 40px;
    margin-bottom: 40px;
}

/* 左侧大图 */
.dynamics-featured {
    width: 960px;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
}

.featured-image {
    width: 100%;
    height: 500px;
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: #fff;
    max-width: 100%;
}

.featured-date {
    font-size: 18px;
    margin-bottom: 10px;
}

.featured-title {
    font-size: 26px;
    font-weight: 400;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.5;
}

/* 右侧新闻列表 */
.dynamics-grid {
    width: 554.5px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.dynamics-item {
    display: flex;
    align-items: center;
    padding: 20px;
    border-radius: 8px;
    transition: all 0.3s ease;
    height: calc((500px - 45px) / 4);
}

.dynamics-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    width: 100px;
    height: 100px;
    background: #F8F8F8;
    border-radius: 20px;
}

.date-day {
    font-weight: 500;
    font-size: 24px;
    color: #333333;
}

.date-year {
    font-weight: 500;
    font-size: 24px;
    color: #333333;
}

.dynamics-content {
    flex: 1;
    /* height: 100%; */
    padding-bottom: 16px;
    border-bottom: 1px solid #E0E0E0;
}

.dynamics-title {
    font-size: 16px;
    font-weight: 400;
    color: #333;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.5;
}

.dynamics-dates {
    font-weight: 300;
    font-size: 18px;
    color: #999999;

}
.dynamics-contentss{
    font-size: 16px;
    font-weight: 400;
    color: #666666;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.5;
}

/* 网格布局部分 */
.media-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 60px;
}

.media-item {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.media-item:hover {
    transform: translateY(-5px);
}

.media-image {
    width: 100%;
    height: 240px;
    border-radius: 20px;
    overflow: hidden;
}

.media-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.media-content {
    padding: 20px;
}

.media-title {
    font-size: 18px;
    font-weight: 500;
    color: #333;
    margin: 0 0 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.5;
}

.media-date {
    font-size: 16px;
    color: #999;
}

/* 响应式设计 */
@media (max-width: 1920px) {
    .container {
        padding: 0 200px;
    }

    .dynamics-featured {
        width: 800px;
    }

    .dynamics-grid {
        width: 500px;
    }
}

@media (max-width: 1680px) {
    .container {
        padding: 0 200px;
    }

    .dynamics-featured {
        width: 700px;
    }

    .dynamics-grid {
        width: 450px;
    }
}

@media (max-width: 1440px) {
    .container {
        padding: 0 180px;
    }

    .media-grid {
        gap: 20px;
    }

    .media-image {
        height: 200px;
    }
}

@media (max-width: 1200px) {
    .container {
        padding: 0 100px;
    }

    .media-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .media-image {
        height: 180px;
    }
}

@media (max-width: 992px) {
    .container {
        padding: 0 60px;
    }

    .media-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 40px;
    }

    .dynamics-list {
        padding: 40px 0;
    }

    .dynamics-banner {
        height: 300px;
        margin-top: 60px;
    }

    .banner-content h1 {
        font-size: 36px;
    }

    .banner-content p {
        font-size: 20px;
    }

    /* 上部分布局调整 */
    .dynamics-row {
        flex-direction: column;
        gap: 20px;
    }

    .dynamics-featured {
        width: 100%;
    }

    .featured-image {
        height: 200px;
    }

    .dynamics-grid {
        width: 100%;
    }

    .dynamics-item {
        height: auto;
        padding: 15px;
    }

    .dynamics-title {
        font-size: 14px;
    }

    .dynamics-dates {
        font-size: 14px;
    }

    .dynamics-contentss {
        font-size: 14px;
        -webkit-line-clamp: 2;
    }

    /* 下部分卡片列表调整 */
    .card-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .card-item {
        margin-bottom: 15px;
    }

    .card-title {
        font-size: 16px;
    }

    .card-desc {
        font-size: 14px;
    }

    .card-date {
        font-size: 14px;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 20px;
    }

    .media-grid {
        grid-template-columns: 1fr;
    }

    .media-image {
        height: 200px;
    }

    .media-title {
        font-size: 16px;
    }

    .media-date {
        font-size: 14px;
    }

    .dynamics-banner {
        height: 200px;
    }

    .banner-content h1 {
        font-size: 28px;
    }

    .banner-content p {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 20px;
    }

    .dynamics-banner {
        height: 200px;
    }

    .banner-content h1 {
        font-size: 24px;
    }

    .banner-content p {
        font-size: 16px;
    }

    .dynamics-list {
        padding: 20px 0;
    }

    .featured-image {
        height: 160px;
    }

    .dynamics-item {
        padding: 10px;
    }

    .dynamics-content {
        padding-bottom: 10px;
    }
}

/* 卡片列表样式 */
.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 60px;
}

.card-item {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.card-item:hover {
    transform: translateY(-5px);
}

.card-title {
    height: 89px;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.5;
    margin-bottom: 10px;
    padding: 20px 20px 0;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    word-break: break-all;
    max-height: 74px;
}

.card-image {
    width: 100%;
    height: 240px;
    overflow: hidden;
    border-radius: 20px;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-desc {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
    padding: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-date {
    font-size: 18px;
    color: #999;
    padding: 0 20px 20px;
}

/* 响应式调整 */
@media (max-width: 1440px) {
    .card-grid {
        gap: 20px;
    }

    .card-image {
        height: 200px;
    }
}

@media (max-width: 1200px) {
    .card-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .card-grid {
        grid-template-columns: 1fr;
        margin-top: 40px;
        gap: 15px;
    }

    .card-title {
        font-size: 16px;
        padding: 15px 15px 10px;
        min-height: 48px;  /* 调整为新的字体大小 (16px * 1.5 * 2) */
    }

    .card-image {
        height: 180px;
    }

    .card-desc {
        font-size: 14px;
        padding: 15px;
    }

    .card-date {
        font-size: 14px;
        padding: 0 15px 15px;
    }
}