
@font-face {
    font-family: 'bahnschrift';
    src: url('../../font-awesome/fonts/bahnschrift.ttf') format('woff'),
    url('../../font-awesome/fonts/bahnschrift.ttf') format('woff2');
    font-display: swap;
}
/* 照片墙容器样式 */
.grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    height:calc(100vh - 13rem);
    width:90%;
}
.grid .loading{
    width:100%;
    height:50rem;
}
.grid-item {
    /*width: 15.6%; !* 每个图片占宽度的 32% *!*/
    /*margin-bottom: 1rem; !* 每个图片底部的间距 *!*/
    cursor: pointer;
    display:block;
    padding-bottom:3.5rem !important;
}

.grid-item img {
    width: 100%; /* 图片宽度适应容器 */
    border-radius: 1.5rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
/* 蒙层样式 */
.grid-item .overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5); /* 半透明黑色背景 */
    color: white;
    opacity: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    border-radius: 1.5rem;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

/* 鼠标悬停时显示蒙层 */
/*.grid-item:hover .overlay {*/
/*    opacity: 1;*/
/*}*/
.grid-item img {
    /*transform: translateY(60px);  !* 初始位置：稍微偏下 *!*/
    opacity: 0;  /* 初始透明度为 0 */
    transition: transform 1.2s ease, opacity 1.2s ease;  /* 动画持续时间 0.6s */
}
.grid-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 1.5rem;


}
.grid-item img.visible {
    transform: translateY(0) !important;  /* 图片滑动回原位 */
    opacity: 1 !important;  /* 渐显，透明度变为 1 */
}
.grid-item video.visible {
    transform: translateY(0) !important;  /* 图片滑动回原位 */
    opacity: 1 !important;  /* 渐显，透明度变为 1 */
}
.grid-item  .like-svg{
     width:3rem;
     height: 3rem;
}
.grid-item  .share_action{
     gap:3px;
}
.grid-item .like-text,.grid-item  .share-text{
       font-size: clamp(12px, 1.5rem, 24px); /* 最大值24px可选，根据需求添加 */

    line-height: 1.4rem;
    height: 0.4rem;
    display: block;
}
.grid-item  .share-text{
     height:auto;
}
.grid-item  .layui-icon-share{
        font-size: 2rem;
}
 .grid .grid-item-actions{
      position: absolute; 
      bottom: 0px; 
      left: 0; 
      right: 0; 
      display: flex; 
      justify-content: space-between;
      gap: 20px; 
      z-index: 10;
}
.grid-item  .grid-item-video{
    width: 100%; 
    height: 100%; 
    object-fit: cover;
    transform: translateY(0); 
    opacity: 1; 
    transition: none;
}
.grid-item  .grid-item-video.init{
     transform: translateY(20px);
     opacity: 0; 
     transition: all 0.5s ease;
}
.grid-item  .grid-item-img{
    width: 100%;
    height: 100%;
    object-fit: cover; 
}
.grid-item  .grid-item-img.init{
     transform: translateY(20px);
     opacity: 0;
     transition: all 0.5s ease;
}
.grid-item .overlay{
    position: absolute;
    top: 0; 
    left: 0; 
    width: 100%;
    height:calc(100% - 30px); 
    display: flex;
    align-items: flex-end; 
    justify-content: flex-end;
    background: rgba(0,0,0,0.3); 
    color: #fff;
    opacity: 0; 
    transition: opacity 0.3s ease;
}
.container-body{
    width:100%;

}

.grid_right{
    width: 78%;
    margin:0 auto;
}
.top_bg{
    width: 100%;
    margin:0 auto;
    padding-top:1rem;
    padding-bottom:4rem;
    position:relative;
}
.top_bg img {
    width:100%;
    height:auto;

}
.top_bg span{

    font-family: 'bahnschrift';
    font-weight: 600;
    color: #FFFFFF;
    font-size: 11rem;
    text-align: left;
    font-style: normal;
    text-transform: none;
    position: absolute;
    z-index: 3;
    right: 15rem;
    top: 7rem;
}
.mobile_bg{
    display:none;
}


@media (max-width: 1920px) {
    /*.grid-item {*/
    /*    width: 19%; !* 每个图片占宽度的 32% *!*/
    /*}*/
}
@media(max-width: 1300px){
    .grid-item .like-svg {
                 width: 4rem;
                
    }
    .grid-item{
        padding-bottom: 24px !important;
    }
   .grid-item .like-text, .grid-item .share-text {
        font-size: 2.5rem;
                
    }
}
@media (max-width: 768px) {
    .grid-item{
        padding-bottom: 20px !important; 
    }
    .grid-item img{
            border-radius: 5.5rem;
    }
    .grid-item  .like-svg{
        width:13rem;
        height: 13rem;
    }
    .grid-item  .like-text, .grid-item  .share-text {
        font-size: 8.5rem;
        line-height: 4.4rem;
        height: 0.4rem;
        display: block;
    }
    .grid-item  .layui-icon-share{
        font-size: 9rem;
    }
    .pc_bg{
        display:none
    }
    .mobile_bg{
        display: block;
    }
    .top_bg   span{
        font-size: 15rem;
        width:70rem;
        word-break: keep-all;
        text-align:right;
        top:22rem;

    }
    .tool{
        display:none !important;
    }
    .grid_right{
        width: 90%;
        margin:0 auto;
        padding-top: 30rem;
    }
    .tool{
        left: 0rem;
        padding-top: 39rem !important;
        width:auto !important;
    }
    .no-data{
        justify-content: flex-start !important;
    }
    .user_info_dialog .modal-body {
        padding: 11.5rem;
        margin-top:26rem;
    }

    .user_info_dialog .modal-dialog {
        width:213rem !important;
        max-width: 84vw !important;
    }
    .modal-dialog .modal-header .modal-title{
        font-size: 9rem;
    }
    .no_result span{
        font-size: 9rem;
    }


}

.layui-layer-shade{
    opacity: 0.9 !important;
}
.layui-layer-title{
    background-color:#fff !important;
}
