.warp {
    background-image: url("../image/home/pic4.jpg");
    background-repeat: repeat;
    -o-background-size: contain;
    background-size: contain;
    cursor: default;
    width: 100%;
    height:100%;
}

#main {
    width: 80%;
    padding-top: 15%;
    padding-bottom: 50px;
    padding-right: 10%;
    padding-left: 10%;
}

/* Caption Style 1 */
.cs-style-1 figcaption {
    height: 100%;
    width: 100%;
    opacity: 0;
    text-align: center;
    -webkit-backface-visibility: hidden;
    -moz-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-transition: -webkit-transform 0.3s, opacity 0.3s;
    -moz-transition: -moz-transform 0.3s, opacity 0.3s;
    transition: transform 0.3s, opacity 0.3s;
}

.no-touch .cs-style-1 figure:hover figcaption,
.cs-style-1 figure.cs-hover figcaption {
    opacity: 1;
    -webkit-transform: translate(15px, 15px);
    -moz-transform: translate(15px, 15px);
    -ms-transform: translate(15px, 15px);
    transform: translate(15px, 15px);
}

.cs-style-1 figcaption h3 {
    margin-top: 0px;
    /*font-size: 25px;*/
}

.cs-style-1 figcaption span {
    font-size: 17px;
    display: block;
    color: #fff;
}

.cs-style-1 figcaption a {
    margin-top: 0px;
}


.grid {
    margin: 0 auto;
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: space-evenly;
    align-items: center; /* 垂直方向居中 */
    width: 80%; /* 可根据需要调整宽度 */
    margin-bottom: 50px;
}
.grid li {
    display: inline-block;
    width: 25%;
    height:25%;
    /*margin: ;*/
    text-align: left;
    position: relative;
    /*margin-left: 5%;*/
    /*margin-right: 5%;*/
    padding-bottom: 2em;
}
.grid li.last{
    margin-right:0;
}
.grid figure {
    margin: 0;
    position: relative;
}
.grid figure img {
    display: block;
    position: relative;
    height: 300px; /* 固定高度 */
    width: auto; /* 宽度自适应 */
    object-fit: cover; /* 图片比例适配，防止拉伸 */
}
.grid figcaption {
    position: absolute;
    top: 0;
    left: 0;
    padding: 15px;
    /*background:#48B1DF;*/
    background: #e8eef4;
}

/*.grid figcaption h3 {*/
/*    text-align: justify;*/
/*    font-size: 20px;*/
/*    font-weight: 400;*/
/*    line-height: 1.5;*/
/*    color: #7c8081;*/
/*}*/

.grid figcaption h3 p{
    font-size: 25px;
    font-weight: 700;
    color: #7c8081;
}

.grid .college, .direction, .email{
    text-align: justify;
    font-size: 17px;
    font-weight: 700;
    color: #7c8081;
}

.grid figcaption a {
    display: inline-block;
    height: 95%;
    padding: 10px;
}
.grid figcaption a:hover {
    color: #7c8081;
    text-decoration: underline;
    text-underline-offset: 5px;
}

/*.grid figcaption span:before {*/
/*	content: 'by ';*/
/*}*/



@media (max-width:1024px){
    .grid li {
        width: 30.9999%;
    }
    .cs-style-1 figcaption h3 {
        margin-top: 50px;
    }
}
@media (max-width:920px){
    .grid li {
        width: 30.8888%;
    }
    .cs-style-1 figcaption h3 {
        margin-top: 25px;
    }
    .cs-style-1 figcaption a {
        margin-top: 15px;
    }
}
@media screen and (max-width: 31.5em) {
    .grid {
        padding: 10px 10px 0px 10px;
    }
    .grid li {
        width: 100%;
        min-width:150px;
    }
}