@charset "utf-8";

/* --- 简单的自定义模态框样式 (示例) --- */
.plugin-modal {
    display: none;
    /* 默认隐藏 */
    position: fixed;
    z-index: 10000;
    /* 确保在 CKEditor 之上 */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    /* 半透明背景 */
}

#myCustomModal-imageMultiple .modal-container {
	width: 80%;
}

.plugin-modal .modal-container {
	width: 70%;
	/* height: 468px; */
	background: #fff;
	border-radius: 4px;
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%,-50%);
}

.plugin-modal .modal-container h4 {
	display: flex;
	justify-content: space-between;
	align-items: center;
	background-color: #fff;
	border-top-left-radius:4px;
	border-top-right-radius:4px;
	height: 52px;
	line-height: 52px;
	font-size: 14px;
	color: #333;
	padding: 0 12px 0 20px;
	margin-top: 0px;
	margin-bottom: 0;
	border-bottom: 1px solid #ddd;
	position: relative;
}

.plugin-modal .modal-container h4:before {
    content: "";
    display: block;
    width: 4px;
    height: 18px;
    background-color: var(--primary-color);
    position: absolute;
    top: 17px;
    left: 8px;
}

.plugin-modal .modal-container h4 b {

}

.plugin-modal .modal-container h4 span {
	font-size: 20px;
	margin-top: -4px;
	cursor: pointer;
	padding: 0 2px;
}

.plugin-modal .modal-content {
	display: flex;
	justify-content: space-between;
}

.plugin-modal .operateBox {
	width: 220px;
	border-right: 1px solid rgb(227, 229, 232);
	padding: 10px;
}

.plugin-modal .operateBox .uploadBtn {
	width: 200px;
	height: 64px;
	background-image: url(../images/img01.png);
	background-size: 200px 64px;
	cursor: pointer;
	margin-bottom: 10px;
}

.plugin-modal .operateBox .uploadBtn p {
	padding-left: 10px;
	padding-top: 10px;
}

.plugin-modal .operateBox .uploadBtn p b {
	font-weight: 600;
	font-size: 15px;
	color: #333333;
	line-height: 20px;
	display: block;
}

.plugin-modal .operateBox .uploadBtn p span {
	font-weight: 400;
	font-size: 13px;
	color: #666666;
	line-height: 16px;
}

.plugin-modal .operateBox .uploadBtn img {

}

#myCustomModal-imageMultiple .operateBox .setUp {
	min-height: 394px;
}

.plugin-modal .operateBox .setUp {
	min-height: 360px;
	border: 1px solid #ddd;
	border-radius: 4px;
	padding-bottom: 10px;
}

.plugin-modal .operateBox .setUp h5 {
	font-weight: 600;
	font-size: 14px;
	color: #333333;
	height: 40px;
	line-height: 40px;
	border-bottom: 1px solid #ddd;
	padding: 0 10px;
	margin: 0;
}

.plugin-modal .operateBox .setUp .item {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-top: 10px;
	padding: 0 10px;
}

.plugin-modal .operateBox .setUp .item span {
	font-size: 12px;
	color: #333333;
	line-height: 20px;
	width: 60px;
	white-space: nowrap;
}

.plugin-modal .operateBox .setUp .item .input {
	width: calc(100% - 70px);
	display: flex;
	align-items: center;
	background: #EEEEEE;
	border-radius: 4px 4px 4px 4px;
	padding: 0 8px;
}

.plugin-modal .operateBox .setUp .item .input b {
	font-weight: 400;
	font-size: 14px;
	color: #333333;
	line-height: 20px;
}

.plugin-modal .operateBox .setUp .item .input input {
	width: calc(100% - 12px);
	height: 30px;
	background: transparent;
	border: none;
	outline: none;
	padding-left: 5px;
}

.plugin-modal .operateBox .setUp .item .switchBtn .layui-form-switch {
	margin-top:0px;
}

.plugin-modal .operateBox .setUp .item.align {
	display: block;
}

