
html {
    height: auto;
    min-height: 100%;
}

body {
    padding: 8px;
    min-height: 100%;
    max-width: 100%;
    /*background: linear-gradient(to bottom right, #ccc, #444) 100% no-repeat;*/
}

.form-control:focus,input:focus{
    box-shadow: none;
    border-color: #FF671C;
    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%;
}
.size-btn{
    height: 32px;
    margin-top: -5px;
    border-radius: 5px;
}
.btn-active{
    background: linear-gradient(to bottom,#FE661B,#FF965D);
    color: #fff;
}
.btn-active:hover,.btn-active:focus,.btn-active.focus
{
    color: #fff;
}
.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;
}
.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: 26px;font-weight: 300;margin-bottom: 10px;
}
.frame-form .btn-warning{
    background: #FF671C;font-size: 18px;
}
.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.active > a,.frame-form .nav-tabs > li.active > a:hover,.frame-form .nav-tabs > li.active > a:focus {
    background: linear-gradient(to bottom,#FE661B,#FF965D);
    color: #fff;
}



.main-frame{
    position: fixed;
    right: 7%;
    width: 48%;
    height: 95%;
    background: linear-gradient(to right bottom, #e5dad0,#e5dad0);
}
#canvas {
    position: absolute;
    left: 50%;
    top: 50%;
}
.pages-box{
    display: flex;
    justify-content: space-between;
}
.pages-box:after{
    display: none;
}
.pages-box .btn{
    height: 34px;
}
.pages-box form{
    width: 23.5%;
    flex: none;
}
.pages-box nav{
    width: 100%;
}
.outer-container {
    overflow: hidden;
    padding: 10px 0;
}

.outer-container .img-box {
    font-size: 12px;
    text-align: right;
    float: left;
    margin-bottom: 8px;
    cursor: pointer;
    color: #666;
    width: 23.5%;
    margin-right: 2%;
}
.outer-container .img-box:nth-of-type(4n){
    margin-right: 0;
}
.outer-container .img-box>div{
    font-size: 0;
    height: 75px;
    line-height: 75px;
    border: 1px solid #ccc;
}
.outer-container .img-box span{
    white-space: nowrap;
    line-height: 18px;
}
.outer-container .img-box.active>div{
    border-color: #FF671C;
}

.outer-container img {
    width: 100%;
    max-height: 100%;
}

.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 #ff671c;
}

.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: #ff7f3c;
}

.rule-options a.active {
    border: none;
    color: #FF671C;
}

.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;
    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 #ff671c;
    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: 360px;
}
.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;
}

.material-image-list img.active {
    border: 5px solid #a3533e;
}

.action-box{
    position: absolute;
    right: 30px;
    bottom: 10px;
    width: 300px;
}
.action-box .col-sm-4{
    padding: 0 8px;
}
.action-box .fixed-button{
    width: 100%;
    font-size: 12px;
    text-align: center;
    cursor: pointer;
    /*padding: 5px;*/
    color: #333;
    margin-bottom: 10px;
}

.action-box  .fixed-image{
    width: 30px;
    height: 30px;
    margin: 0 auto 5px;
}

.fixed-image.collect {
    background: url("../icon/collect1.png") 100% no-repeat;
    background-size: 100%;
}
.fixed-image.buy{
    background: url("../icon/buy1.png") 100% no-repeat;
    background-size: 100%;
}
.fixed-image.preview{
    background: url("../icon/home1.png") 100% no-repeat;
    background-size: 100%;
}
.fixed-image.download{
    background: url("../icon/download1.png") 100% no-repeat;
    background-size: 100%;
}
.action-box .fixed-button:hover{
    color: #FF5E10;
}
.action-box .fixed-button:hover .fixed-image.collect{
    background: url("../icon/collect-active.png") 100% no-repeat;
    background-size: 100%;
}
.action-box .fixed-button:hover .fixed-image.buy{
    background: url("../icon/buy1-active.png") 100% no-repeat;
    background-size: 100%;
}
.action-box .fixed-button:hover .fixed-image.preview{
    background: url("../icon/home1-active.png") 100% no-repeat;
    background-size: 100%;
}
.action-box .fixed-button:hover .fixed-image.download{
    background: url("../icon/download1-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: #FF5E10;
}

.background-color-list{
    position: fixed;
    top: 8px;
    right: 0%;
    width: 6vw;
    padding-left: 0.7vw;
    bottom: 0;
    overflow:  auto;
}
.background-color-list .background-color-item{
    width: 1.2vw;height: 1.2vw;margin-bottom: 5px;margin-right: 5px;float: left;
    cursor: pointer;
    border: 1px solid #EEEEEE;
}




.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: #FE661B;
    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: #FE661B;
}
.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,#FE661B,#FF965D);
}

.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;
}
.material-child-list li a:hover{
    color: #FE661B;
    background: #fff;
}
.material-child-list li.active a{
    color: #FE661B;
}

.close{
    color: #FE661B;
    opacity: .8;
}
.close:hover, .close:focus{
    color: #FE661B;
    opacity: 1;
}









input[type=range] {
    -webkit-appearance: none;/*清除系统默认样式*/
    background: -webkit-linear-gradient(#fe5e10, #ff8919) 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 #fe5e10; /*设置边框*/
}



.range-input{
    width: 55px;
}





















