.home-news-section {
    padding: 50px 0;
    background: #f5f5f5;
}

.home-news-section .w1200 {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 标题 */
.home-news-section .section-title {
    text-align: center;
    margin-bottom: 15px;
}

.home-news-section .section-title::after {
    display: none;
}

.home-news-section .section-title span {
    font-size: 32px;
    color: #333333;
    font-weight: bold;
    position: relative;
    display: block;
    padding-bottom: 18px;
}

.home-news-section .section-title span::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: #0066cc;
}

.home-news-section .section-title p {
    font-size: 14px;
    color: #666666;
    margin-top: 18px;
    position: relative;
    display: block;
    padding-bottom: 20px;
}

.home-news-section .section-title p::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: #0066cc;
}

/* 分类标签 */
.home-news-section .news-tabs {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.home-news-section .news-tab {
    padding: 12px 36px;
    border: 1px solid #e5e5e5;
    background: #fff;
    color: #666666;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
    border-radius: 0;
}

.home-news-section .news-tab:hover,
.home-news-section .news-tab.active {
    background: #0066cc;
    border-color: #0066cc;
    color: #fff;
}

/* ========== 主体：左大卡 + 右轮播 ========== */
.home-news-section .news-main-wrap {
    display: flex;
    gap: 24px;
    align-items: flex-start;   /* 不强行等高，避免左侧被拉长 */
}

/* ------- 左侧：最新文章大卡 ------- */
.home-news-section .news-featured {
    flex: 0 0 calc(50% - 12px);
    background: #fff;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    transition: all 0.3s;
    overflow: hidden;
    position: relative;
    border-radius: 4px;
}

.home-news-section .news-featured:hover {
    box-shadow: 0 8px 30px rgba(0, 102, 204, 0.15);
    transform: translateY(-3px);
}

.home-news-section .news-featured-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: #e8eef6 url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 220"><rect fill="%23e8eef6" width="400" height="220"/><g fill="%23c8d4e3"><rect x="140" y="50" width="120" height="100" rx="6"/><circle cx="168" cy="80" r="16"/><polygon points="150,130 200,95 250,130"/></g></svg>') center/cover no-repeat;
    flex-shrink: 0;
}

.home-news-section .news-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s;
}

.home-news-section .news-featured:hover .news-featured-image img {
    transform: scale(1.05);
}

.home-news-section .news-featured-body {
    padding: 16px 18px 18px;
    display: flex;
    gap: 14px;
}

.home-news-section .news-featured-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-width: 70px;
    padding-top: 2px;
    padding-right: 12px;
    border-left: 3px solid #0066cc;
    padding-left: 10px;
}

.home-news-section .news-featured-date .day {
    font-size: 40px;
    font-weight: bold;
    color: #0066cc;
    line-height: 1;
}

.home-news-section .news-featured-date .month {
    font-size: 13px;
    color: #888888;
    margin-top: 5px;
}

