.portal1_9kL2m {
    margin: var(--margin-tb, 2rem) 0;
    width: 100%;
    overflow: hidden;
}
.portal1_9kL2m .swiper-slide{
    height: auto !important;
    display: inline-flex !important;
}
.portal1_9kL2m_container {
    max-width: 100%; /* 调整为100%以填满屏幕宽度 */
    margin: 0 auto;
    
}

.portal1_9kL2m_swiper{
    /*  */
    /* min-height: 51rem; */
}
.portal1_9kL2m_swiper {
    position: relative;
    
    padding-bottom: 0rem;
}

.portal1_9kL2m_item {
    position: relative;
    background-color: var(--item-bg-color, #f5f5f5);
    overflow: hidden;
    padding: 0;
    
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    padding: 3rem;
    box-sizing: border-box;
    
}
.portal1_9kL2m_item:hover .custom_image{
    transform: scale(1.1);
}
.portal1_9kL2m_item_image {
    width: 100%;
    height: auto;
    overflow: hidden;
    position: relative;
    z-index: 2;
    box-sizing: border-box; /* Include padding in height */
}

/* 图片组件规范 */
.portal1_9kL2m .custom_image_wrapper{
    width: 100%;
    height: 100%;
    aspect-ratio: var(--image_ratio, 1 / 1);
    border-radius: var(--image_shape, 0%);
    overflow: hidden;
    position: relative;
}

.portal1_9kL2m .custom_image{
    width: 100%;
    height: 100%;
    object-fit: var(--image_fit, cover);
    display: block;
    transition: all 0.5s;
    transform: scale(1);
}

.portal1_9kL2m .custom_image_secondary {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: var(--image_fit, cover);
    display: block;
    transition: all 0.5s;
    opacity: 0;
    z-index: 1;
}

.portal1_9kL2m_item:hover .custom_image_secondary {
    opacity: var(--show-secondary-image, 1);
    transform: scale(1.1);
}

/* 仅当wrapper内存在副图时，才根据变量隐藏主图 */
.portal1_9kL2m_item:hover .custom_image_wrapper:has(.custom_image_secondary) .custom_image {
    opacity: calc(1 - var(--show-secondary-image, 1));
}

.portal1_9kL2m_item_overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 0;
    background: var(--item-hover-bg-color, #333333);
    transition: height 0.6s ease; /* Separate transition time for background color animation */
    z-index: 1;
}

.portal1_9kL2m_item:hover .portal1_9kL2m_item_overlay {
    height: 100%;
}

.portal1_9kL2m_item_content {
    position: relative;
    z-index: 2;
    text-align: center;
    
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.portal1_9kL2m_item_title {
    font-size: var(--item-title-size, 1.8rem);
    color: var(--item-title-color, #333333);
    margin: 2rem 0;
    font-weight: 600;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 1rem;
    transition: color 0.3s ease;
}

.portal1_9kL2m_item:hover .portal1_9kL2m_item_title {
    color: #ffffff;
}

.portal1_9kL2m_item_description {
    font-size: var(--item-description-size, 1.4rem);
    color: var(--item-description-color, #666666);
    line-height: 1.6;
    margin-bottom: 2rem;
    
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.3s ease;
}

.portal1_9kL2m_item:hover .portal1_9kL2m_item_description {
    color: #ffffff;
}

.portal1_9kL2m_item_button_wrapper{
    display: inline-flex;
    position: sticky;
    bottom: 0;
    width: 100%;
     z-index: 999;
    gap:1rem;
     justify-content: space-between;
}
.portal1_9kL2m_item_button_wrapper a{
    display: block;
    color: #ffffff;
    text-decoration: none;
    border-radius: 3rem;
    font-size: var(--button-font-size, 1.4rem);
    font-weight: 500;
    transition: all 0.3s ease;
     text-align: center;
    /* 文本超出一行显示省略号 */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-grow: 1;
    flex-shrink: 0;
    flex-basis: 49%;
     height: 3rem;
    line-height: 3rem;
}
.portal1_9kL2m_item_right_button{
    
    
    background-color: var(--right_button-color, #064274);
    
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
    
   
    

}
.portal1_9kL2m_item_button {
   
    
    background-color: var(--theme-color, #00b41e);
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
    
    
}

/* 移除项按钮鼠标经过效果 */
.portal1_9kL2m_item_button:hover {
    background-color: var(--theme-color, #00b41e);
    color: #ffffff;
    border-color: var(--theme-color, #00b41e);
    transform: none;
}

.portal1_9kL2m_navigation {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 5rem;
}

.portal1_9kL2m_nav_arrow {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    background-color: transparent; /* 默认透明背景 */
    color: #000000; /* 默认黑色箭头 */
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.8rem;
    border: 1px solid #cccccc; /* 默认浅灰色边框 */
}

.portal1_9kL2m_nav_arrow:hover {
    background-color: var(--theme-color, #00b41e); /* 鼠标经过显示主题色背景 */
    color: #ffffff; /* 鼠标经过显示白色箭头 */
    border-color: var(--theme-color, #00b41e); /* 鼠标经过边框变色 */
}

.portal1_9kL2m_nav_arrow.swiper-button-disabled {
    opacity: 0.3;
    cursor: not-allowed;
    background-color: transparent;
    color: #000000;
    border-color: #cccccc; /* 禁用状态下保持浅灰色边框 */
}

.portal1_9kL2m_pagination {
    font-size: 1.6rem;
    color: #333333;
    font-weight: 500;
    min-width: 60px;
    text-align: center;
}

/* 分页当前项使用主题色 */
.portal1_9kL2m_pagination_current {
    color: var(--theme-color, #00b41e);
    font-weight: 600;
}

/* 平板（Pad）样式 */
@media (min-width: 768px) and (max-width: 1024px) {
    .portal1_9kL2m_item {
       
        padding: 0;
    }

    .portal1_9kL2m_item_image {
        
    }

    .portal1_9kL2m_item_title {
        font-size: calc(var(--item-title-size, 1.8rem) * 0.95);
        margin-bottom: 1.2rem;
        
    }

    .portal1_9kL2m_item_description {
        font-size: calc(var(--item-description-size, 1.4rem) * 0.95);
        margin-bottom: 1.6rem;
        -webkit-line-clamp: 4;
    }

    .portal1_9kL2m_item_button {
        font-size: calc(1.4rem * 0.95);
        
    }

    .portal1_9kL2m_item_button_wrapper{
        bottom: 1rem;
        padding: 0 1rem 1rem;
    }

    .portal1_9kL2m_nav_arrow {
        width: 4rem;
        height: 4rem;
        font-size: 1.6rem;
    }

    .portal1_9kL2m_pagination {
        font-size: calc(1.6rem * 0.95);
    }
}

/* 手机端样式 */
@media (max-width: 767px) {
    .portal1_9kL2m_item{
        min-height: 30rem;
        
    }
    .portal1_9kL2m_container {
        padding: 0 2rem;
    }

    .portal1_9kL2m_swiper {
        padding-bottom: 1rem;
    }

    .portal1_9kL2m_item_image {
        
    }

    

    .portal1_9kL2m_item_title {
        font-size: calc(var(--item-title-size, 1.8rem) * 0.9);
        margin-bottom: 1rem;
       
    }

    .portal1_9kL2m_item_description {
        font-size: calc(var(--item-description-size, 1.4rem) * 0.9);
        margin-bottom: 1.5rem;
        -webkit-line-clamp: 4;
    }

    .portal1_9kL2m_item_button {
        font-size: calc(1.4rem * 0.9);
        
    }

    .portal1_9kL2m_navigation {
        gap: 2rem;
        margin-top: 2rem;
    }

    .portal1_9kL2m_nav_arrow {
        width: 3.5rem;
        height: 3.5rem;
        font-size: 1.4rem;
    }

    .portal1_9kL2m_pagination {
        font-size: calc(1.6rem * 0.9);
        min-width: 50px;
    }
}
/**/
