.masonry {
    width: 100%;
    overflow: hidden;
    /* 移除column相关样式，由Masonry控制 */
}

.masonry .masonry-item {
    /* 设置基础宽度，由JS根据屏幕调整 */
    width: 31%; /* 默认3列 */
    margin-bottom: 2em;
    break-inside: avoid;
    
    display: flex;
    flex-direction: column;
    box-shadow: 0px 2px 12px 0px rgba(0, 0, 0, 0.1);
    border-radius: 6px;
    overflow: hidden;
    transition: all 0.3s ease;
    background: white; /* 确保有背景色 */
}

.masonry .masonry-item:hover {
    transform: translate3d(0, -4px, 0);
    box-shadow: 0px 2px 12px 0px rgba(0, 0, 0, 0.2);
}

.masonry .masonry-item .image {
    flex: unset;
    margin-right: unset;
    max-height: unset;
    border: none;
}

.masonry .masonry-item .image img {
    width: 100%;
    height: auto;
    display: block;
}

.masonry .masonry-item .post-info {
    padding: 1.5em;
    flex-grow: 1;
}

/* 响应式调整 - 主要通过JS控制宽度 */
@media only screen and (min-width: 320px) and (max-width: 991px) {
    .masonry .masonry-item {
        width: 48%; /* 2列布局 */
        margin-bottom: 1.5em;
    }
    
    .masonry .masonry-item .post-info {
        padding: 1em;
    }
}

@media only screen and (min-width: 320px) and (max-width: 479px) {
    .masonry .masonry-item {
        width: 100%; /* 1列布局 */
    }
}