.publish-time {
    display: flex;
    align-items: center;
    font-size: 12px;
    color: var(--text-color-light);
    opacity: 0.8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: right;
}


/* 交互样式 */
.action_text {
    color: var(--text-secondary);
    font-size: 14px;
}

/* 点赞 */
.like-btn {
    display: flex;
    flex-direction: row;
    align-items: center;
    cursor: pointer;
    background: none;
    border: none;
    position: relative;
    transition: all 0.3s ease;
    gap: 2px;
}

/* 评论 */
.cmt-btn {
    display: flex;
    flex-direction: row;
    align-items: center;
    background: none;
    border: none;
    position: relative;
    transition: all 0.3s ease;
    gap: 2px;
}

.cmt-btn:hover{
    cursor: pointer;
}

/* 查看 */
.view-btn {
    display: flex;
    flex-direction: row;
    align-items: center;
    background: none;
    border: none;
    position: relative;
    transition: all 0.3s ease;
    gap: 2px;
}


/* 信息流卡片基础样式 */
.feed-item {
    display: flex;
    flex-direction: column;
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 10px 20px 5px 20px;
    box-shadow: 0 2px 8px var(--shadow-color);
    transition: all 0.3s ease;
    min-height: 200px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* 触发动画的类名 */
.feed-item.active {
    opacity: 1;
    transform: translateY(0);
}

.feed-item:nth-child(odd) {
    transform: translateX(-30px);
}

.feed-item:nth-child(even) {
    transform: translateX(30px);
}

.feed-item.active {
    transform: translateX(0);
}

.feed-item:hover {
    box-shadow: 0 4px 12px var(--shadow-color);
}

.feed-header {
    width: 100%;
    display: flex;
    flex-direction: column;
}


.feed-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-color);
    line-height: 1.4;
    max-height: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.feed-body {
    width: 100%;
    font-size: 15px;
    color: var(--text-primary);
    line-height: 1.6;
    opacity: 0.8;
    max-height: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.feed-footer {
    height: 40px;
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

.feed-actions {
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    gap: 10px;
    align-items: center;
}

.feed-actions>a {
    font-size: 14px;
    color: var(--text-primary);
    opacity: 0.8;
    font-weight: 600;
}

.feed-actions>a:hover {
    color: var(--primary-color);
}

.feed-images {
    width: 100%;
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.feed-images>img:hover {
    transform: scale(1.02);
}

/* 图片基础样式 */
.card-img {
    border-radius: 10px;
    flex: 1;
    /* 等分剩余空间 */
    min-width: 0;
    /* 防止内容溢出 */
    aspect-ratio: 16/9;
    /* 统一比例 */
    object-fit: cover;
    /* 填充方式 */

    /* 加载过渡效果 */
    opacity: 1;
    transform: scale(0.98);
    transition: all 0.4s ease;
    /* background: #F7F3E3 url('placeholder.svg') no-repeat center; */
    background-size: 10%;
    /* 占位背景色 */
}

/* 图片加载完成后的状态 */
.card-img.loaded {
    opacity: 1;
    transform: scale(1);
    background: transparent;
    /* 移除占位背景 */
}

/* 处理1-3张的宽度分配 */
.card-img:nth-last-child(n+4),
/* 当有4张图时换行 */
.card-img:nth-last-child(n+4)~.card-img {
    flex: 1 0 33%;
    /* 基础宽度33% */
}

/* 图片数量检测（1-3张时等分） */
.card-img:first-child:nth-last-child(1) {
    flex-basis: 100%;
}

.card-img:first-child:nth-last-child(2),
.card-img:first-child:nth-last-child(2)~.card-img {
    flex-basis: calc(50% - 4px);
}

.card-img:first-child:nth-last-child(3),
.card-img:first-child:nth-last-child(3)~.card-img {
    flex-basis: calc(33.33% - 6px);
}

/* 旧浏览器兼容 */
@supports not (aspect-ratio: 16/9) {
    .card-img::before {
        content: '';
        display: block;
        padding-top: 56.25%;
        /* 16:9比例 */
    }
}

.feed-tags {
    flex-wrap: wrap;
    max-width: 40vw;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    margin-top: 10px;
    height: 28px;
}

.tag {
    padding: 6px 12px;
    background-color: var(--bg-color);
    border-radius: 5px;
    font-size: 12px;
    color: var(--primary-color);
    font-weight: 500;
    transition: all 0.2s ease;
}

.tag:hover {
    background-color: var(--primary-color);
    color: var(--card-bg);
}