/* ===================================
   文章卡片 - 增强版 (迭代4)
   =================================== */

.ds-post-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
}

.ds-post-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

/* 缩略图 */
.ds-post-card__thumbnail {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.ds-post-card__thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.ds-post-card:hover .ds-post-card__thumbnail img {
    transform: scale(1.1);
}

.ds-post-card__overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.ds-post-card:hover .ds-post-card__overlay {
    opacity: 1;
}

.ds-post-card__read-time {
    color: #fff;
    font-size: 0.85rem;
    font-weight: 500;
}

/* 内容区 */
.ds-post-card__content {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.ds-post-card__category {
    margin-bottom: 12px;
}

.ds-post-card__category a {
    display: inline-block;
    padding: 6px 14px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none;
}

.ds-post-card__title {
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 12px;
}

.ds-post-card__title a {
    color: #1a202c;
    text-decoration: none;
    transition: color 0.2s ease;
}

.ds-post-card__title a:hover {
    color: #667eea;
}

.ds-post-card__excerpt {
    color: #718096;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Meta信息 */
.ds-post-card__meta {
    display: flex;
    gap: 16px;
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid #e2e8f0;
}

.ds-post-card__meta span {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #718096;
    font-size: 0.85rem;
}

.ds-post-card__meta svg {
    flex-shrink: 0;
}

/* 标签 */
.ds-post-card__tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.ds-post-card__tag {
    padding: 4px 10px;
    background: #f7fafc;
    color: #4a5568;
    font-size: 0.75rem;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.ds-post-card__tag:hover {
    background: #667eea;
    color: #fff;
}

/* 阅读全文按钮 */
.ds-post-card__link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    margin-top: 16px;
    background: #f7fafc;
    color: #4a5568;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.ds-post-card__link:hover {
    background: #667eea;
    color: #fff;
}

.ds-post-card__link svg {
    transition: transform 0.3s ease;
}

.ds-post-card__link:hover svg {
    transform: translateX(4px);
}

/* 响应式 */
@media (max-width: 768px) {
    .ds-post-card__content {
        padding: 16px;
    }

    .ds-post-card__title {
        font-size: 1.15rem;
    }

    .ds-post-card__excerpt {
        font-size: 0.9rem;
    }
}
