@charset "utf-8";
/* CSS Document */


   
 
        .f_online{
            z-index: 999 !important;
        }
        .video_item{
            position: relative;
        }
        .video_item:after{
            content: '';
            position: absolute;
            left: 50%;
            top: 50%;
            margin: -35px 0 0 -35px;
            width: 50px;
            height: 50px;
            background: url("libs/plyr/video.png") no-repeat;
            background-size: contain;
			filter:alpha(opacity=40);  /* CSS3 standard */
            opacity:0.4;
        }
			 .video_item1{
            position: relative;
        }
        .video_item1:after{
            content: '';
            position: absolute;
            left: 50%;
            top: 50%;
            margin: -35px 0 0 -35px;
            width: 50px;
            height: 50px;
            background: url("libs/plyr/video.png") no-repeat;
            background-size: contain;
			filter:alpha(opacity=40);  /* CSS3 standard */
            opacity:0.4;
        }
   
          .items-warp{
              display: flex;
              justify-content: space-between;
              flex-direction: row;
              flex-wrap: wrap;
          }
          .items-thumbs{
              flex: 50% 0 1;
          }
 /* 弹窗相关样式 */
.bjq-modal {
    display: none;
    position: fixed;
    z-index: 9999; /* 确保模态框在最上层 */
    left: 0;
    top: 0;
    width: 100%;
    height: 100vh; /* 设置初始高度为视口高度，可根据实际需求调整 */
    overflow: auto;
    -webkit-overflow-scrolling: touch; /* 优化苹果手机滚动效果 */
}




.bjq-modal-content {
    background-color: white;
    width: 100%;
    display: flex;
    flex-direction: column; /* 设置主轴方向为列，符合常见内容布局逻辑 */
    align-items: stretch; /* 让子元素在交叉轴方向拉伸以填充容器高度 */
}

.bjq-big-image {
    width: 100%;
    max-width: 100%; /* 确保图片宽度不超出容器，避免拉伸变形 */
    height: auto; /* 让图片高度根据宽度比例自动调整 */
}

/* 缩略图css */
.bjq-thumbnails {
    display: flex;
    flex-wrap: wrap;
    padding: 10px;
    object-fit: contain;
}

.bjq-thumbnail {
    cursor: pointer;
    margin: 5px;
    border-radius: 4px;
    width: 48%; /* 设置宽度，以便每行能尽量排两个缩略图，可根据实际情况微调 */
    max-width: 100%; /* 确保不超出容器宽度 */
    height: auto; /* 让高度根据内容和图片本身宽高比自动调整 */
    display: block;

    /* 以下是添加的针对苹果手机兼容性的样式 */
    -webkit-box-sizing: border-box; /* 确保盒子模型在苹果手机上的兼容性 */
    box-sizing: border-box;

    /* 为图片添加过渡效果，使大小变化更平滑，可根据实际情况调整时间和效果 */
    -webkit-transition: all 0.3s ease;
    transition: all 0.3s ease;
}

/* 细分手机屏幕尺寸范围针对苹果手机不同型号进行调整 */
@media (max-width: 375px) { /* 针对类似iPhone SE等小屏幕手机 */
   .bjq-thumbnail {
        /* 可根据实际测试情况微调以下属性值 */
        margin: 3px;
        border-radius: 3px;
    }
}

@media (max-width: 414px) { /* 针对iPhone 6/7/8 Plus等屏幕尺寸的手机 */
   .bjq-thumbnail {
        margin: 4px;
        border-radius: 3.5px;
    }
}

@media (max-width: 428px) { /* 针对iPhone 13/14 Pro等屏幕尺寸的手机 */
   .bjq-thumbnail {
        margin: 4.5px;
        border-radius: 3.5px;
    }
}

@media (max-width: 768px) { /* 手机屏幕尺寸（涵盖多种苹果手机型号） */
   .bjq-thumbnail,
   .image-with-model {
        -webkit-flex-basis: 48%; /* 添加-webkit-前缀 */
        flex-basis: 48%; /* 调整为大致占容器宽度的48%，以便每行排两个 */
        -webkit-flex-grow: 1; /* 添加-webkit-前缀 */
        flex-grow: 1;
        -webkit-flex-shrink: 1; /* 添加-webkit-前缀 */
        flex-shrink: 1;
        margin: 1%;

        /* 调整布局相关属性，尝试让缩略图更好适应苹果手机布局 */
        display: block;
        -webkit-box-sizing: border-box; /* 确保盒子模型在苹果手机上的兼容性 */
        box-sizing: border-box;

        /* 进一步优化图片在小屏幕手机上的显示效果，可根据实际情况调整数值 */
        width: 98%;
        margin-left: 1%;
        margin-right: 1%;
    }
}

