.posts-item.style-post-capsule,
.posts-item.style-sites-capsule {
    flex-direction: row;
    align-items: stretch;
    padding: 0 !important;
    overflow: hidden;
    border-radius: 20px;
    min-height: 0;
    background: var(--main-bg-color);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
}
/* 文章卡片整体 4:1 */
.posts-item.style-post-capsule {
    aspect-ratio: 4 / 1;
}
.posts-item.style-sites-capsule {
    aspect-ratio: 5 / 1;
}
.posts-item.style-post-capsule:hover,
.posts-item.style-sites-capsule:hover {
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}
.posts-item.style-post-capsule .item-header,
.posts-item.style-sites-capsule .item-header {
    flex: 0 0 50%;
    max-width: 50%;
    margin: 0 !important;
    position: relative;
    overflow: hidden;
    align-self: stretch;
    display: flex;
    align-items: center;
    justify-content: center;
}
/* 封面区域 2:1 */
.posts-item.style-post-capsule .item-media,
.posts-item.style-sites-capsule .item-media {
    position: relative;
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 2 / 1;
    min-height: 100%;
    padding-bottom: 0 !important;
    border-radius: 0 !important;
    background-color: var(--muted-bg-a-color);
    overflow: hidden;
}
.posts-item.style-post-capsule .item-media .item-image,
.posts-item.style-sites-capsule .item-media .item-image {
    display: block;
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0;
}
.posts-item.style-post-capsule .item-media img,
.posts-item.style-sites-capsule .item-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
    transform: scale(1.02);
}
.posts-item.style-post-capsule:hover .item-media img,
.posts-item.style-sites-capsule:hover .item-media img {
    transform: scale(1.08);
}
/* 奇数：封面在左，右边界斜切 */
.posts-item.style-post-capsule.capsule-cover-left .item-header,
.posts-item.style-post-capsule.capsule-cover-left .item-media,
.posts-item.style-sites-capsule.capsule-cover-left .item-header,
.posts-item.style-sites-capsule.capsule-cover-left .item-media {
    clip-path: polygon(0 0, 88% 0, 100% 100%, 0 100%) !important;
}
/* 偶数：封面在右，左边界左上角斜切 */
.posts-item.style-post-capsule.capsule-cover-right .item-header,
.posts-item.style-post-capsule.capsule-cover-right .item-media,
.posts-item.style-sites-capsule.capsule-cover-right .item-header,
.posts-item.style-sites-capsule.capsule-cover-right .item-media {
    clip-path: polygon(12% 0, 100% 0, 100% 100%, 0 100%) !important;
}
.posts-item.capsule-cover-right {
    flex-direction: row-reverse;
    position: relative;
}
.posts-item.capsule-cover-right .item-body {
    position: static;
}
.posts-item.style-post-capsule .item-body {
    flex: 0 0 50%;
    max-width: 50%;
    padding: 8px 0 0 12px;
    position: relative;
    justify-content: flex-start;
    overflow: hidden;
}
.posts-item.style-post-capsule.capsule-cover-left .item-body {
    padding-right: 0;
}
.posts-item.style-post-capsule.capsule-cover-right .item-body {
    padding-left: 0 !important;
    padding-right: 12px;
    margin-left: 0 !important;
    position: static !important;
    overflow: visible;
}
/* 偶数卡片：分类/标题/简介右对齐，more 位置不变 */
.posts-item.capsule-cover-right .item-body {
    text-align: right;
    align-items: flex-end;
}
.posts-item.capsule-cover-right .capsule-cat,
.posts-item.capsule-cover-right .item-title,
.posts-item.capsule-cover-right .capsule-summary {
    text-align: right;
    width: 100%;
}
.posts-item.style-sites-capsule .item-body {
    flex: 0 0 50%;
    max-width: 50%;
    padding: 10px 14px 8px;
    position: relative;
    justify-content: flex-start;
    overflow: hidden;
}
.posts-item.style-post-capsule .capsule-cat,
.posts-item.style-sites-capsule .capsule-cat {
    margin-bottom: 2px;
    font-weight: 600;
    line-height: 1.2;
}
.posts-item.style-post-capsule .capsule-cat a {
    text-decoration: none;
    font-size: 11px !important;
}
.posts-item.style-sites-capsule .capsule-cat a {
    text-decoration: none;
}
.posts-item.style-post-capsule .item-title {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.3;
    margin: 2px 0 4px;
    min-height: auto;
}
.posts-item.style-sites-capsule .item-title {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
    margin: 2px 0 4px;
    min-height: auto;
}
.posts-item.style-post-capsule .item-title a,
.posts-item.style-sites-capsule .item-title a,
.posts-item.style-sites-capsule .item-title b {
    color: var(--main-color);
}
.posts-item.style-post-capsule .capsule-summary {
    line-height: 1.4;
    margin-bottom: 0;
    opacity: 0.85;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.posts-item.style-sites-capsule .capsule-summary {
    line-height: 1.45;
    margin-bottom: 18px;
    opacity: 0.85;
}
.posts-item.style-post-capsule .capsule-more {
    position: absolute;
    bottom: 0;
    right: 0;
    padding: 3px 14px;
    border-radius: 12px 0 var(--main-radius) 0;
    background: linear-gradient(135deg, #ff7aa2, #f1404b);
    color: #fff !important;
    font-size: 11px;
    line-height: 1.5;
    text-decoration: none;
    box-shadow: none;
    transition: opacity 0.2s ease;
    z-index: 2;
}
.posts-item.style-sites-capsule .capsule-more {
    position: absolute;
    bottom: 8px;
    right: 10px;
    padding: 2px 10px;
    border-radius: 999px;
    background: linear-gradient(135deg, #ff7aa2, #f1404b);
    color: #fff !important;
    font-size: 11px;
    line-height: 1.5;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(241, 64, 75, 0.35);
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 2;
}
.posts-item.style-post-capsule .capsule-more:hover,
.posts-item.style-sites-capsule .capsule-more:hover {
    opacity: 0.92;
    color: #fff !important;
}
.posts-item.style-sites-capsule .capsule-more:hover {
    transform: scale(1.04);
}
.posts-item.style-post-capsule.capsule-cover-right .capsule-more {
    right: auto !important;
    left: 0 !important;
    bottom: 0 !important;
    margin: 0 !important;
    border-radius: 0 12px 0 20px;
    box-shadow: none;
}
.posts-item.style-sites-capsule.capsule-cover-right .capsule-more {
    padding: 3px 14px;
}
.posts-item.style-sites-capsule .sites-body,
.posts-item.style-sites-capsule .sites-tags {
    display: none;
}

/* 骨架屏 */
.null-post-capsule,
.null-sites-capsule {
    flex-direction: row;
    align-items: stretch;
    padding: 0;
    overflow: hidden;
    border-radius: 20px;
}
.null-post-capsule {
    aspect-ratio: 4 / 1;
}
.null-sites-capsule {
    aspect-ratio: 5 / 1;
}
.null-post-capsule .p-header,
.null-sites-capsule .p-header {
    flex: 0 0 50%;
    max-width: 50%;
    margin: 0;
    position: relative;
    display: flex;
    align-items: center;
}
.null-post-capsule .--image,
.null-sites-capsule .--image {
    position: relative;
    width: 100%;
    aspect-ratio: 2 / 1;
    min-height: 100%;
    padding-bottom: 0;
    margin: 0;
    border-radius: 0;
}
.null-post-capsule.capsule-cover-left .--image {
    clip-path: polygon(0 0, 88% 0, 100% 100%, 0 100%) !important;
}
.null-sites-capsule.capsule-cover-left .--image {
    clip-path: polygon(0 0, 88% 0, 100% 100%, 0 100%) !important;
}
.null-post-capsule.capsule-cover-right,
.null-sites-capsule.capsule-cover-right {
    flex-direction: row-reverse;
}
.null-post-capsule.capsule-cover-right .--image {
    clip-path: polygon(12% 0, 100% 0, 100% 100%, 0 100%) !important;
}
.null-sites-capsule.capsule-cover-right .--image {
    clip-path: polygon(12% 0, 100% 0, 100% 100%, 0 100%) !important;
}
.null-post-capsule .p-meta,
.null-sites-capsule .p-meta {
    flex: 0 0 50%;
    max-width: 50%;
    padding: 10px 14px;
}

@media (max-width: 767.98px) {
    .posts-item.style-post-capsule {
        aspect-ratio: 4 / 1;
        min-height: 64px;
    }
    .posts-item.style-sites-capsule {
        aspect-ratio: 5 / 1;
        min-height: 64px;
    }
    .posts-item.style-post-capsule .item-header,
    .posts-item.style-sites-capsule .item-header {
        flex-basis: 50%;
        max-width: 50%;
    }
    .posts-item.style-post-capsule .item-body {
        flex-basis: 50%;
        max-width: 50%;
        padding: 6px 0 0 8px;
    }
    .posts-item.style-post-capsule.capsule-cover-right .item-body {
        padding-left: 0;
        padding-right: 8px;
    }
    .posts-item.style-sites-capsule .item-body {
        flex-basis: 50%;
        max-width: 50%;
        padding: 6px 8px;
    }
    .posts-item.style-post-capsule .capsule-cat a {
        font-size: 10px !important;
    }
    .posts-item.style-post-capsule .item-title {
        font-size: 14px;
    }
    .posts-item.style-sites-capsule .item-title {
        font-size: 12px;
    }
    .posts-item.style-post-capsule .capsule-summary {
        font-size: 10px;
        margin-bottom: 0;
        white-space: nowrap;
    }
    .posts-item.style-sites-capsule .capsule-summary {
        font-size: 10px;
        margin-bottom: 14px;
        -webkit-line-clamp: 2;
    }
    .posts-item.style-post-capsule .capsule-more {
        bottom: 0;
        right: 0;
        font-size: 9px;
        padding: 2px 10px;
    }
    .posts-item.style-post-capsule.capsule-cover-right .capsule-more {
        left: 0 !important;
        bottom: 0 !important;
        margin: 0 !important;
        border-radius: 0 10px 0 20px;
    }
    .posts-item.style-sites-capsule.capsule-cover-right .capsule-more {
        left: 0;
        bottom: 0;
    }
}
