@import 'global.less';
.k-button {
    display: inline-block;
    height: 30px;
    line-height: 30px;
    padding: 0 22px;
    font-size: 14px;
    box-sizing: border-box;
    border-radius: @radius;
    vertical-align: middle; // transition: opacity .2s ease-in-out;
    user-select: none;
    margin:0 10px 0 0;
    &:hover {

    }
    &:active {
        opacity: 1;
    }
    &:disabled {
        cursor: not-allowed;
        opacity: .5;
    }
}
.k-button-default {
    background: @primary;
    color: #fff;
    &:hover {
        background: @main;
    }
    &:disabled {
        background: @primary;
    }
    i {
        font-size: 13px;
    }
}

.k-button-spirit {
    background: none;
    border: 1px solid @ccc;
    color: @ccc;
    &:hover {
        color: @333;
    }
    &:disabled {
        color: #A3A3A3;
        border: 1px solid @gray;
    }
}

.k-button-assist {
    background: none;
    border: 1px solid @primary;
    color: @primary;
    &:hover {
        color: @main;
        border: 1px solid @main;
    }
    &:disabled {
        color: #83BFFF;
        border: 1px solid #83BFFF;
    }
}
//第二个辅助按钮
.k-button-support {
    background:none;
    border:1px solid #CCCCCC;
    color: #333333;
    &:hover {
        color:#3C99FC;
    }
    &:disabled {
        color: #CCCCCC;
    }
}
.k-button-gray {
    border: 1px solid @gray;
    background-color: @gray;
    color: @333;
    &:hover {
        //background: #fff;
        //border:1px solid @main;
        color: @main;
    }
    &:disabled {
        background-color: @gray;
        color: @333;
        border: none;
    }
    i {
        font-size: 13px;
    }
}

.k-button-link {
    background: none;
    color: @primary;
    padding:0;
    &:hover {
        color:@main;

    }
    &:disabled {
        background: none;
        text-decoration: none;
        color: #7CBBFF;
    }
}

.k-button-graylink {
    background: none;
    color: @666;
    padding:0;
    &:hover {
        color: @666;
        text-decoration: underline;
    }
    &:disabled {
        background: none;
        text-decoration: none;
        color: #A3A3A3;
    }
}

.k-button-dangerlink {
    background: none;
    color: @danger;
    padding:0;
    &:hover {
        color: @danger;
        text-decoration: underline;
    }
    &:disabled {
        background: none;
        text-decoration: none;
        color: #FD9A9A;
    }
}

//.k-button-plain {
//  background: #fff;
//  border:1px solid @primary;
//  color: @primary;
//  &:hover {
//      border-color: @main;
//      color: @main;
//  }
//}

.k-button.is-mini {
    padding: 0 10px;
    height: 20px;
    line-height: 20px;
    font-size: 12px;
}

.k-button.is-medium {
    padding: 0 16px;
    height: 26px;
    line-height: 26px;
    font-size: 12px;
}

.k-button.is-large {
    height: 40px;
    line-height: 40px;
    padding: 0 41px;
}

.k-button-danger {
    color: @danger;
    background: @gray;
    &:hover {
        color: #fff;
        background: @danger;
    }
    &:disabled {
        color: @danger;
        background: @gray;
    }
}

.k-button-primary.is-hollow {
    // color: #409eff;
    // background: #ecf5ff;
    // border-color: #b3d8ff;
    color: tint(@main, -10%);
    background: tint(@main, 90%);
    border-color: tint(@main, 70%);
}

.k-button-success.is-hollow {
    color: tint(@success, -10%);
    background: tint(@success, 90%);
    border-color: tint(@success, 70%);
}

.k-button-gray.is-hollow {
    // color: #909399;
    // background: #f4f4f5;
    // border-color: #d3d4d6;
    color: tint(@gray, -10%);
    background: tint(@gray, 90%);
    border-color: tint(@gray, 70%);
}