.plugin-modal .operateBox .setUp .alignBox {
	width: 100%;
	background-color: #EEEEEE;
	border-radius: 4px;
	padding: 4px;
	margin-top: 8px;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.plugin-modal .operateBox .setUp .alignBox span {
	width: 50px;
	height: 30px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 4px;
	cursor: pointer;
	border: 1px solid transparent;
}

.plugin-modal .operateBox .setUp .alignBox span:hover {
	border-color:#fff;
}

.plugin-modal .operateBox .setUp .alignBox span.on {
	background: #fff;
}

.plugin-modal .operateBox .setUp .align span img {

}

.plugin-modal .operateBox .setUp .align span.on {

}

.plugin-modal .imgBox {
	width: calc(100% - 220px);
}

.plugin-modal .imgBox .imgs {
	height: calc(100% - 54px);
	overflow: hidden;
	overflow-y: auto;
	padding: 10px;
}

.plugin-modal .imgBox .imgs_empty {	
	width: 100%;	
	height: 100%;	
	display: flex;	
	align-items: center;	
	justify-content: center;	
	flex-direction: column;
}

.plugin-modal .imgBox .imgs_empty p {
	font-size: 16px;
	color: #b7b1b1;
	margin-top: 10px;
}

.plugin-modal .imgBox .imgs_con {
	display: grid;
	grid-gap: 12px;
	grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
	position: relative;
}

.plugin-modal .imgBox .imgs .item {
	float: left;
	text-align: center;
	background-color: #fff;
	border: 1px solid #ddd;
	border-radius: 4px;
	display: block;
	overflow: hidden;
	position: relative;
	outline: 1px solid rgba(0, 0, 0, 0);
}

.plugin-modal .imgBox .imgs .item.checked:before {
	content:"";
	display:block;
	width:24px;
	height:24px;
	background-color: #fff;
	background-image: url(../images/img02.png);
	background-size: 100%;
	box-shadow: 0 1px 4px 1px rgba(255,255,255,0.8);
	position:absolute;
	top: 0;
	left: 0;
	z-index:2;
	border-top-left-radius: 4px;
	border-bottom-right-radius: 4px;
	border-top-right-radius: 4px;
}

.plugin-modal .imgBox .imgs .item input {	
	display: block;	
	width: 100%;	
	height: 34px;	
	text-align:center;
	line-height: 34px;	
	padding: 0 5px;	
	color: rgb(23, 25, 28);	
	font-size: 12px;	
	border: none;	
	position: absolute;	
	bottom: 0;	
	z-index: 2;
}

.plugin-modal .imgBox .imgs .item p {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 22px;
	background: rgba(255,255,255,0.5);
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 0 5px;
}

.plugin-modal .imgBox .imgs .item b {
	
}

.plugin-modal .imgBox .imgs .item .img {
	width: 100%;
	height: 140px;
	background:#f5f5f5;
	overflow: hidden;
}

.plugin-modal .imgBox .imgs .item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border: none;
	display: block;
}

.plugin-modal .imgBox .imgs .item span {
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	display: block;
	height: 34px;
	line-height: 34px;
	padding: 0 5px;
	color: rgb(23, 25, 28);
	font-size: 12px;
	position: relative;
	z-index: 1;
}

#myCustomModal-imageSingle .imgBox .imgs .item span {
	height: 44px;
	line-height: 44px;
	font-size: 14px;
}

#myCustomModal-imageSingle .imgBox .imgs .item input {
	height: 44px;
	line-height: 44px;
	font-size: 14px;
	outline:none;
}

#myCustomModal-imageMultiple .imgBox .imgs .item span {

}

#myCustomModal-imageMultiple .imgBox .imgs .item input {
	outline:none;
}

.plugin-modal .imgBox .imgBtns {
	display: flex;
	justify-content: space-between;
	align-items: center;
	border-top: 1px solid rgb(227, 229, 232);
	padding: 10px;
}

.plugin-modal .imgBox .imgBtns .imgBtns_l {
	display:flex;
}

.plugin-modal .imgBox .imgBtns .imgBtns_r {
	
}

.plugin-modal .imgBox .imgBtns .imgBtns_l .preview {
	display:flex;
	align-items: center;
	margin-left: 20px;
}

.plugin-modal .imgBox .imgBtns .imgBtns_l .preview .layui-form {
	margin-left: 8px;
}

.plugin-modal .imgBox .imgBtns .imgBtns_l .preview .layui-form-switch {
	margin-top:0;
}

.plugin-modal .imgBox .imgBtns .allCheck {

display: flex;

align-items: center;
}

.plugin-modal .imgBox .imgBtns .allCheck label {
	cursor: pointer;
	display: flex;
	justify-content: center;
	align-items: center;
}

.plugin-modal .imgBox .imgBtns .allCheck input {
	margin-right: 4px;
}

