.ct-radio-group {
    font-size: 0;
    display: inline-block;
    //竖列样式
    &.ct-radio-group__col {
        .ct-radio {
            display: block;
            .ct-radio-label {
                float: left;
                margin-left: 0;
                margin-right: 10px;
            }
            .ct-radio-input {
                vertical-align: top;
            }
        }
    }
}
//默认款式
.ct-radio {
    padding: 5px 15px;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    display: inline-block;
    margin-right: 10px;
    border-radius: 3px;
    font-size: 14px;
    .ct-radio-input {
        display: inline-block;
        width: 16px;
        height: 16px;
        background:#fff;
        border-radius: 100%;
        position: relative;
        vertical-align: middle;
        border: 1px solid #e6e6e6;
        .ct-radio-input__inner {
            position: absolute;
            width: 60%;
            height: 60%;
            top: 20%;
            left: 20%;
            border-radius: 100%;
            background: $primary-bg;
            will-change:scale;
            transition:.2s ease-in-out;
            transform: scale(0);
        }
        &:hover {
            border:1px solid  #007aff;
        }

    }
    .ct-radio-label {
        display: inline-block;
        line-height: 15px;
        vertical-align: middle;
        margin-left: 10px;
        font-size: 13px;
    }        
    &.is-checked {
        .ct-radio-input {
            border: 1px solid #007aff;
            .ct-radio-input__inner {
                transform: scale(1);
            }
            .ct-radio-label {
                color: #007aff;
            }
        }
    }
    &.is-disabled {
        &:hover,&:hover,&{
            cursor: not-allowed;
            cursor: not-allowed;
            opacity: .8;
            .ct-radio-input {
                border: 1px solid #ccc;
                background: #fff;
                .ct-radio-input__inner {
                    background: #ccc;
                }
            }
            .ct-radio-label {
                color: #ccc; 
            }
        }
    }
}
//按钮款式
.ct-radio-group__button {
    border-radius: 3px;
    overflow: hidden;
    .ct-radio {
        margin-right: 0;
        padding: 5px 20px;
        border:solid #e6e6e6;
        border-width: 1px 1px 1px 0; 
        border-radius: 0;
        text-align: center;
        // transition:background .3s ease-in-out;
        &:first-child {
            border-radius: 3px  0 0 3px;
            border-width: 1px;
        }
        &:last-child {
            border-radius: 0 3px  3px 0;
        }
        .ct-radio-label {
            margin-left: 0;
        }
        &:hover {
            .ct-radio-label{
                color: #007aff;
            }
        }
        &.is-checked,&.is-disabled.is-checked {
            background: #007aff;
            .ct-radio-label {
                color: #fff;
            }
        }
        &.is-disabled {
            &.is-checked  {
                background: #e6e6e6;   
            }
            .ct-radio-label {
                cursor: not-allowed;
                color: #e6e6e6; 
            }
        }
    }
}


