.section-iframe-mode {
    position: relative;
    /*z-index: 1;*/
}

.check-mode-drag-open {
    position: relative;
}

.check-mode-drag-open:hover .drag-focus-border {
    display: block;
}

.check-mode-drag-open .check-mode-drag-item-block {
    position: relative;
    z-index: 10;
}

.check-mode-drag-open:hover .check-mode-drag-item {
    display: block;
}

.check-mode-drag-open:hover .check-mode-drag-item-block:before {
    display: block;
}

.check-mode-drag-open .check-mode-drag-item-block:before {
    content: '';
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
    z-index: 10;
    display: none;
    border: 1px dashed #2C6ECB;
    box-sizing: border-box;
    border-radius: 2px;
}

.check-mode-drag-open .check-mode-drag-item-block:hover:before {
    display: block;
    border: 1px solid #2C6ECB;
}

.check-mode-drag-open .check-mode-drag-item-block.active:before {
    display: block;
    border: 3px solid #2C6ECB;
}

.check-mode-drag-item {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
    display: none;
}

/*.check-mode-drag-item:after {*/
/*    content: "";*/
/*    position: absolute;*/
/*    left: 0;*/
/*    top: 0;*/
/*    width: 100%;*/
/*    height: 100%;*/
/*    z-index: -2;*/
/*    background: rgba(0, 0, 0, 0.4);*/
/*}*/

.check-mode-drag-item:hover {
    display: block;

}

.check-mode-drag-item:hover .drag-focus-border {
    display: block;
}

.check-mode-drag-item.check-mode-drag-item-active {
    display: block;
}

.check-mode-drag-item.check-mode-drag-item-active-child .drag-focus-border {
    border-width: 1px !important;
}

.check-mode-drag-item.check-mode-drag-item-active .drag-focus-border {
    display: block;
}

.check-mode-drag-item.check-mode-drag-item-active .add-card-icon {
    display: none;
}

.check-mode-drag-item.choosable:hover .drag-focus-border {
    display: block;
}

.check-mode-drag-item.choosable:hover .card-info {
    display: block;
}

.check-mode-drag-item .card-info {
    position: absolute;
    left: 0;
    top: -25px;
    border-top-left-radius: 3px;
    border-top-right-radius: 3px;
    background-color: #2C6ECB;
    color: #fff;
    font-size: 14px;
    padding: 0 10px;
    z-index: 900;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;

}

.check-mode-drag-item .card-info.card-info-bottom {
    top: 0;
    border-bottom-right-radius: 3px;
}

.check-mode-drag-item .card-info span {
    display: inline-block;
    transform: scale(0.8);
}