.plugin-modal .imgBox .imgBtns .allCheck label i {
	font-style: normal;
	font-weight: bold;
	margin:0 4px;
	color: var(--primary-color);
}

.plugin-modal .imgBox .imgBtns .btns {
	display: flex;
	justify-content: center;
	align-items: center;
}

.plugin-modal .imgBox .imgBtns .btns span {
	width: 56px;
	height: 32px;
	background: #FFFFFF;
	border-radius: 4px 4px 4px 4px;
	border: 1px solid #DCDFE6;
	display: flex;
	justify-content: center;
	align-items: center;
	margin-left: 12px;
	cursor: pointer;
	font-weight: 400;
	font-size: 12px;
	color: #606266;
	line-height: 22px;
}

.plugin-modal .imgBox .imgBtns .btns .del {

}

.plugin-modal .imgBox .imgBtns .btns .submit {
	border-color: var(--primary-color);
	background: var(--primary-color);
	color: #fff;
}

.imgs_con.drop-zone-active {
    background-color: var(--opacity05-color); 
    border: 2px dashed var(--primary-color);
    min-height: 100px;
}

.imgs_con.drop-zone-active .imgs_empty {
    background-color: transparent; 
}

.imgs.drop-zone-active .imgs_empty p {
    opacity: 0.7;
}

.imgs.drop-zone-active .imgs_empty img {
    opacity: 0.7;
}


/* --- End of 简单的自定义模态框样式 --- */

/* 单图上传样式 */
#myCustomModal-imageSingle.plugin-modal .modal-container {
	width:800px;
}

#myCustomModal-imageSingle .imgBox .imgs {
    display: flex;
    flex-direction: column;
    padding: 0;
}

#myCustomModal-imageSingle .single-image-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    position: relative;
}

#myCustomModal-imageSingle .single-image-params {
    width: 100%;
    display: flex;
    align-items: center;
    padding: 10px;
    background-color: #f9f9f9;
}

#myCustomModal-imageSingle .single-image-params .param-item {
    font-size: 12px;
    color: #666;
    margin-right: 20px;
}

.single-image-container .item {
    width: 300px;
    text-align: center;
}

#myCustomModal-imageSingle .single-image-container .item .img {
    margin-bottom: 0;
    max-width: 300px;
    height: auto;
}

.single-image-container .item img {
    max-width: 100%;
    max-height: 300px;
    object-fit: contain;
}

.img-single-wrapper {
    display: block;
    margin: 15px 0;
}

.img-single-wrapper.align-center {
    text-align: center;
}

.img-single-wrapper.align-right {
    text-align: right;
}

.img-single-container {
    display: inline-block;
    text-align: left;
}

.img-single-container .img-caption {
    display: block;
    margin-top: 8px;
    font-size: 14px;
    color: #666;
}

/* --- 视频选择模态框特定样式 --- */
#myCustomModal-videoChoice.plugin-modal .modal-container {
    width: 1000px;
}

#myCustomModal-videoChoice.plugin-modal .video-upload-container {
    height: 100%;
    display: flex;
    flex-direction: column;
    flex: 1;
    align-items: center;
    justify-content: space-between;
}

/* 视频选项标签样式 */
.video-type-title {
    display: flex;
    margin-bottom: 10px;
    border-radius: 4px;
    overflow: hidden;
    background-color: #f5f5f5;
}

.video-option {
    height: 36px;
    flex: 1;
    text-align: center;
    padding: 5px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-option.active {
    background-color: #006EFF;
    color: white;
}

.video-option i {
    font-size: 16px;
    margin-right: 4px;
}

.video-option span {
    font-size: 12px;
    line-height: 14px;
}

/* URL输入框样式 */
.urlBox {
	height: 64px;
	margin-bottom: 10px;
}

.urlBox .item {
}

.urlBox .item h6 {
    height: 20px;
    font-size: 12px;
    color: #333;
    margin-bottom: 5px;
    font-weight: 600;
}

.urlBox .item .inputBox {
	display: flex;
}

.urlBox .item input {
    width: calc(100% - 40px);
    height: 36px;
    border: 1px solid #ddd;
    border-right: none;
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
    padding: 0 10px;
    font-size: 12px;
}

.urlBox .item input:focus {
    outline: none;
    border-color: #006EFF;
}

.urlBox .item .inputBox span {
	background-color: #006EFF;	
	color: white;	
	cursor: pointer;	
	border-top-right-radius: 4px;	
	border-bottom-right-radius: 4px;	
	font-size: 12px;	
	display: flex;	
	align-items: center;	
	justify-content: center;	
	width: 40px;
}

/* 视频预览区域样式 */
#myCustomModal-videoChoice .video-upload-box .imgs {
     /* 调整高度以适应封面图输入框 */
     display: flex;
     justify-content: space-between;
     padding: 0;
}

