/* ============ 右侧Banner区域 - 宽度自适应（左右留12px间距） ============ */
.post-banner-right {
    display: grid;
    width: calc(100% - 24px);  /* 减去左右12px间距 */
    margin-left: auto;         /* 右对齐 */
    aspect-ratio: 280/262;
    grid-template-rows: repeat(3, 1fr);
    gap: 10px;
}

.post-banner-right > .banner-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease;
    min-height: 0;
}


.post-banner-right > .banner-item > a {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
}

.post-banner-right > .banner-item > a > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 标题：单行居中 + 省略号 */
.post-banner-right > .banner-item > a > .shade,
.post-banner-right > .banner-item > a > div.shade {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.5) 60%, transparent 100%);
    padding: 30px 12px 10px;   /* 左右padding也对应12px */
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.3;

    /* 单行省略核心样式 */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
}

/* ============ 响应式调整 ============ */

@media (min-width: 1400px) {
    .post-banner-right {
        gap: 12px;
    }
    .post-banner-right > .banner-item > a > .shade,
    .post-banner-right > .banner-item > a > div.shade {
        font-size: 14px;
        padding: 35px 12px 12px;
    }
}

@media (max-width: 1200px) {
    .post-banner-right {
        gap: 8px;
    }
    .post-banner-right > .banner-item > a > .shade,
    .post-banner-right > .banner-item > a > div.shade {
        font-size: 12px;
        padding: 25px 10px 8px;
    }
}

@media (max-width: 992px) {
    .post-banner-right {
        gap: 6px;
    }
    .post-banner-right > .banner-item {
        border-radius: 4px;
    }
    .post-banner-right > .banner-item > a > .shade,
    .post-banner-right > .banner-item > a > div.shade {
        font-size: 11px;
        padding: 20px 8px 6px;
    }
}

@media (max-width: 768px) {
    .post-banner-right {
        width: calc(100% - 24px);
        gap: 8px;
        aspect-ratio: auto;
        height: auto;
        grid-template-rows: none;
        grid-template-columns: repeat(3, 1fr);
    }
    .post-banner-right > .banner-item {
        aspect-ratio: 16/10;
    }
    .post-banner-right > .banner-item > a > .shade,
    .post-banner-right > .banner-item > a > div.shade {
        font-size: 10px;
        padding: 15px 6px 5px;
    }
}

@media (max-width: 480px) {
    .post-banner-right {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .post-banner-right > .banner-item {
        aspect-ratio: 21/9;
    }
    .post-banner-right > .banner-item > a > .shade,
    .post-banner-right > .banner-item > a > div.shade {
        font-size: 12px;
        padding: 20px 12px 8px;
    }
}