/* 小胶囊模式 - 文章卡片（宽高比 2.6:1，封面左半右上角斜切 + 标题右半） */

.posts-item.style-post-mini-capsule {

    flex-direction: row;

    align-items: stretch;

    padding: 0 !important;

    overflow: hidden;

    border-radius: 12px;

    min-height: 0;

    width: 100%;

    aspect-ratio: 2.6 / 1;

    height: auto;

    background: var(--main-bg-color);

    border: 1px solid rgba(0, 0, 0, 0.06);

    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);

    position: relative;

}

.posts-item.style-post-mini-capsule:hover {

    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.09);

    transform: translateY(-1px);

}

.posts-item.style-post-mini-capsule .item-header {

    flex: 0 0 50%;

    max-width: 50%;

    width: 50%;

    height: 100%;

    min-height: 0;

    margin: 0 !important;

    position: relative;

    overflow: hidden;

    align-self: stretch;

    z-index: 1;

}

/* 重置 main.css 默认 item-media 尺寸（138px + padding-bottom 70% 会撑破宽高比） */

.posts-item.style-post-mini-capsule .item-media {

    width: 100% !important;

    height: 100% !important;

    padding-bottom: 0 !important;

    min-height: 0;

    border-radius: 0 !important;

    position: relative;

    overflow: hidden;

}

/* 封面右上角斜切：右边界 (88%,0) → (100%,100%) */

.posts-item.style-post-mini-capsule .item-header,

.posts-item.style-post-mini-capsule .mini-capsule-cover {

    clip-path: polygon(0 0, 88% 0, 100% 100%, 0 100%);

}

.posts-item.style-post-mini-capsule .mini-capsule-cover {

    position: absolute;

    inset: 0;

    width: 100%;

    height: 100%;

    overflow: hidden;

    border-radius: 0;

    background-color: var(--muted-bg-a-color);

}

.posts-item.style-post-mini-capsule .mini-capsule-cover .item-image {

    display: block;

    width: 100%;

    height: 100%;

    position: absolute;

    inset: 0;

}

.posts-item.style-post-mini-capsule .mini-capsule-cover img {

    width: 100%;

    height: 100%;

    object-fit: cover;

    transition: transform 0.35s ease;

}

.posts-item.style-post-mini-capsule:hover .mini-capsule-cover img {

    transform: scale(1.05);

}

.posts-item.style-post-mini-capsule .item-body {

    flex: 0 0 50%;

    max-width: 50%;

    min-width: 0;

    min-height: 0;

    margin-left: -10px;

    padding: 6px 2px 6px 0;

    position: relative;

    z-index: 3;

    justify-content: center;

    overflow: visible;

}

.posts-item.style-post-mini-capsule .item-title {

    font-size: 14px;

    font-weight: 700;

    line-height: 1.3;

    margin: 0 0 0 6px;

    min-height: auto;

    width: 100%;

    position: relative;

    z-index: 3;

}

.posts-item.style-post-mini-capsule .item-title a {

    color: var(--main-color);

}



/* 骨架屏 */

.null-post-mini-capsule {

    flex-direction: row;

    align-items: stretch;

    padding: 0;

    overflow: hidden;

    border-radius: 12px;

    min-height: 0;

    width: 100%;

    aspect-ratio: 2.6 / 1;

    height: auto;

    border: 1px solid rgba(0, 0, 0, 0.06);

}

.null-post-mini-capsule .p-header {

    flex: 0 0 50%;

    max-width: 50%;

    height: 100%;

    margin: 0;

    position: relative;

}

.null-post-mini-capsule .p-header,

.null-post-mini-capsule .--image {

    clip-path: polygon(0 0, 88% 0, 100% 100%, 0 100%);

}

.null-post-mini-capsule .--image {

    position: absolute;

    inset: 0;

    width: 100%;

    height: 100%;

    margin: 0;

    padding-bottom: 0;

    border-radius: 0;

    background: var(--muted-bg-color);

}

.null-post-mini-capsule .p-meta {

    flex: 0 0 50%;

    max-width: 50%;

    padding: 6px 10px;

}



@media (max-width: 767.98px) {

    .posts-item.style-post-mini-capsule .item-body {

        margin-left: -10px;

        padding: 4px 0 4px 0;

    }

    .posts-item.style-post-mini-capsule .item-title {

        font-size: 13px;

        line-height: 1.25;

        margin-left: 6px;

    }

}

