/* ============================================
   新闻列表区域 - News List
   ============================================ */

/* 新闻列表容器 */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 1rem 0 2rem;
}

/* 新闻列表项 */
.news-item {
    display: flex;
    gap: 2.5rem;
    padding: 1.5rem;
    background: var(--color-bg-white, #f9f9f9);
    /* border: 1px solid var(--color-border-light, #e5e7eb); */
    /* border-radius: 16px; */
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

/* 悬停效果 */
.news-item:hover {
    transform: translateY(-6px);
    /* box-shadow: 0 20px 50px rgba(25, 67, 151, 0.15); */
    /* border-color: rgba(25, 67, 151, 0.2); */
    border-color: var(--color-primary);
}

.news-item:hover::before {
    transform: scaleY(1);
}

/* 新闻图片 */
.news-img {
    flex-shrink: 0;
    width: 220px;
    height: 150px;
    object-fit: cover;
    /* border-radius: 12px; */
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.news-item:hover .news-img {
    transform: scale(1.03);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

/* 新闻信息区域 */
.news-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    padding: 0.5rem 0;
}

/* 新闻时间 */
.news-time {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 14px;
    color: var(--header-color-accent);
    font-weight: 500;
    margin-bottom: 0.75rem;
    padding: 0.375rem 0.875rem;
    background: linear-gradient(135deg, rgba(25, 67, 151, 0.08) 0%, rgba(59, 109, 216, 0.05) 100%);
    /* border-radius: 20px; */
    width: fit-content;
    transition: all 0.35s ease;
}

/* .news-time::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--header-color-accent-2);
    border-radius: 50%;
    transition: all 0.35s ease;
} */

.news-item:hover .news-time {
    background-color: var(--header-color-accent);
    color: #ffffff;
}

.news-item:hover .news-time::before {
    background: #ffffff;
}

/* 新闻标题 */
.news-h3 {
    font-size: 1.5rem;
    font-weight: 600;
    /* color: var(--datai-color); */
    color: #000;
    line-height: 1.5;
    margin-bottom: 0.75rem;
    transition: color 0.35s ease;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
}

.news-item:hover .news-h3 {
    color: var(--datai-color);
}

/* 新闻描述 */
.news-desc {
    font-size: 1rem;
    color: #000;
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
}

/* ============================================
   入场动画
   ============================================ */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.news-item {
    opacity: 0;
    animation: slideInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.news-item:nth-child(1) {
    animation-delay: 0.05s;
}

.news-item:nth-child(2) {
    animation-delay: 0.1s;
}

.news-item:nth-child(3) {
    animation-delay: 0.15s;
}

.news-item:nth-child(4) {
    animation-delay: 0.2s;
}

.news-item:nth-child(5) {
    animation-delay: 0.25s;
}

.news-item:nth-child(6) {
    animation-delay: 0.3s;
}

.news-item:nth-child(7) {
    animation-delay: 0.35s;
}

.news-item:nth-child(8) {
    animation-delay: 0.4s;
}

.news-item:nth-child(9) {
    animation-delay: 0.45s;
}

.news-item:nth-child(10) {
    animation-delay: 0.5s;
}

/* ============================================
   响应式适配
   ============================================ */

/* 平板设备 */
@media (max-width: 991px) {
    .news-list {
        gap: 1.25rem;
        padding: 0.75rem 0 1.5rem;
    }

    .news-item {
        padding: 1.25rem;
        gap: 1.25rem;
        border-radius: 14px;
    }

    .news-img {
        width: 180px;
        height: 130px;
    }

    .news-h3 {
        font-size: 1.125rem;
    }

    .news-desc {
        font-size: 0.875rem;
        -webkit-line-clamp: 2;
    }
}

/* 移动端 */
@media (max-width: 767px) {
    .news-list {
        gap: 1rem;
        padding: 0.5rem 0 1rem;
    }

    .news-item {
        flex-direction: column;
        padding: 1rem;
        gap: 1rem;
        border-radius: 12px;
    }

    .news-img {
        width: 100%;
        height: 180px;
    }

    .news-info {
        padding: 0;
    }

    .news-time {
        font-size: 0.8125rem;
        margin-bottom: 0.625rem;
    }

    .news-h3 {
        font-size: 1.0625rem;
        margin-bottom: 0.625rem;
    }

    .news-desc {
        font-size: 0.875rem;
        line-height: 1.6;
        -webkit-line-clamp: 2;
    }
}

/* 小屏移动端 */
@media (max-width: 480px) {
    .news-item {
        padding: 0.875rem;
        gap: 0.875rem;
        border-radius: 10px;
    }

    .news-img {
        height: 160px;
        border-radius: 8px;
    }

    .news-time {
        font-size: 0.75rem;
        padding: 0.25rem 0.625rem;
    }

    .news-h3 {
        font-size: 1rem;
    }

    .news-desc {
        font-size: 0.8125rem;
        -webkit-line-clamp: 2;
    }
}

/* ============================================
   空状态提示
   ============================================ */
.news-list:empty::after {
    content: '暂无新闻内容';
    display: block;
    text-align: center;
    padding: 4rem 2rem;
    color: var(--color-text-light, #9ca3af);
    font-size: 1rem;
}