* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft YaHei", "微软雅黑", sans-serif;
}

/* 图片从左向右渐入动画 */
@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* 文字从右向左渐入动画 */
@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Banner 样式 */
.banner {
    width: 100%;
    overflow: hidden;
}

.banner img {
    width: 100%;
    object-fit: cover;
}

/* 主体内容样式 */
.news-container {
    width: 1200px;
    margin: 20px auto;
    padding: 0 15px;
}

.news-item {
    display: flex;
    margin-bottom: 30px;
    padding: 20px;
    position: relative;
    cursor: pointer;
}

/* 下划线基础样式 */
.news-item::before {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: #eee;
}

/* 动画下划线 */
.news-item::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #007bff;
    transition: width 0.4s ease-in-out;
}

.news-item:hover::after {
    width: 100%;
}

.news-image {
    flex: 0 0 500px;
    margin-right: 20px;
    overflow: hidden;
    border-radius: 10px;
}

.news-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.4s ease;
    transform-origin: center center;
}

.news-item:hover .news-image img {
    transform: scale(1.05) rotate(2deg);
}

.news-content {
    flex: 1;
}

.news-title {
    font-size: 24px;
    margin-bottom: 10px;
}

.news-title a {
    color: #333;
    text-decoration: none;
    display: inline-block;
    transition: all 0.4s ease;
}

.news-item:hover .news-title a {
    transform: translateX(10px);
    color: #007bff;
}

.news-summary {
    color: #666;
    line-height: 1.6;
}

/* 加载动画 */
.news-item:nth-child(1) .news-image img {
    animation: fadeInLeft 0.8s ease-out;
}

.news-item:nth-child(2) .news-image img {
    animation: fadeInLeft 0.8s ease-out 0.1s;
}

.news-item:nth-child(3) .news-image img {
    animation: fadeInLeft 0.8s ease-out 0.2s;
}

.news-item:nth-child(4) .news-image img {
    animation: fadeInLeft 0.8s ease-out 0.3s;
}

.news-item:nth-child(5) .news-image img {
    animation: fadeInLeft 0.8s ease-out 0.4s;
}

.news-item:nth-child(1) .news-content {
    animation: fadeInRight 0.8s ease-out;
}

.news-item:nth-child(2) .news-content {
    animation: fadeInRight 0.8s ease-out 0.1s;
}

.news-item:nth-child(3) .news-content {
    animation: fadeInRight 0.8s ease-out 0.2s;
}

.news-item:nth-child(4) .news-content {
    animation: fadeInRight 0.8s ease-out 0.3s;
}

.news-item:nth-child(5) .news-content {
    animation: fadeInRight 0.8s ease-out 0.4s;
}

/* 动画优化 */
.news-image img,
.news-title a {
    animation-fill-mode: both;
    will-change: transform;
}

/* 响应式布局 */
@media screen and (max-width: 1200px) {
    .news-container {
        width: 100%;
        max-width: 1200px;
    }
}

@media screen and (max-width: 768px) {
    .news-item {
        flex-direction: column;
    }

    .news-image {
        flex: none;
        margin-right: 0;
        margin-bottom: 15px;
    }

    .news-title {
        font-size: 20px;
    }
}

@media screen and (max-width: 480px) {
    .news-container {
        padding: 0 10px;
    }

    .news-item {
        padding: 15px 0;
    }

    .news-image img {
        height: 180px;
    }

    .news-title {
        font-size: 18px;
    }

    .news-summary {
        font-size: 14px;
    }
}