/* ============ AI动态-新闻列表页 ============ */

.news-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 32px;
}

.news-item-card {
    display: flex;
    gap: 18px;
    padding: 20px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    transition: all 0.25s ease;
    text-decoration: none;
    color: inherit;
    border: 1px solid #f0f1f3;
}

.news-item-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(99, 102, 241, 0.1);
    border-color: #c7d2fe;
}

/* 缩略图 */
.news-item-thumb {
    width: 160px;
    height: 110px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    background: linear-gradient(135deg, #e0e7ff, #c7d2fe);
    display: flex;
    align-items: center;
    justify-content: center;
}

.news-item-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-item-thumb-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
}

.news-item-thumb-fallback svg {
    width: 36px;
    height: 36px;
    opacity: 0.7;
}

/* 内容区 */
.news-item-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.news-item-title {
    font-size: 17px;
    font-weight: 600;
    color: #1f2937;
    line-height: 1.5;
    margin-bottom: 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    transition: color 0.2s;
}

.news-item-card:hover .news-item-title {
    color: #6366f1;
}

.news-item-desc {
    font-size: 13px;
    color: #6b7280;
    line-height: 1.6;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    margin-bottom: 12px;
}

.news-item-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 12px;
    color: #9ca3af;
}

.news-item-meta .meta-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.news-item-meta .meta-item svg {
    width: 12px;
    height: 12px;
}

.news-item-tag {
    display: inline-flex;
    align-items: center;
    padding: 2px 10px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(139, 92, 246, 0.1));
    color: #6366f1;
    font-size: 11px;
    font-weight: 500;
    border-radius: 4px;
}

/* 无图卡片变体 */
.news-item-card.no-thumb {
    padding: 16px 20px;
}

.news-item-card.no-thumb .news-item-thumb {
    display: none;
}

/* 响应式 */
@media (max-width: 768px) {
    .news-item-card {
        flex-direction: column;
        gap: 12px;
    }

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

    .news-item-title {
        font-size: 15px;
    }
}
