.zib-post-card-inner {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid #f0f0f0;
    padding: 8px; /* 添加内边距，让内容更紧凑 */
}

/* 夜间模式适配 */
body.dark-mode .zib-post-card-inner {
    background: #2d2d2d;
    box-shadow: 0 2px 12px rgba(0,0,0,0.15);
    border-color: #383838;
}

.zib-post-card-item:hover {
    transform: translateY(-3px);
}

.zib-post-card-item:hover .zib-post-card-inner {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

body.dark-mode .zib-post-card-item:hover .zib-post-card-inner {
    box-shadow: 0 5px 15px rgba(0,0,0,0.25);
}

/* 优化图片容器，减小尺寸并居中 */
.zib-post-card-image {
    position: relative;
    width: 100%;
    height: 120px; /* 减小图片高度 */
    overflow: hidden;
    border-radius: 20px;
    margin-bottom: 8px;
}

.zib-post-card-image a {
    display: block;
    width: 100%;
    height: 100%;
}

.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.4s ease;
}

.zib-post-card-image:hover .card-img {
    transform: scale(1.05);
}

.zib-post-card-badge {
    position: absolute;
    top: 5px;
    left: 5px;
    background-color: #ff4d4f;
    color: white;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 3px;
    z-index: 2;
    font-weight: 500;
}

.zib-post-card-title {
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 6px 0;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.zib-post-card-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.zib-post-card-title a:hover {
    color: #ff4d4f;
}

/* 夜间模式标题 */
body.dark-mode .zib-post-card-title a {
    color: #e0e0e0;
}

body.dark-mode .zib-post-card-title a:hover {
    color: #ff6b6b;
}

/* 调整摘要样式，与图片对齐 */
.zib-post-card-excerpt {
    font-size: 13px;
    color: #666;
    margin: 0 0 8px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.5;
    background-color: #f8f8f8;
    padding: 8px;
    border-radius: 6px;
    flex-grow: 1;
}

/* 夜间模式摘要 */
body.dark-mode .zib-post-card-excerpt {
    color: #bbb;
    background-color: #333;
}

.zib-post-card-meta {
    display: flex;
    align-items: center;
    font-size: 11px;
    color: #999;
    justify-content: space-between;
    padding: 8px 0 0 0;
    border-top: 1px solid #f0f0f0;
    margin-top: auto;
}

/* 夜间模式meta */
body.dark-mode .zib-post-card-meta {
    color: #888;
    border-top-color: #444;
}

.zib-post-card-author {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

/* 缩小头像尺寸 */
.author-avatar {
    width: 18px !important;
    height: 18px !important;
    border-radius: 50%;
    margin-right: 4px;
    object-fit: cover;
}

.author-name {
    color: #666;
    font-size: 11px;
    max-width: 70px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.dark-mode .author-name {
    color: #aaa;
}

.zib-post-card-date {
    color: #999;
    font-size: 11px;
    margin: 0 6px;
}

.zib-post-card-stats {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.zib-post-card-like {
    color: #ff4d4f;
    font-size: 12px;
    transition: all 0.3s;
}

.zib-post-card-like:hover {
    transform: scale(1.1);
}

.zib-post-card-category {
    color: #666;
    background: #f5f5f5;
    padding: 1px 6px;
    border-radius: 3px;
    font-size: 10px;
}

/* 夜间模式分类 */
body.dark-mode .zib-post-card-category {
    color: #bbb;
    background: #444;
}

.zib-post-card-empty {
    text-align: center;
    padding: 30px;
    color: #999;
    font-size: 14px;
}

/* 响应式调整 */
@media (max-width: 767px) {
    .zib-post-card-title {
        font-size: 14px;
    }
    
    .zib-post-card-excerpt {
        font-size: 12px;
    }
    
    .zib-post-card-image {
        height: 110px;
    }
}

@media (max-width: 480px) {
    .zib-post-card-image {
        height: 140px;
    }
    
    .zib-post-card-item {
        margin-bottom: 15px;
    }
}
/* 在你的CSS文件末尾添加 */

/* 平板布局优化 */
@media (min-width: 768px) and (max-width: 992px) {
    .zib-post-card-image {
        height: 100px;
    }
    
    .zib-post-card-title {
        font-size: 14px;
    }
    
    .zib-post-card-excerpt {
        font-size: 12px;
    }
}

/* 手机端布局优化 */
@media (max-width: 767px) {
    .zib-post-card-image {
        height: 90px;
    }
    
    .zib-post-card-title {
        font-size: 13px;
    }
    
    .zib-post-card-excerpt {
        font-size: 11px;
        -webkit-line-clamp: 2;
        max-height: 35px;
        padding: 6px;
    }
    
    /* 强制摘要两行 */
    .zib-post-card-excerpt {
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
    }
}

/* 小屏手机优化 */
@media (max-width: 480px) {
    .zib-post-card-image {
        height: 80px;
    }
}