.king-cos-ajax-wrap {
    margin-bottom: 20px;
}

.king-cos-widget .title-theme {
    display: block;
}

.king-cos-widget .title-theme small {
    font-weight: 400;
}

.king-cos-widget .title-theme .pull-right a {
    text-decoration: none;
}

.king-cos-posts {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
}

.king-cos-posts .posts-item.card {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    margin-bottom: 8px !important;
    position: relative;
    overflow: hidden;
}

.king-cos-posts .posts-item.card:last-child {
    margin-bottom: 8px !important;
}

.king-cos-posts .posts-item.card .item-thumbnail {
    position: relative;
    overflow: hidden;
    padding-bottom: var(--posts-card-scale);
}

.king-cos-posts .posts-item.card .item-thumbnail > a,
.king-cos-posts .posts-item.card .item-thumbnail img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.king-cos-posts .posts-item.card .item-thumbnail .king-cos-corner {
    z-index: 6;
    pointer-events: none;
}

.king-cos-posts .posts-item.card .item-thumbnail .king-cos-corner badge {
    font-size: 12px;
    line-height: 1.2;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
    background: transparent !important;
    color: #fff !important;
    box-shadow: none !important;
    border: 0 !important;
}

.king-cos-posts .posts-item.card .item-thumbnail .king-cos-corner .meta-view {
    display: inline-flex;
    align-items: center;
}

.king-cos-posts .posts-item.card .item-thumbnail .king-cos-corner .meta-view .icon {
    margin-right: 3px;
}

.king-cos-posts .posts-item.card .item-thumbnail .king-cos-corner-views {
    opacity: 0;
    transition: opacity .2s ease;
}

.king-cos-posts .posts-item.card:hover .item-thumbnail .king-cos-corner-views {
    opacity: 1;
}

.king-cos-posts .posts-item.card .item-tags,
.king-cos-posts .posts-item.card .item-meta {
    display: none !important;
}

.king-cos-posts .posts-item.card .item-body {
    z-index: 4;
}

.king-cos-paginate {
    margin-top: 12px;
}

.king-cos-posts > .ajax-pag,
.king-cos-posts > .theme-pagination.ajax-pag {
    width: 100%;
    flex: 0 0 100%;
    text-align: center;
    display: block;
}

.king-cos-posts > .ajax-pag .next-page,
.king-cos-posts > .theme-pagination.ajax-pag .next-page {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    float: none !important;
    text-align: center !important;
}

.king-cos-posts > .ajax-pag .next-page > a,
.king-cos-posts > .theme-pagination.ajax-pag .next-page > a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    margin-left: auto;
    margin-right: auto;
    float: none !important;
    text-align: center !important;
}

.king-cos-posts > .no-more,
.king-cos-posts > .ajax-pag.no-more,
.king-cos-posts > .theme-pagination.no-more,
.king-cos-posts > .theme-pagination .no-more,
.king-cos-posts > .ajax-pag .no-more {
    width: 100%;
    flex: 0 0 100%;
    display: block;
    clear: both;
    text-align: center !important;
    margin-top: 8px;
}

.king-cos-cols-4 .posts-item.card {
    width: calc(25% - 16px) !important;
}

.king-cos-cols-5 .posts-item.card {
    width: calc(20% - 16px) !important;
}

@media (max-width: 991px) {
    .king-cos-cols-4 .posts-item.card,
    .king-cos-cols-5 .posts-item.card {
        width: calc(50% - 10px) !important;
        margin: 5px;
    }
}

.king-cos-lines-1 .king-cos-posts .item-heading {
    line-height: 1.4em;
    min-height: 1.4em;
    height: 1.4em;
    margin-top: 0;
    margin-bottom: 0;
}

.king-cos-lines-1 .king-cos-posts .item-heading a {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4em;
}

.king-cos-lines-2 .king-cos-posts .item-heading {
    line-height: 1.4em;
    min-height: 2.8em;
    height: 2.8em;
    margin-top: 0;
    margin-bottom: 0;
}

.king-cos-lines-2 .king-cos-posts .item-heading a {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4em;
}

/* 标题样式一（当前）：保持父主题默认 */
.king-cos-title-style-1 .king-cos-posts .posts-item.card .item-body {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 4;
    margin: 0 !important;
    padding: 10px 12px 9px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.52) 72%, rgba(0, 0, 0, 0.62) 100%);
    border: 0 !important;
    border-radius: 0 0 var(--main-radius) var(--main-radius);
}

.king-cos-title-style-1 .king-cos-posts .posts-item.card .item-heading a {
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}

/* 标题样式二（玻璃模糊） */
.king-cos-title-style-2 .king-cos-posts .posts-item.card .item-body {
    position: absolute;
    inset: auto 0 0 0;
    width: auto !important;
    min-width: 0;
    z-index: 5;
    margin: 0 !important;
    padding: 10px 12px 11px;
    box-sizing: border-box;
    border-radius: 0;
    background: linear-gradient(180deg, rgba(20, 24, 32, 0.16) 0%, rgba(20, 24, 32, 0.56) 100%);
    -webkit-backdrop-filter: blur(10px) saturate(125%);
    backdrop-filter: blur(10px) saturate(125%);
}

.king-cos-title-style-2 .king-cos-posts .posts-item.card {
    padding: 0 !important;
    background: rgba(20, 24, 32, 0.56);
    border: 0 !important;
    box-shadow: none;
    border-radius: var(--main-radius);
    overflow: hidden;
    isolation: isolate;
    clip-path: inset(0 round var(--main-radius));
    -webkit-mask-image: -webkit-radial-gradient(white, black);
    position: relative;
}

.king-cos-title-style-2 .king-cos-posts .posts-item.card .item-thumbnail,
.king-cos-title-style-2 .king-cos-posts .posts-item.card .item-thumbnail > a,
.king-cos-title-style-2 .king-cos-posts .posts-item.card .item-thumbnail img {
    border-radius: var(--main-radius) var(--main-radius) 0 0 !important;
}

.king-cos-title-style-2 .king-cos-posts .posts-item.card .item-thumbnail {
    overflow: hidden;
}

.king-cos-title-style-2 .king-cos-posts .posts-item.card .item-body {
    border: 0 !important;
    box-shadow: none !important;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    will-change: transform;
}

.king-cos-title-style-2 .king-cos-posts .posts-item.card::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 6px;
    background: rgba(20, 24, 32, 0.56);
    z-index: 4;
    pointer-events: none;
}

.king-cos-title-style-2 .king-cos-posts .posts-item.card .item-body::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 2px;
    background: rgba(20, 24, 32, 0.56);
    pointer-events: none;
}

.king-cos-title-style-2 .king-cos-posts .posts-item.card .item-heading a {
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

/* 标题样式三（白底下置） */
.king-cos-title-style-3 .king-cos-posts .posts-item.card .item-body {
    position: relative;
    margin: 0 !important;
    padding: 10px 12px 11px;
    background: var(--main-bg-color, #fff);
    border-top: 1px solid var(--main-border-color, rgba(0, 0, 0, 0.06));
    border-radius: 0 0 var(--main-radius) var(--main-radius);
}

.king-cos-title-style-3 .king-cos-posts .posts-item.card .item-body .placeholder.k2,
.king-cos-title-style-3 .king-cos-posts .posts-item.card .item-body .placeholder.s1 {
    display: none !important;
}

.king-cos-title-style-3 .king-cos-posts .posts-item.card .item-heading a {
    color: var(--key-color, #333);
}