.k-button-warning.is-hollow {
    // color: #e6a23c;
    // background: #fdf6ec;
    // border-color: #f5dab1;
    color: tint(@warning, -10%);
    background: tint(@warning, 90%);
    border-color: tint(@warning, 70%);
}

.k-button-danger.is-hollow {
    // color: #f56c6c;
    // background: #fef0f0;
    // border-color: #fbc4c4;
    color: tint(@danger, -10%);
    background: tint(@danger, 90%);
    border-color: tint(@danger, 70%);
}

.k-btn-group {
    position: relative;
    display: inline-block;
    vertical-align: middle;
    .k-button {
        margin-left: -1px !important;
        position: relative;
        margin-right: 0;
        float: left;
        border-radius: 0;
        &:hover {
            border-color: @main;
            color: @main;
            opacity: 1;
            z-index: 99;
        }
        &:first-child {
            border-top-left-radius: @radius;
            border-bottom-left-radius: @radius;
        }
        &:last-child {
            border-top-right-radius: @radius;
            border-bottom-right-radius: @radius;
        }
    }
}

.k-btn-group-mini {
    .k-button {
        height: 25px;
        line-height: 25px;
        font-size: 12px;
        padding: 0 8px;
    }
}
//单选框按钮组样式
.k-button-plain {
    width: 96px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    background: #fff;
    border: 1px solid #ccc;
    border-left: none;
    color: #333;
    padding: 0;
    box-sizing: border-box;
    font-size: 12px;
    &:hover {
        color: @main;
    }
    &:disabled {
        background: #fff;
        text-decoration: none;
        color: #999;
    }
    &.is-large {
        width: 106px;
        font-size: 14px;
        height: 30px;
        line-height: 30px;
        padding: 0;
    }
}

//单选框按钮组样式
.k-button-plain {
    width: 96px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    background: #fff;
    border: 1px solid #ccc;
    border-left: none;
    color: #333;
    padding: 0;
    box-sizing: border-box;
    font-size: 12px;
    &:hover {
        color: @main;
    }
    &:disabled {
        background: #fff;
        text-decoration: none;
        color: #999;
    }
    &.is-large {
        width: 106px;
        font-size: 14px;
        height: 30px;
        line-height: 30px;
        padding: 0;
    }
}

.k-button-radioBorder {
    width: 96px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    background: #fff;
    border: 1px solid @main;
    color: @main;
    padding: 0;
    box-sizing: border-box;
    font-size: 12px;
    &:hover {
        color: @main;
    }
    &:disabled {
        background: #fff;
        text-decoration: none;
        color: #999;
    }
    &.is-large {
        width: 106px;
        font-size: 14px;
        height: 30px;
        line-height: 30px;
        padding: 0;
    }
}

.k-button-radioBack {
    width: 96px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    background: @main;
    border: 1px solid @main;
    color: #fff;
    padding: 0;
    box-sizing: border-box;
    font-size: 12px;
    &:hover {
        background: @main;
    }
    &:disabled {
        background: #fff;
        text-decoration: none;
        color: #999;
    }
    &.is-large {
        width: 106px;
        font-size: 14px;
        height: 30px;
        line-height: 30px;
        padding: 0;
    }
}
.bmgz button{
    margin:0;
}

//适配
@media screen and (max-width:1344px) {
    .bmgz .k-radio-group {
        margin-bottom:-20px;
    }
    .k-button-dynamicSize button{
        margin-top:20px;
        margin-bottom:10px;
    }
}
@media screen and (max-width:715px){
    section .k-button-dynamicIcon {
        padding-top:12px!important;
    }
    .k-button-dynamicIcon button{
        margin-top:20px;
        margin-bottom:10px;
    }
}
@media screen and (max-width:635px){
    .k-button-dynamicLink {
        padding-top:12px!important;
    }
    .k-button-dynamicLink button{
        margin-top:20px;
        margin-bottom:10px;
    }
}
@media screen and (max-width:1117px){
    .k-button-dynamicBtn {
        padding-top:12px!important;
    }
    .k-button-dynamicBtn button{
        margin-top:20px;
        margin-bottom:10px;
    }
}