.video-upload-box .imgBox .imgs .item {
    width: 100%;
    text-align: center;
    border: none;
}

/* 封面图区域样式 */
.video-cover {
    width: 240px;
    padding: 10px;
    display: none;
    display: flex;
    flex-direction: column;
    border-left: 1px solid rgb(227, 229, 232);
}

.video-cover h6 {
    font-size: 14px;
    color: #333;
    margin-top: 0;
    margin-bottom: 10px;
    font-weight: 600;
    text-align: left;
}

/* 封面图选项标签样式 */
.cover-type-title {
    display: flex;
    margin-bottom: 10px;
    border-radius: 4px;
    overflow: hidden;
    background-color: #f5f5f5;
}

.cover-option {
    height: 36px;
    flex: 1;
    text-align: center;
    line-height: 14px;
    padding: 5px 8px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.cover-option.active {
    background-color: #006EFF;
    color: white;
}

.cover-option i {
    font-size: 16px;
    margin-right: 4px;
}

/* 封面图上传按钮样式 */
.cover-upload-btn {
    width: 100%;
    height: 70px;
    border: 2px dashed #ddd;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin-bottom: 10px;
    background-color: #f9f9f9;
}

.cover-upload-btn:hover {
    border-color: #006EFF;
    background-color: #f0f7ff;
}

.cover-upload-btn p {
    color: #666;
    font-size: 12px;
    text-align: center;
}

/* 封面图URL输入框样式 */
.cover-url-box {
    display: none;
    margin-bottom: 10px;
}

.cover-url-box input {
    width: 100%;
    height: 36px;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 0 10px;
    font-size: 12px;
}

.cover-url-box input:focus {
    outline: none;
    border-color: #006EFF;
}

/* 封面预览区域 */
.cover-preview {
    display: none;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.cover-preview img {
    max-width: 100%;
    max-height: 240px;
    border-radius: 4px;
    border: 1px solid #eee;
}

/* 视频包装器样式（插入编辑器后的样式） */
.video-wrapper {
    display: block;
    margin: 15px 0;
}

.video-wrapper.align-center {
    text-align: center;
}

.video-wrapper.align-right {
    text-align: right;
}

.video-container {
    display: inline-block;
    text-align: left;
}

.video-container .item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.video-container video {
    max-width: 100%;
    height: auto;
}

.video-container span {
    display: block;
    margin-top: 8px;
    font-size: 14px;
    color: #666;
}

.video-upload-container .video-params {
    width: 100%;
    display: flex;
    align-items: center;
    padding: 10px;
    background-color: #f9f9f9;
}

.video-upload-container .video-params .param-item {
    font-size: 12px;
    color: #666;
    margin-right: 20px;
}

/* 视频预览区域样式调整 */
.video-upload-container .video-preview {
    flex: 1;
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 90%;
    margin: 0 auto;
    border-radius: 4px;
    overflow: hidden;
}

.video-upload-container .video-preview video {
    width: 100%;
    max-height: 300px;
    display: block;
}

/* 上传进度样式 */
.upload-progress {
    width: 200px;
    margin-right: 15px;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    line-height: 24px;
}

.progress-info .progress-text {
    font-size: 12px;
    color: #333;
}

.progress-info .progress-details {
    font-size: 12px;
    color: #888;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background-color: #f0f0f0;
    border-radius: 3px;
    overflow: hidden;
}

.progress-bar .progress-inner {
    height: 100%;
    background-color: var(--primary-color);
    border-radius: 3px;
    transition: width 0.3s ease;
}

/* 响应式调整 */
@media (max-width: 900px) {
    #myCustomModal-videoChoice.plugin-modal .modal-container {
        width: 90%;
        height: auto;
        max-height: 90%;
    }
    
    .plugin-modal .modal-content {
        flex-direction: column;
    }
    
    .plugin-modal .operateBox {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid rgb(227, 229, 232);
    }
    
    .plugin-modal .imgBox {
        width: 100%;
    }
}