/*开关的大小*/
.switch-container {
    margin-top: 10px;
    height: 20px;
    width: 130px;
}

/*设置checkbox不显示*/
.switch {
    display: none;
}

/*设置label标签为椭圆状*/
label {
    display: block;
    background-color: #EEEEEE;
    height: 100%;
    width: 100%;
    cursor: pointer;
    border-radius: 25px;
}

/*在label标签内容之前添加如下样式，形成一个未选中状态*/
label:before {
    content: '';
    display: block;
    border-radius: 25px;
    height: 100%;
    width: 20px;
    background-color: white;
    opacity: 1;
    box-shadow: 1px 1px 1px 1px rgba(0, 0, 0, 0.08);
    -webkit-transition: all 0.2s ease;
}

/*在label标签内容之后添加如下样式，形成一个选中状态*/
label:after {
    position: relative;
    top: -20px;
    left: 20px;
    content: '';
    display: block;
    border-radius: 25px;
    height: 100%;
    width: 20px;
    background-color: white;
    opacity: 0;
    box-shadow: 1px 1px 1px 1px rgba(0, 0, 0, 0.08);
    -webkit-transition: all 0.2s ease;
}


/* ~ 兄弟选择符。
   p~ul ：位于 p 元素之后的所有 ul 元素
*/

/*选中后，选中样式显示*/
.switch:checked~label:after {
    opacity: 1;
}

/*选中后，未选中样式消失*/
.switch:checked~label:before {
    opacity: 0;
}

/*选中后label的背景色改变*/
.switch:checked~label {
    background-color: rgb(100, 107, 109);
}/*开关的大小*/
.switch-container {
    height: 20px;
    width: 40px;
}

/*设置checkbox不显示*/
.switch {
    display: none;
}

/*设置label标签为椭圆状*/
label {
    display: block;
    background-color: rgb(112, 129, 143);
    height: 100%;
    width: 100%;
    cursor: pointer;
    border-radius: 25px;
}

/*在label标签内容之前添加如下样式，形成一个未选中状态*/
label:before {
    content: '';
    display: block;
    border-radius: 25px;
    height: 100%;
    width: 20px;
    background-color: rgb(0, 153, 255);
    opacity: 1;
    box-shadow: 1px 1px 1px 1px rgba(0, 0, 0, 0.08);
    -webkit-transition: all 0.2s ease;
}

/*在label标签内容之后添加如下样式，形成一个选中状态*/
label:after {
    position: relative;
    top: -20px;
    left: 20px;
    content: '';
    display: block;
    border-radius: 25px;
    height: 100%;
    width: 20px;
    background-color: rgb(0, 131, 207);
    opacity: 0;
    box-shadow: 1px 1px 1px 1px rgba(0, 0, 0, 0.08);
    -webkit-transition: all 0.2s ease;
}


/* ~ 兄弟选择符。
   p~ul ：位于 p 元素之后的所有 ul 元素
*/

/*选中后，选中样式显示*/
.switch:checked~label:after {
    opacity: 1;
}


/*选中后，未选中样式消失*/
.switch:checked~label:before {
    opacity: 0;
}

/*选中后label的背景色改变*/
.switch:checked~label {
    background-color: rgb(0, 200, 255);
}
.textClass{
    position: relative;
    font-size: 14px;
    text-align: center;
    margin-top: -18px;
    margin-left:22px;
    width: 150px;
    /* background-color: bisque; */
    color: white;
}