@media (min-width: 769px) and (max-width: 1200px) {
   .bjq-thumbnail,
   .image-with-model {
        -webkit-flex-basis: 31%; /* 添加-webkit-前缀 */
        flex-basis: 31%; /* 调整为大致占容器宽度的48%，以便每行排两个 */
        -webkit-flex-grow: 1; /* 添加-webkit-前缀 */
        flex-grow: 1;
        -webkit-flex-shrink: 1; /* 添加-webkit-前缀 */
        flex-shrink: 1;
        margin: 1%;

        /* 调整布局相关属性，尝试让缩略图更好适应苹果手机布局 */
        display: block;
        -webkit-box-sizing: border-box; /* 确保盒子模型在苹果手机上的 NONINFRINGEMENT */
        box-sizing: border-box;

        /* 进一步优化图片在该屏幕尺寸区间的显示效果，可根据实际情况调整数值 */
        width: 97%;
        margin-left: 1%;
        margin_right: 1%;
    }
}

@media (min-width: 1201px) {
    /* 较大尺寸桌面屏幕尺寸 */
  .bjq-thumbnail,
  .image-with-model {
        -webkit-flex-basis: 15%; /* 添加-webkit-前缀 */
        flex-basis: 15%; /* 调整为大致占容器宽度的15%，以便每行排六个 */
        -webkit-flex-grow: 1; /* 添加-webkit-前缀 */
        flex-grow: 1;
        -webkit-flex-shrink: 1; /* 添加-webkit-前缀 */
        flex-shrink: 1;
        margin: 1%;

        /* 调整布局相关属性，尝试让缩略图更好适应苹果手机布局 */
        display: block;
        -webkit-box-sizing: border-box; /* 确保盒子模型在苹果手机上的 NONINFRINGEMENT */
        box-sizing: border-box;

        /* 进一步优化图片在该屏幕尺寸区间的显示效果，可根据实际情况调整数值 */
        width: 98%;
        margin-left: 1%;
        margin_right: 1%;

        /* 以下是新增的针对第六个缩略图可能出现问题的调整 */
        &:nth-child(6n) {
            margin-right: 0;
        }

        &:nth-child(6n + 1) {
            margin-left: 0;
        }
    }
}
.bjq-close {
    display: inline-block;
    width: 30px; /* 设置宽度为 50px */
    height: 30px; /* 设置宽度为 50px */
    font-size: 30px; /* 字体大小，增大以便更易点击 */
    font-weight: bold;
    color: #ff4d4d; /* 字体颜色为红色 */
    background-color: white; /* 白色背景 */
    text-align: center;
    cursor: pointer; /* 鼠标指针样式 */
    position: absolute; /* 绝对定位 */
    object-fit: contain;
    border: 1px solid #666; /* 添加红色边框 */
    line-height: 30px; /* 垂直居中 */
    border-radius: 5px;

    /* 为关闭按钮添加过渡效果，使大小变化更平滑，可根据实际情况调整时间和效果 */
    -webkit-transition: all 0.3s ease;
    transition: all 0.3s ease;
}

.custom-caption {
    position: absolute; /* 绝对定位 */
    bottom: 10px; /* 距离底部10px */
    left: 50%; /* 水平居中 */
    transform: translateX(-50%); /* 真正居中 */
    background-color: rgba(0, 0, 0, 0.7); /* 半透明背景 */
    color: #fff; /* 白色文本 */
    padding: 10px; /* 添加一些内边距 */
    border-radius: 5px; /* 可选的圆角 */
    z-index: 10; /* 确保在其他元素之上 */
    object-fit: contain;

    /* 为字幕添加过渡效果，使大小变化更平滑，可根据实际情况调整时间和效果 */
    -webkit-transition: all 0.3s ease;
    transition: all 0.3s ease;
}
	 /* 视频弹窗和关闭按钮样式 */
       .video-warp {
            position: fixed;
            width: 100%;
            height: 100%;
            top: 0;
            left: 0;
            display: none;
            z-index: 99993;
            background: rgba(0,0,0,1);
        }
       .close-video-btn {
            position: absolute;
            right: 20px;
            top: 20px;
            color: #CCC;
            z-index: 9999;
            padding: 10px;
            background-color: rgba(255,255,255,1);
            box-shadow: 0 0 10px rgba(0,0,0,0.5);
        }
       .video-con {
            width: 100%;
            height:100%;
            position: relative;
            display: grid;
            place-items: center;
        }
    .plyr__video-wrapper {
        text-align: center;
    }

    .plyr audio, .plyr video {
        /*要以高度为大边*/
        /*height: 100%;*/
        /*width: auto;*/
        height: auto;
        width: auto;
        max-width: 100%;
        max-height: 100%;
    }
	
.image-with-model {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.image-with-model img {
    max-width: 100%;
    height: auto;
}

.model-text {
    margin-top: 10px;
}
