.owl-stage-outer,
.owl-stage,
.owl-item,
.item,
.featured-post-item-img {
    height: 100%;
    width: 100%;
}

/* 只针对 Latest Posts 区块的轮播图按钮 */
.latest-posts-carousel {
    position: relative;
}

/* 右上角悬浮，按钮横向排列 */
.latest-posts-carousel .owl-nav {
    position: absolute;
    top: -85px;
    /* 让按钮在轮播区域外上方，具体数值可微调 */
    right: 0;
    display: flex;
    gap: 12px;
    z-index: 10;
}

/* 按钮样式 */
.latest-posts-carousel .owl-nav button.owl-prev,
.latest-posts-carousel .owl-nav button.owl-next {
    background: #fff;
    border: none;
    color: #5f5d5d;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    font-size: 18px;
    transition: all 0.2s;
    outline: none;
    cursor: pointer;
    padding: 0;
}

/* hover 效果 */
.latest-posts-carousel .owl-nav button.owl-prev:hover,
.latest-posts-carousel .owl-nav button.owl-next:hover {
    background: #ff3b3b;
    color: #fff;
}

/* 去除按钮的默认内容选中高亮 */
.latest-posts-carousel .owl-nav button:focus {
    outline: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.list-style-1 {
    height: 300px !important;
}

.list-style-1-img {
    height: 100%;
}

.list-style-1-img img {
    height: 100%;
    max-height: 280px;
    object-fit: cover;
    width: 100%;
}

.latest-posts-carousel .grid-style-1-img img {
    height: 100%;
    width: 100%;
    object-fit: cover;

}

.listing-post .listing-post-thumbnail {
    min-width: 46%;
}

/* Second block 分类大图样式 */
.grid-style-1-img {
    width: 100%;
    height: 220px;
    /* 统一大图高度 */
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}

.grid-style-1-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Second block 小卡片图片样式 */
.listing-post-2-thumbnail {
    width: 100px;
    /* 统一小图高度 */
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    flex-shrink: 0;
}

.listing-post-2-thumbnail img {
    height: 80px;
    width: 100%;
    object-fit: cover;
}

/* 小卡片内容横向排列 */
.listing-post-2 {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
    padding: 8px 12px;
    margin-bottom: 16px;
    min-height: 80px;
}

.listing-post-2-content {
    flex: 1;
    margin-left: 12px;
    min-width: 0;
}

.listing-post-2-title {
    font-size: 1rem;
    font-weight: 500;
    color: #222;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.listing-post-2-meta {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 轮播图固定高度，右侧等高，图片自适应 */
.featured-post-area .row {
    display: flex;
    align-items: stretch;
}

.featured-post-carousel {
    height: 440px;
    min-height: 440px;
}

.featured-post-item,
.featured-post-item-img {
    height: 100%;
}

.featured-post-item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* 右侧卡片等高、图片自适应 */
.featured-post-area .col-lg-4 {
    display: flex;
    flex-direction: column;
    height: 440px;
    min-height: 440px;
    gap: 20px;
}

.featured-post-area .col-lg-4 .featured-post-item {
    flex: 1 1 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.featured-post-area .col-lg-4 .featured-post-item-img {
    width: 100%;
    height: 200px;
    display: flex;
    align-items: stretch;
    overflow: hidden;
    border-radius: 10px 10px 0 0;
}

.featured-post-area .col-lg-4 .featured-post-item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 移动端适配：堆叠显示，轮播图和右侧卡片都固定高度 */
@media (max-width: 991px) {
    .featured-post-area {
        padding-top: 30px;
        padding-bottom: 10px;
    }

    .featured-post-area .row {
        display: block;
    }

    .featured-post-area .col-lg-8,
    .featured-post-area .col-lg-4 {
        width: 100%;
        max-width: 100%;
        height: auto;
        min-height: 0;
        margin-bottom: 20px;
    }

    .featured-post-area .col-lg-4 {
        display: block;
        height: auto;
        min-height: 0;
        gap: 0;
    }

    .featured-post-area .col-lg-4 .featured-post-item {
        height: auto;
        min-height: 0;
        margin-bottom: 20px;
    }

    .featured-post-carousel {
        height: 400px;
        min-height: 400px;
    }

    .featured-post-area .col-lg-4 .featured-post-item-img {
        height: 180px;
    }
}

@media (max-width: 575px) {
    .featured-post-carousel {
        height: 350px;
        min-height: 350px;
    }

    .featured-post-area .col-lg-4 .featured-post-item-img {
        height: 200px;
    }
}