/** 1.sort banner **/
.banner{
    height: 20vw;
    min-height: 150px;
    max-height: 250px;
}

@media (max-width: 991px) {
    .banner{
        height: 200px;
    }
    .PC .gap{
        padding-top: 30px;
    }
    .PHONE .gap{
        padding: 1em;
    }
}

.banner_nav{
    border-radius: 20px;
    overflow: hidden;
}

.banner .banner_nav::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0,0,0,1), rgba(0,0,0,0)); /* 从上到下的黑色渐变 */
}

.banner_title{
    position: absolute;
    top: 0;
    padding: 0 5em;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;

}

.banner_title h4{
    margin-bottom: 17px;
    font-size: 1.3em;
}

.banner_title h3{
    font-weight: bolder;
    font-size: 2.5em;
}

.banner_title .line{
    background-color: #1e66f8;
    display: block;
    height: 3px;
    margin-top: 17px;
    width: 5em;
}

@media (max-width: 991px) {
    .banner_title .line{
        display: none;
    }

    .banner_title{
        align-items: center;
        left:0;
    }

    .banner_title h3{
        font-weight: bolder;
        font-size: 2em;
    }

    .banner_title h4{
        font-size: 1em;
    }

    .banner .banner_nav::after {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.8)
    }


}


/** sort banner END **/



/* cardNav */

.cardNav{
    /*background: #f2f2f2;*/
    font-size: 1rem;
    color: #222;
}

.event_card_row{
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
}



.cardBoard{
    background: #fff;
    /*margin: 0 auto 30px;*/
    margin: 0 10px 30px;
    box-shadow: 0 2px 6px 0px rgba(0,0,0,0.25);
    transition: box-shadow 0.5s,transform 0.5s;
}

.cardBoard{
    flex-basis: 31%;
    -webkit-flex-basis:31%;
    max-width: 496px;

}

@media (max-width: 991px) {

    .cardBoard{
        flex-basis: 45%;
        -webkit-flex-basis:45%;
    }
}

@media (max-width: 600px) {

    .cardBoard{
        flex-basis: 100%;
        -webkit-flex-basis:100%;
        /*margin: 0 2em;*/

    }
}

.cardBoard:hover{
    box-shadow: 6px 2px 6px 0px rgba(0,0,0,0.25);
    /*transform: translateX(-2px);*/
}

.card_info{
    padding: 2em;
}

.card_title{
    margin-bottom: 2rem;
    font-weight: bolder;
}

.card_title::after{
    content: '';
    border-bottom: 3px solid #1e66f8;
    width: 50px;
    position: absolute;
    left: 0;
    bottom: -0.8rem;
}

.cardPic{
    width: 100%;
    height: 200px;
}

.card_container{
    height: 8rem;
    font-size: 0.9em;
}

@media (min-width:600px) and (max-width: 1200px) {
    .card_container{
        height: 10rem;
    }
}

.card_enter{
    position: absolute;
    left: 2rem;
    bottom: 1rem;
    color: #1e66f8;
}

.card_btn{
    position: absolute;
    bottom: 1.5em;
    left: 50%;
    transform: translateX(-50%);
    /* 新增代码 - 使用flex布局 */
    display: flex;
    align-items: center;
    gap: 10px; /* 按钮之间的间距 */
    white-space: nowrap; /* 防止内容换行 */
    padding: 0 10px; /* 可选：添加内边距 */
}

.btn{
    cursor: pointer;
    background:  #1e66f8;
    color: #fff;
    word-break: keep-all;
    font-weight: 400;
    display: inline-block;
    text-align: center;
    vertical-align:middle;
}

.btn:hover{
    color: #ff5;
}

/* 4. cardNav END */
