.vccustom_9dK3x {
    margin: var(--margin-tb) 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;

    min-height: 60rem;
    display: flex;
    align-items: center;
    padding-top: 5%;
    padding-bottom: 5%;
}

.vccustom_9dK3x::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.vccustom_9dK3x .vccustom_container {
     padding-left: var(--padding-lr);
    padding-right: var(--padding-lr);
    max-width: var(--custom-content-max-width);
    box-sizing: border-box;

    position: relative;
    z-index: 2;
    flex-grow: 1;
    margin-right: auto;
    margin-left: auto;
}

.vccustom_9dK3x .vccustom_header {
    text-align: center;
    margin-bottom: 6rem;
}

.vccustom_9dK3x .vccustom_main_title {
    font-size: var(--title-size);
    color: var(--title-color);
    font-weight: 700;
    letter-spacing: 0.2rem;
    text-transform: uppercase;
    margin: 0;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    word-break: break-word;
}

.vccustom_9dK3x .vccustom_grid_wrapper {
    display: grid;
    grid-template-rows: repeat(var(--grid-rows), 1fr);
    grid-template-columns: repeat(var(--grid-columns), 1fr);
    gap: 2.5rem;
    margin-bottom: 6rem;
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 100%;
}

.vccustom_9dK3x .vccustom_grid_item {
    opacity: 1;
    /* 默认不透明 */
    transform: translateY(0);
    /* 默认无位移 */
    transition: all 0.3s ease;
}

.vccustom_9dK3x .vccustom_grid_item.vccustom_visible {
    opacity: 1;
    transform: translateY(0);
}

.vccustom_9dK3x .vccustom_item_card {
    background: var(--item-bg-color);
    border-radius: 1.2rem;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 0.4rem 1.5rem rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    z-index: 1;
    box-sizing: border-box;
}

/* 遮罩层 - 默认隐藏 */
.vccustom_9dK3x .vccustom_item_card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 1.2rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 12;
    pointer-events: none;
}

.vccustom_9dK3x .vccustom_item_logo,
.vccustom_9dK3x .vccustom_item_info {
    position: relative;
    z-index: 11;
}

/* 当网格容器悬停时，所有项显示遮罩 - 已废弃，改为 JS 控制 .hover-active 类 */
/* .vccustom_9dK3x .vccustom_grid_wrapper:hover .vccustom_item_card::before {
    opacity: 1;
} */

/* 只有当 wrapper 被添加了 hover-active 类时，且当前项未被悬停时，显示遮罩 */
.vccustom_9dK3x .vccustom_grid_wrapper.hover-active .vccustom_item_card:not(:hover)::before {
    opacity: 1;
}

/* 当前悬停的项隐藏遮罩 - 默认就是隐藏的，不需要额外写，或者为了保险起见 */
.vccustom_9dK3x .vccustom_grid_wrapper.hover-active .vccustom_item_card:hover::before {
    opacity: 0;
}

/* 当前悬停项增强阴影效果 */
.vccustom_9dK3x .vccustom_item_card:hover {
    box-shadow: 0 0.8rem 2.5rem rgba(0, 0, 0, 0.2);
}

.vccustom_9dK3x .vccustom_item_logo {
    /* width: min(100%, 14rem); */
    width:100%;
    aspect-ratio: var(--image_ratio, 1 / 1);
    border-radius: var(--image_shape, 0%);
    overflow: hidden;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 11;
}

.vccustom_9dK3x .custom_image {
    width: 100%;
    height: 100%;
    object-fit: var(--image_fit, cover);
    display: block;
}

.vccustom_9dK3x .vccustom_item_logo .custom_image {
    transition: filter 0.3s ease;
}

.vccustom_9dK3x .vccustom_item_info {
    width: 100%;
}

.vccustom_9dK3x .vccustom_item_title {
    font-size: var(--item-title-size, 1.6rem);
    color: var(--item-title-color, #6b7280);
    font-weight: 600;
    margin: 0;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    word-break: break-word;
}

.vccustom_9dK3x .vccustom_footer {
    text-align: center;

    margin: 0 auto;
}

.vccustom_9dK3x .vccustom_description {
    font-size: var(--description-size);
    color: var(--description-color);
    line-height: 1.8;
    margin: 0;
}



/* 平板（Pad）样式 */
@media (min-width: 768px) and (max-width: 1024px) {
    .vccustom_9dK3x .vccustom_container {}

    .vccustom_9dK3x {
        min-height: 50rem;
    }

    .vccustom_9dK3x .vccustom_main_title {
        font-size: calc(var(--title-size) * 0.95);
    }

    .vccustom_9dK3x .vccustom_header {
        margin-bottom: 4rem;
    }

    .vccustom_9dK3x .vccustom_grid_wrapper {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
        margin-bottom: 4rem;
    }

    .vccustom_9dK3x .vccustom_item_card {
        padding: 2rem;
    }

    .vccustom_9dK3x .vccustom_item_logo {
        width: 12rem;
    }

    .vccustom_9dK3x .vccustom_item_title {
        font-size: calc(var(--item-title-size) * 0.95);
    }

    .vccustom_9dK3x .vccustom_description {
        font-size: calc(var(--description-size) * 0.95);
    }
}

/* 手机端样式 */
@media (max-width: 767px) {
    .vccustom_9dK3x .vccustom_container {}

    .vccustom_9dK3x {
        min-height: auto;
        /* margin-left: 2rem;
        margin-right: 2rem; */
        padding-left: 2rem;
        padding-right: 2rem;
    }

    .vccustom_9dK3x .vccustom_main_title {
        font-size: calc(var(--title-size) * 0.9);
        letter-spacing: 0.1rem;
    }

    .vccustom_9dK3x .vccustom_header {
        margin-bottom: 3rem;
    }

    .vccustom_9dK3x .vccustom_grid_wrapper {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
        gap: 1.5rem;
        margin-bottom: 3rem;
    }

    .vccustom_9dK3x .vccustom_item_card {
        padding: 2rem;
    }

    .vccustom_9dK3x .vccustom_item_logo {
        width: 10rem;
        margin-bottom: 1rem;
    }

    .vccustom_9dK3x .vccustom_item_title {
        font-size: calc(var(--item-title-size) * 0.9);
    }

    .vccustom_9dK3x .vccustom_description {
        font-size: calc(var(--description-size) * 0.9);
        line-height: 1.6;
    }
}