.home-news-section .news-featured-text {
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.home-news-section .news-featured-title {
    font-size: 18px;
    color: #333333;
    font-weight: bold;
    margin: 0 0 8px 0;
    line-height: 1.4;
    transition: color 0.3s;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.home-news-section .news-featured:hover .news-featured-title {
    color: #0066cc;
}

.home-news-section .news-featured-excerpt {
    font-size: 13px;
    color: #888888;
    line-height: 1.6;
    margin: 0 0 10px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.home-news-section .news-featured-more {
    font-size: 13px;
    color: #0066cc;
    font-weight: 500;
    transition: letter-spacing 0.3s;
    align-self: flex-start;
}

.home-news-section .news-featured:hover .news-featured-more {
    letter-spacing: 1px;
}

/* ------- 右侧：垂直轮播 ------- */
.home-news-section .news-carousel-wrap {
    flex: 0 0 calc(50% - 12px);
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.home-news-section .news-carousel-viewport {
    flex: 0 0 auto;
    overflow: hidden;
    position: relative;
    height: 360px;            /* 显示约3条，保留滚动感 */
}

.home-news-section .news-carousel-track {
    display: flex;
    flex-direction: column;
    will-change: transform;
}

.news-carousel-item {
    display: flex;
    background: #fff;
    padding: 14px 16px;
    margin-bottom: 12px;
    text-decoration: none;
    transition: all 0.3s;
    box-sizing: border-box;
    flex-shrink: 0;
    min-height: 92px;
    border-radius: 4px;
    align-items: center;
}

.news-carousel-item:hover {
    box-shadow: 0 5px 20px rgba(0, 102, 204, 0.12);
    transform: translateX(4px);
}

.news-carousel-item:hover .news-carousel-title {
    color: #0066cc;
}

.news-carousel-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    padding-right: 10px;
    border-left: 3px solid #e0e6ef;
    margin-right: 10px;
    padding-left: 8px;
    flex-shrink: 0;
}

.news-carousel-date .day {
    font-size: 32px;
    font-weight: bold;
    color: #333333;
    line-height: 1;
}

.news-carousel-date .month {
    font-size: 11px;
    color: #888888;
    margin-top: 4px;
}

.news-carousel-content {
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.news-carousel-title {
    font-size: 15px;
    color: #333333;
    font-weight: bold;
    margin: 0 0 6px 0;
    line-height: 1.35;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color 0.3s;
}

.news-carousel-excerpt {
    font-size: 12px;
    color: #888888;
    line-height: 1.55;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ========== 响应式 ========== */
@media (max-width: 992px) {
    .home-news-section .news-main-wrap {
        flex-direction: column;
        gap: 18px;
    }

    .home-news-section .news-featured,
    .home-news-section .news-carousel-wrap {
        flex: 0 0 100%;
        width: 100%;
    }

    .home-news-section .news-featured-image {
        height: 200px;
    }

    .home-news-section .news-carousel-viewport {
        height: 340px;
    }
}

@media (max-width: 768px) {
    .home-news-section {
        padding: 40px 0;
    }

    .home-news-section .section-title {
        margin-bottom: 20px;
        padding: 0 15px;
    }

    .home-news-section .section-title span {
        font-size: 24px;
    }

    .home-news-section .section-title p {
        font-size: 13px;
    }

    .home-news-section .news-tabs {
        gap: 10px;
        padding: 0 15px;
        margin-bottom: 20px;
        margin-top: 30px;
    }

    .home-news-section .news-tab {
        padding: 8px 16px;
        font-size: 13px;
    }

    .home-news-section .news-main-wrap {
        padding: 0 15px;
    }

    .home-news-section .news-featured-image {
        height: 180px;
    }

    .home-news-section .news-featured-body {
        padding: 14px 15px 15px;
        gap: 12px;
    }

    .home-news-section .news-featured-date {
        min-width: 54px;
        padding-right: 10px;
        padding-left: 8px;
    }

    .home-news-section .news-featured-date .day {
        font-size: 32px;
    }

    .home-news-section .news-featured-date .month {
        font-size: 11px;
    }

    .home-news-section .news-featured-title {
        font-size: 16px;
    }

    .home-news-section .news-featured-excerpt {
        font-size: 13px;
        -webkit-line-clamp: 2;
    }

    .home-news-section .news-carousel-viewport {
        height: 320px;
    }

    .news-carousel-item {
        padding: 12px 14px;
        min-height: auto;
        margin-bottom: 10px;
    }

    .news-carousel-date {
        min-width: 50px;
        padding-right: 10px;
        padding-left: 8px;
        margin-right: 10px;
    }

    .news-carousel-date .day {
        font-size: 28px;
    }

    .news-carousel-date .month {
        font-size: 11px;
    }

    .news-carousel-title {
        font-size: 14px;
        white-space: normal;
        display: -webkit-box;
        -webkit-line-clamp: 1;
        -webkit-box-orient: vertical;
    }

    .news-carousel-excerpt {
        font-size: 12px;
        -webkit-line-clamp: 2;
    }
}

@media (max-width: 480px) {
    .home-news-section .section-title span {
        font-size: 20px;
    }

    .home-news-section .news-featured-image {
        height: 160px;
    }

    .home-news-section .news-featured-date {
        min-width: 46px;
        padding-right: 8px;
        padding-left: 6px;
    }

    .home-news-section .news-featured-date .day {
        font-size: 26px;
    }

    .home-news-section .news-featured-title {
        font-size: 15px;
    }

    .home-news-section .news-featured-excerpt {
        font-size: 12px;
        -webkit-line-clamp: 2;
    }

    .home-news-section .news-carousel-viewport {
        height: 300px;
    }

    .news-carousel-date {
        min-width: 44px;
        padding-right: 8px;
        padding-left: 6px;
        margin-right: 8px;
    }

    .news-carousel-date .day {
        font-size: 24px;
    }

    .news-carousel-title {
        font-size: 13px;
    }

    .news-carousel-excerpt {
        font-size: 12px;
    }

    .home-news-section .news-tab {
        padding: 6px 12px;
        font-size: 12px;
    }
}

/* AOS动画 */
[data-aos] {
    opacity: 0;
    transition-property: opacity, transform;
    transition-duration: 0.8s;
    transition-timing-function: ease;
}

[data-aos].aos-animate {
    opacity: 1;
}

[data-aos="fade-up"] {
    transform: translateY(50px);
}

[data-aos="fade-up"].aos-animate {
    transform: translateY(0);
}