.check-mode-drag-item.check-mode-drag-item-active .drag-focus-border {
    border: 3px solid var(--color-manage-primary, #2C6ECB);
}

.check-mode-drag-open:hover .check-mode-drag-item-active .bottom-control {
    display: block;

}

.check-mode-drag-item.check-mode-drag-item-active:hover .bottom-control {
    display: block;
}

.check-mode-drag-item .drag-focus-border {
    border: 1px solid var(--color-manage-primary, #2C6ECB);
    height: 100%;
    width: 100%;
    position: absolute;
    left: 0;
    top: 0;
    z-index: 100;
    border-radius: 4px;
    background-color: rgba(0, 0, 0, 0.04);
    display: none;
    pointer-events: none;
}

.check-mode-drag-item.focus-item .drag-focus-border {
    display: block;
}

.check-mode-drag-item .add-card-icon {
    position: absolute;
    left: 50%;
    z-index: 105;
}

.check-mode-drag-item .add-card-icon .icon {
    cursor: pointer;
    color: var(--color-manage-primary, #0b69f1);
    font-size: 16px;
    background-color: #fff;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.check-mode-drag-item .add-card-icon.bottom-add-card {
    bottom: 0;
    transform: translate(-50%, 50%);
}

.check-mode-drag-item .add-card-icon.top-add-card {
    top: 0;
    transform: translate(-50%, -50%);
}

.check-mode-drag-item .add-box {
    padding: 2px 0;
    cursor: pointer;
    width: 100%;
    position: absolute;
    z-index: 500;
    bottom: -60px;
    text-align: center;
    display: none;
}

.check-mode-drag-item .add-box .active {
    display: block;
}

.check-mode-drag-item .add-box .button-box {
    background-color: #303132;
    color: #fff;
    padding: 12px 16px;
    border-radius: 4px;
    font-size: 14px;
}

.check-mode-drag-item .add-box.top {
    display: block;
    top: 0;
    transform: translateY(-50%);
}

.check-mode-drag-item .add-box.bottom {
    display: block;
    bottom: 0;
    transform: translateY(50%);
}

.check-mode-drag-item .add-box .el-button {
    background-color: #262b30;
    border: none;
}

.check-mode-drag-item .add-box .line {
    width: 100%;
    border-top: 3px solid var(--color-manage-primary, #0b69f1);
    position: absolute;
    top: 50%;
    left: 0;
    z-index: -1;
}

.check-mode-drag-item .bottom-control {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    padding: 15px 0;
    display: none;
    z-index: 150;
}

.check-mode-drag-item .bottom-control .icon {
    width: 22px;
    height: 22px;
}

.check-mode-drag-item .card-option {
    display: flex;
    align-items: center;
    justify-content: center;
    width: max-content;
    border-radius: 4px;
    padding: 4px;
    background-color: #262b30;
    color: #fff;
}

.check-mode-drag-item .card-option .item-button {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    background-color: #262b30;
    cursor: pointer;
    color: #a7aaae;
    width: 35px;
    height: 35px;
    line-height: 35px;
    flex-shrink: 0;
    font-size: 18px;
    position: relative;
}

.check-mode-drag-item .card-option .item-button.disabled {
    cursor: not-allowed;
    color: rgba(255, 255, 255, 0.3);
}

.check-mode-drag-item .card-option .item-button.disabled {
    cursor: not-allowed;
    color: rgba(255, 255, 255, 0.3);
}

.check-mode-drag-item .card-option .item-button.disabled .can path {
    fill: rgba(255, 255, 255, 0.3);
}

.check-mode-drag-item .card-option .item-button.disabled:hover {
    background-color: #262b30;
}

.check-mode-drag-item .card-option .item-button.disabled:hover .can path {
    fill: rgba(255, 255, 255, 0.3);
}

.check-mode-drag-item .card-option .item-button:hover {
    background-color: #606266;
}

.check-mode-drag-item .card-option .item-button:hover .can path {
    fill: #fff;
}


.check-mode-drag-item .card-option .item-button .tip-text {
    position: absolute;
    top: -50px;
    left: 50%;
    height: 35px;
    transform: translateX(-50%);
    line-height: 35px;
    display: none;
    background: #FFFFFF;

    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    padding: 0 8px;
    color: #333;
    z-index: 1000;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .15); /* 阴影效果 */

}

/* 下箭头 */
.tip-text::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 100%; /* 箭头在底部border下方 */
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 8px solid #fff; /* 箭头颜色同背景 */
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.12)); /* 箭头阴影 */
}

/* 可选：加个红色描边让箭头边和主框边框一致 */
.tip-text::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 100%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 9px solid transparent;
    border-right: 9px solid transparent;
    z-index: -1;
}

.tip-text::after {
    z-index: 1;
}

.check-mode-drag-item .card-option .item-button:hover .tip-text {
    display: block;
}


.check-mode-drag-item .card-option.card-option-fixed {
    display: flex;
    position: fixed;
    bottom: 15px;
}

.check-mode-drag-item .card-option.card-option-bottom {
    display: flex;
    position: absolute;
    bottom: -55px;
}

.check-mode-relative {
    position: relative;
    z-index: 1;
}