
/* global html/body rules neutralised for the Next app (they leaked to every page
   when linked globally). The studio wrapper carries any needed padding. */
.framing-studio-page {
    min-height: 100%;
    max-width: 100%;
}
.size-btn{
    height: 32px;
    margin-top: -5px;
    border-radius: 5px;
}
.btn-active{
    background: linear-gradient(to bottom,#353535,#646464);
    color: #fff;
}
.btn-active:hover{
    color: #FFFFFF;
}
.size-btn.btn:focus, .size-btn.btn:active:focus, .size-btn.btn.active:focus, .size-btn.btn.focus, .size-btn.btn:active.focus, .size-btn.btn.active.focus {
    outline: none;
    outline-offset: -2px;
}
.form-control:focus,input:focus{
    box-shadow: none;
    border: 1px solid var(--framing-main-color);
    outline: none;
}
.loading-box {
    display: none;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    opacity: .5;
    z-index: 5100;
}

.loading-box img {
    position: absolute;
    left: 50%;
    top: 50%;
    margin-left: -40px;
}

.main-container{
    display: flex;
    width: 90%;
    margin-left: 5%;
}
.frame-form{
    font-size: 16px;
    width: 43%;
}
.frame-form .form-item{
    display: flex;align-items: center;
}
.frame-form .form-item img{
    width: 60px;
    flex: none;
    height: 60px;
    margin-right: 20px;
}
.frame-form .form-item .form-group{
    width: 100%;
}
.frame-form .col-form-label{
    font-size: 22px;
    font-weight: 300;margin-bottom: 10px;
}
.frame-form .btn-warning{
    background: linear-gradient(to bottom,#353535,#646464);
    border-color: #353535;
}
.frame-form .btn-warning:focus {
    background: linear-gradient(to bottom,#353535,#646464);
    border-color: #353535;
}
.frame-form .btn-warning h3{
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
}
.frame-form .btn-warning h3 i{
    vertical-align: bottom;
}
.frame-form .frame-ruler-input{
    height: 32px;border-radius: 5px;background: #F6F6F6;
    border: none;
    padding: 0 10px;
    box-shadow: 0 1px 1px 1px #DBDBDB inset;
}

.frame-form .nav-tabs{
    border: none;
    margin: 20px -5px 0;
}
.frame-form .nav > li{
    width: 25%;
    text-align: center;
    padding: 0 5px;
}
.frame-form .nav-tabs > li > a {
    border-radius: 15px;
    padding: 0;
    line-height: 30px;
    color: #fff;
    margin: 0;
    background: linear-gradient(to bottom,#333,#666);
}
.frame-form .nav-tabs > li > a:hover{
    border-color: transparent;
}
.frame-form .nav-tabs > li > a h3{
    font-size: 13px;
    line-height: 30px;
}
.frame-form .nav-tabs > li > a h3 .layui-icon{
    display: none;
    cursor: pointer;
    float: right;
    margin-right: 9px;
    /*display: inline-block;*/
}
.frame-form .nav-tabs > li > a h3 .layui-icon:hover{
    /*color: #ff0000;*/
}
.frame-form .nav-tabs > li.active > a,.frame-form .nav-tabs > li.active > a:hover,.frame-form .nav-tabs > li.active > a:focus {
    background: linear-gradient(to bottom,var(--framing-main-color),rgba(var(--framing-main-color-opacity),0.8));
    color: #fff;
}



.main-frame{
    position: fixed;
    right: 5%;
    width: 50%;
    height: 95%;
    background: linear-gradient(to right bottom, #bcab91,#50412A);
}
#canvas {
    position: absolute;
    left: 50%;
    top: 50%;
}
.pages-box{
    display: flex;
    justify-content: space-between;
}
.pages-box:after{
    display: none;
}
.pages-box .layui-btn{
    height: 34px;line-height: 34px;
}
.pages-box form{
    width: 23.5%;
    flex: none;
}
.pages-box .frame-pager{
    width: 100%;
    line-height: 20px;
    white-space: nowrap;
    display: flex;
    justify-content: flex-end;
    text-align: center;
}
.pages-box .frame-pager .layui-laypage{
    margin: 0;
}
.pages-box .layui-laypage a,.pages-box .layui-laypage span{
    margin: 0 5px;font-size: 14px;
}

.outer-container {
    overflow: hidden;
    padding-top: 20px;
}

.outer-container .img-box {
    font-size: 12px;
    text-align: right;
    float: left;
    margin-bottom: 8px;
    cursor: pointer;
    color: #666;
    width: 15.3%;
    margin-right: 1.5%;
    overflow: hidden;
}
.outer-container .img-box:nth-of-type(6n){
    margin-right: 0;
}
.outer-container .img-box>div{
    font-size: 0;
    height: 80px;
    display: flex;
    align-items: center;
    border: 1px solid #ccc;
    overflow: hidden;
}
.outer-container .img-box span{
    white-space: nowrap;
    line-height: 19px;
    font-size: 12px;
}
.outer-container .img-box.active>div{
    border-color: var(--framing-main-color);
}

.outer-container img {
    width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.nav-item a {
    color: #fff;
}

.nav-tabs, .panel {
    margin: 0 auto;
    width: 100%;
}

.panel {
    margin-top: 15px;
    border-radius: 0;
    border: none;
    box-shadow: none;
}

.panel-body {
    padding: 0;
}
.card-label{
    font-weight: 300;
    font-size: 16px;
}
.card-color-list {
    padding: 10px;
    border: 1px solid #ccc;
}

.card-color-list .card-color-item {
    display: inline-block;
    width: 30px;
    height: 30px;
    margin: 3px;
    border: 1px solid #ccc;
    cursor: pointer;
    font-size: 24px;
    text-align: center;
    line-height: 30px;
    vertical-align: middle;
}
.card-color-list .card-color-item img{
    width: 80%;
    height: 80%;
    display: block;
    margin: 10%;
}

.card-color-list .card-color-item.active {
    border: 2px solid var(--framing-main-color);
}

.range-box {
    display: flex;
    align-items: center;
}

.pagination {
    margin: 0;
    vertical-align: middle;
}

@media screen and (max-width: 1366px){
    .pagination+small{
        display: none;
    }
}


.filter-condition,.search-rule{
    margin-bottom: 20px;
}
.rule-list{
    margin-top: 1px;
    background: #F6F6F6;
}
.rule-title {
    font-size: 16px;
    width: 80px;
    background: #656565;
    color: #fff;
    vertical-align: middle;
}

.rule-options a {
    font-size: 14px;
}
.rule-options a:hover{
    color: var(--framing-main-color);
}

.rule-options a.active {
    border: none;
    color: var(--framing-main-color);
}

.search-name-input{
    padding-left: 28px;
    border-radius: 0;
}
.search-name-input+span{
    position: absolute;
    left: 8px;
    top: 8px;
    z-index: 10;
    color: #999;
}


.material-image-list {
    display: flex;
    flex-flow: wrap;
    max-height: 61vh;
    overflow: auto;
}
.material-image-list::-webkit-scrollbar {/*滚动条整体样式*/
    width: 10px;     /*高宽分别对应横竖滚动条的尺寸*/
    height: 1px;
}

.material-image-list::-webkit-scrollbar-thumb {/*滚动条里面小方块*/
    border-radius: 10px;-webkit-box-shadow: inset 0 0 5px rgba(0,0,0,0.2);
    background: #828282;
}

.material-image-list::-webkit-scrollbar-track {/*滚动条里面轨道*/
    -webkit-box-shadow: inset 0 0 5px rgba(0,0,0,0.2);
    border-radius: 10px;
    background: #EDEDED;
}
.material-image-list>div {
    cursor: pointer;
    width: 22%;
    margin: 10px 8px;
    font-size: 16px;
    display: flex;
    flex-direction: column;
    display: -webkit-box;      /* OLD - iOS 6-, Safari 3.1-6 */
    display: -moz-box;         /* OLD - Firefox 19- (buggy but mostly works) */
    display: -ms-flexbox;      /* TWEENER - IE 10 */
    display: -webkit-flex;     /* NEW - Chrome */
    display: flex;             /* NEW, Spec - Opera 12.1, Firefox 20+ */
}
.material-image-list .frame-img-box{
    height:100%;
    border:1px solid var(--framing-main-color);
    display: -webkit-box;      /* OLD - iOS 6-, Safari 3.1-6 */
    display: -moz-box;         /* OLD - Firefox 19- (buggy but mostly works) */
    display: -ms-flexbox;      /* TWEENER - IE 10 */
    display: -webkit-flex;     /* NEW - Chrome */
    display: flex;
    align-items: center;
    box-sizing: content-box;
    overflow: hidden;
    transition: box-shadow .3s;
    -webkit-box-flex: 1;      /* OLD - iOS 6-, Safari 3.1-6 */
}
.mac .material-image-list .frame-img-box{
    max-height: 250px;
}


.material-image-list .frame-img-box:hover{
    box-shadow: 0 0 6px 3px #ddd;
}
.material-image-list .frame-img-box.active{
    box-shadow: 0 0 6px 5px #bbb;
}
.material-image-list img{
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.material-image-list>div p{
    margin-top: 5px;white-space: nowrap;
}

.material-image-list img.active {
    border: 5px solid rgba(var(--framing-main-color-opacity),0.8);
}

.action-box{
    position: absolute;
    right: 30px;
    bottom: 10px;
    width: 320px;
    display: flex;
    justify-content: space-between;
}
.action-box .col-sm-4{
    padding: 0 8px;
}
.action-box .fixed-button{
    width: 100%;
    font-size: 12px;
    text-align: center;
    cursor: pointer;
    padding:0 5px;
    color: #fff;
}

.action-box  .fixed-image{
    width: 40px;
    height: 40px;
    margin: 0 auto 10px;
}
.fixed-image.collect {
    background: url("/images/web/frame-studio/collect.png") 100% no-repeat;
    background-size: 100%;
}
.fixed-image.buy{
    background: url("/images/web/frame-studio/buy.png") 100% no-repeat;
    background-size: 100%;
}
.fixed-image.preview{
    background: url("/images/web/frame-studio/home.png") 100% no-repeat;
    background-size: 100%;
}
.fixed-image.download{
    background: url("/images/web/frame-studio/download.png") 100% no-repeat;
    background-size: 100%;
}
.action-box .fixed-button:hover{
    color: #FFFFFF;
}
.action-box .fixed-button:hover .fixed-image.collect{
    background: url("/images/web/frame-studio/collect-active.png") 100% no-repeat;
    background-size: 100%;
}
.action-box .fixed-button:hover .fixed-image.buy{
    background: url("/images/web/frame-studio/buy-active.png") 100% no-repeat;
    background-size: 100%;
}
.action-box .fixed-button:hover .fixed-image.preview{
    background: url("/images/web/frame-studio/home-active.png") 100% no-repeat;
    background-size: 100%;
}
.action-box .fixed-button:hover .fixed-image.download{
    background: url("/images/web/frame-studio/download-active.png") 100% no-repeat;
    background-size: 100%;
}
.action-box .fixed-button span{
    vertical-align: middle;
}


.cut-box .origin-image{
    width: 100%;
}

.image-container{
    background-color: #f7f7f7;
    overflow: hidden;
    width: 100%;
    text-align: center;
    min-height: 200px;
    max-height: 600px;
}
.bottom-text{
    position: fixed;bottom: 5px;
    right: 70px;
}


.pagination > li > a, .pagination > li > span{
    color: #828282;border: none;
    border-radius: 50%;
    padding: 0 6px;
    margin-right: 5px;
}
.pagination > .active > a, .pagination > .active > a:focus, .pagination > .active > a:hover, .pagination > .active > span, .pagination > .active > span:focus, .pagination > .active > span:hover{
    background: var(--framing-main-color);
}

.background-color-list{
    position: fixed;
    top: 8px;
    right: 2%;
    width: 2.5%;
}
.background-color-list .background-color-item{
    width: 2.5vw;height: 2.5vw;margin-bottom: 5px;
    cursor: pointer;
}




.mirror-custom-form legend{
    padding: 10px 0;
    margin: 0;
    border-bottom: none;
    border-top: 1px solid #ccc;
    position: relative;
}
.mirror-custom-form .open > .dropdown-menu{
    width: 100%;
    border-radius: 0;
    margin: 0;
    min-width: 0;

}
.mirror-custom-form .dropdown-toggle{
    color: #fff;
    background: var(--framing-main-color);
    width: 55px;
    padding: 3px 6px;
    font-size: 16px;
    border: none;
}
.mirror-custom-form .custom-unit{
    font-size: 16px;
}
.mirror-custom-form .dropdown-menu > li > a{
    padding: 3px 6px;
}
.mirror-custom-form .dropdown-menu > .active > a,.mirror-custom-form  .dropdown-menu > .active > a:hover,.mirror-custom-form  .dropdown-menu > .active > a:focus{
    background: var(--framing-main-color);
}
.mirror-custom-form .dropdown-toggle:after{
    content: ' ∨';
}
.mirror-custom-form label{
    font-size: 20px;font-weight: normal;
}

.custom-planar-mirror{
    display: none;
    background-image:linear-gradient(to right bottom,#B0B0B0 0%,#E1E1E1 25%,#fff 45%,#fff 55%,#E1E1E1 75%,#B0B0B0)
}
.custom-grind-mirror{
    position: relative;
    background: linear-gradient(to right bottom, #8F8F8F 0%, #AAA 25%, #E0E0E0 45%, #E0E0E0 55%, #AAA 75%, #8F8F8F);
}
.custom-grind-mirror:after{
    content: '';
    position: absolute;
    left: 10px;
    top: 10px;
    width:calc(100% - 20px);
    height: calc(100% - 20px);
    background: linear-gradient(to right bottom, #B0B0B0 0%, #E1E1E1 25%, #fff 45%, #fff 55%, #E1E1E1 75%, #B0B0B0);
}


.nav-stacked > li + li{
    margin-top: 5px;
}
.nav-pills li.material-type-item>a{
    font-size: 14px;
    text-align: center;
    border-radius: 15px;
    padding: 0;
    line-height: 30px;
    color: #fff;
    margin: 0;
    background: linear-gradient(to bottom,#333,#666);
}
li.material-type-item.active>a{
    background: linear-gradient(to bottom,var(--framing-main-color),rgba(var(--framing-main-color-opacity),0.8));
}

.material-type-item .material-child-list{
    display: none;
}
.material-type-item.active .material-child-list{
    display: block;
}
.material-child-list li a{
    padding: 8px 15px;
    cursor: pointer;
    white-space: nowrap;
}
.material-child-list li a:hover{
    color: var(--framing-main-color);
    background: #fff;
}
.material-child-list li.active a{
    color: var(--framing-main-color);
}

.close{
    color: var(--framing-main-color);
    opacity: .8;
}
.close:hover, .close:focus{
    color: var(--framing-main-color);
    opacity: 1;
}

.labels-container{
    margin-bottom: 20px;
}

.labels-row{
    margin-bottom: 1px;
}

.labels-content{
    padding: 0 5px;
}
.labels-content .labels-value{
    padding: 4px 8px;
    font-size: 14px;
}
.labels-content .labels-input-box{
   width: 250px;vertical-align: middle;
}
.labels-content .label-input{
    width: 50px;
}
.labels-content .labels-input-box .label-select-unit{
    color: #fff;
    height: 20px;
    background: #ADADAD;
    padding: 0 4px;
    line-height: 18px;
    display: none;
    position: relative;
    vertical-align: middle;
    font-size: 14px;
    width: 42px;
}
.labels-content .label-select-unit span{
    float: right;font-size: 12px;
    position: relative;top: 1px;
}
.labels-content .label-select-unit select{
    opacity: 0;
    position: absolute;
    left: 0;
    top: 0;
    color: #333;
}
.labels-content .label-select-unit .layui-form-select{
    position: absolute;
    left: 0;
    top: 0;
}

.labels-content .label-select-unit .layui-form-select .layui-input{
    background: none;
    color: #fff;
    border: none;
    height: 20px;
    width: 100%;
    padding-left: 5px;
    padding-right: 0;
}

.labels-content .label-select-unit .layui-form-select .layui-edge {
    right: 0; border: none;
}
.labels-content .label-select-unit .layui-form-select dl{
    top: 20px;padding: 0;
}
.labels-content .label-select-unit .layui-form-select dl dd{
    color: #333;
}
.labels-content .label-select-unit .layui-form-select dl dd.layui-this{
    background-color: var(--framing-main-color);color: #fff;
}





.labels-content .labels-input-box+div{
    display: table-cell;
}
.framing-studio-page{
    height: 100%;
}

.background-main.btn:hover{
    color: #fff;
    opacity: .9;
}


@media screen and (max-width: 1024px){
    .main-container {
        width: 100%;
        margin-left: 0;
    }
    .frame-form .form-item img{
        margin-right: 5px;
    }
}





input[type=range] {
    -webkit-appearance: none;/*清除系统默认样式*/
    background: -webkit-linear-gradient(var(--framing-main-color),rgba(var(--framing-main-color-opacity),0.8)) no-repeat, #ddd;/*设置左边颜色为#61bd12，右边颜色为#ddd*/
    background-size: 10% 100%;/*设置左右宽度比例*/
    height: 8px;/*横条的高度*/
    border-radius: 8px;
}
/*拖动块的样式*/
input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;/*清除系统默认样式*/
    height: 24px;/*拖动块高度*/
    width: 24px;/*拖动块宽度*/
    background: #fff;/*拖动块背景*/
    border-radius: 50%; /*外观设置为圆形*/
    border: solid 1px var(--framing-main-color); /*设置边框*/
}


.width-input-btn{
    display: inline-flex;
    align-items: center;
}
.range-input{
    width: 55px;
}

.frame-pager .layui-laypage .layui-laypage-curr .layui-laypage-em{
    background-color: var(--framing-main-color);
}
.frame-pager .layui-laypage a:hover{
    color: var(--framing-main-color);
}




















