/* 适用场景/品牌案例卡片样式 - 100%复刻效果图 */

/* 列表容器 - 7列网格布局 */
.brand_cases_grid {
    display: grid !important;
    grid-template-columns: repeat(7, 1fr) !important;
    gap: 12px !important;
    padding: 40px 20px !important;
    background: #f5f5f5 !important;
    max-width: 100% !important;
    margin: 0 auto !important;
}

/* 单个卡片容器 - 正方形卡片 */
.brand_case_item {
    background: #fff !important;
    border-radius: 2px !important;
    overflow: hidden !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06) !important;
    display: flex !important;
    flex-direction: column !important;
    aspect-ratio: 1 / 1.15 !important; /* 接近正方形，稍微高一点 */
}

.brand_case_item:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1) !important;
}

/* 图片区域 - Logo居中，占据主要空间 */
.brand_case_img_wrapper {
    background: #fff !important;
    padding: 25px 20px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 1 !important;
}

.brand_case_img_wrapper img {
    max-width: 75% !important;
    max-height: 70% !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    transition: transform 0.3s ease !important;
}

.brand_case_item:hover .brand_case_img_wrapper img {
    transform: scale(1.05) !important;
}

/* 标题区域 - 窄条，文字居中 */
.brand_case_name {
    background: #fff !important;
    padding: 10px 8px !important;
    text-align: center !important;
    border-top: 1px solid #efefef !important;
    min-height: 40px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.brand_case_name p {
    margin: 0 !important;
    font-size: 13px !important;
    font-weight: 400 !important;
    color: #666 !important;
    line-height: 1.4 !important;
}

/* 响应式设计 - 大屏幕 */
@media screen and (min-width: 1400px) {
    .brand_cases_grid {
        gap: 25px;
    }

    .brand_case_img_wrapper {
        padding: 35px 25px;
        min-height: 130px;
    }

    .brand_case_img_wrapper img {
        max-height: 70px;
    }
}

/* 响应式设计 - 平板横屏 */
@media screen and (max-width: 1200px) {
    .brand_cases_grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 18px;
    }

    .brand_case_img_wrapper {
        padding: 25px 15px;
        min-height: 110px;
    }

    .brand_case_img_wrapper img {
        max-height: 55px;
    }

    .brand_case_name p {
        font-size: 13px;
    }
}

/* 响应式设计 - 平板竖屏 */
@media screen and (max-width: 992px) {
    .brand_cases_grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 15px;
    }

    .brand_case_img_wrapper {
        padding: 20px 12px;
        min-height: 100px;
    }

    .brand_case_img_wrapper img {
        max-height: 50px;
    }

    .brand_case_name {
        padding: 12px 8px;
    }

    .brand_case_name p {
        font-size: 12px;
    }
}

/* 响应式设计 - 移动端 */
@media screen and (max-width: 768px) {
    .brand_cases_grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
        padding: 20px 0;
    }

    .brand_case_img_wrapper {
        padding: 18px 10px;
        min-height: 90px;
    }

    .brand_case_img_wrapper img {
        max-height: 45px;
    }

    .brand_case_name {
        padding: 10px 6px;
    }

    .brand_case_name p {
        font-size: 11px;
    }
}

/* 小屏幕优化 */
@media screen and (max-width: 480px) {
    .brand_cases_grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .brand_case_img_wrapper {
        padding: 15px 8px;
        min-height: 80px;
    }

    .brand_case_img_wrapper img {
        max-height: 40px;
    }

    .brand_case_name {
        padding: 8px 5px;
    }

    .brand_case_name p {
        font-size: 10px;
    }
}

