/* 纯图片网格布局 - 无边框背景 */
.zib-banner-grid {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* 顶部区域 */
.grid-top {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 8px;
    width: 100%;
}

/* 横幅大图 */
.grid-banner {
    width: 100%;
    border-radius: 6px;
    overflow: hidden;
}

/* 右侧小高图 */
.grid-tall {
    width: 100%;
    border-radius: 6px;
    overflow: hidden;
}

/* 底部四个小图 */
.grid-bottom {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    width: 100%;
}

.grid-small {
    width: 100%;
    border-radius: 6px;
    overflow: hidden;
}

/* 图片样式 */
.grid-link {
    display: block;
    width: 100%;
    height: 100%;
}

.grid-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

/* 横幅图高度 */
.grid-banner .grid-image,
.grid-banner .grid-placeholder {
    height: 200px;
}

/* 小高图高度 */
.grid-tall .grid-image,
.grid-tall .grid-placeholder {
    height: 200px;
}

/* 小图高度 */
.grid-small .grid-image,
.grid-small .grid-placeholder {
    height: 100px;
}

/* 图片悬停效果 */
.grid-link:hover .grid-image {
    transform: scale(1.05);
}

/* 占位图样式 */
.grid-placeholder {
    width: 100%;
    height: 100%;
    background: #f5f5f5;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #ccc;
}

.grid-placeholder i {
    font-size: 24px;
    margin-bottom: 5px;
}

.grid-placeholder p {
    margin: 0;
    font-size: 14px;
}

/* 响应式适配（手机端） */
@media (max-width: 768px) {
    /* 隐藏右侧小高图 */
    .grid-tall {
        display: none;
    }
    
    /* 顶部区域改为1列 */
    .grid-top {
        grid-template-columns: 1fr;
    }
    
    /* 底部小图改为2列 */
    .grid-bottom {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* 调整手机端图片高度 */
    .grid-banner .grid-image,
    .grid-banner .grid-placeholder {
        height: 180px;
    }
    
    .grid-small .grid-image,
    .grid-small .grid-placeholder {
        height: 90px;
    }
}

/* 暗色主题适配 */
[data-theme="dark"] .grid-placeholder {
    background: #292929;
    color: #555;
}