/*====================常用控件样式开始========================*/

/*按压后背景灰色*/
.cms-change-bg:active {
    background-color: rgba(200,200,200,0.5) !important;
}
/*按压后元素半透*/
.cms-act:active {
    opacity: 0.6;
}
/*按压后弹动效果*/
.cms-ain:active {
    transform: scale(0.95,0.97);
    -webkit-transform: scale(0.95,0.97);
    -webkit-transition-duration: 300ms;
    opacity: .7;
}

.cms-icon-bg-big,.cms-icon-bg-mini,.cms-icon-bg-square,.cms-circle,.cms-badge-big, .cms-badge-mini{
    display: inline-block;
    position: relative;
    display: -webkit-box !important;
    display: box !important;
    -webkit-box-align: center;
    box-align: center;
    -webkit-box-pack: center;
    box-pack: center;
}

/*图标圆形背景*/
.cms-icon-bg-big {
    height: 3em;
    width: 3em;
    border-radius: 3em;
    padding: 0.5em;
    background-color: #EEEEEE;
}
.cms-icon-bg-mini {
    height: 2em;
    width: 2em;
    border-radius: 2em;
    padding: 0.3em;
    background-color: #EEEEEE;
}
/*方形纯色背景*/
.cms-icon-bg-square {
    height: 3em;
    width: 3em;
    border-radius: 0.5em;
    padding: 0.3em;
    background-color: #EEEEEE;
}
/*无背景圆型边框*/
.cms-circle {
    height: 2.3em;
    width: 2.3em;
    padding: 0.3em;
    font-size: 0.8em;
    border: 1px solid #aaa;
    border-radius: 3em;
    color: #848484;
    overflow: hidden;
}

/*数量提示角标*/
.cms-badge-big {
    height: 1.2em;
    min-width: 1.2em;
    border-radius: 1.2em;
    padding: 0.2em;
    font-size: 0.8125em;
    background-color: #f00;
    color: #fff;
    z-index: 1;
}
.cms-badge-mini {
    height: 1em;
    min-width: 1em;
    border-radius: 1em;
    padding: 0.2em;
    font-size: 0.625em;
    background-color: #f00;
    color: #fff;
    z-index: 1;
}
.cms-badge-abs {
    position: absolute;
    top: -0.3em;
    right: -0.3em;
}

.cms-badge-abslb {
    position: absolute;
    bottom: -0.3em;
    left: -0.3em;
}

.cms-badge-absrb {
    position: absolute;
    bottom: -0.3em;
    right: -0.3em;
}


.cms-badge-abslt {
    position: absolute;
    top: -0.3em;
    left: -0.3em;
}

/*按钮禁用样式*/
.cms-btn-disabled {
    opacity: 0.6;
    cursor: not-allowed;
}
/*按钮*/
.cms-btn {
    border-radius: 0.4em;
    font-size: 1em;
    padding: 0.5em;
    min-width: 3em;
    display: inline-block;
    position: relative;
}
.cms-btn-mini {
    border-radius: 0.4em;
    font-size: 0.8em;
    padding: 0.3em;
    min-width: 2em;
    display: inline-block;
    position: relative;
}
.cms-btn-block {
    font-size: 1em;
    padding: 0.5em;
}
.cms-btn-radius {
    text-align: center;
    border: 1px solid;
    font-size: 1em;
    border-color: #FCC954;
    color: #FCC954;
    border-radius: 1.2em;
    padding: 0.4em 0.5em;
    min-width: 3em;
    display: inline-block;
    position: relative;
    text-indent: 0;
}
.cms-btn, .cms-btn-mini,.cms-btn-block {
    text-align: center;
    background-color: #E03D3E;
    color: #FFFFFF;
    text-indent: 0;
}
.cms-btn:active, .cms-btn-mini:active, .cms-btn-radius:active, .cms-btn-big:active,.cms-btn-block:active {
    opacity: 0.6;
}

/*按钮型单选框与复选框*/
.cms-checkbox-btn, .cms-checkbox-round, .cms-radio-btn {
    display: none;
}
.cms-checkbox-btn + label:active, .cms-checkbox-round + label:active, .cms-radio-btn + label:active {
    background-color: rgba(230,230,230,0.5);
}
.cms-checkbox-round + label {
    border-radius: 1em;
    height: 1em;
    width: 1em;
    padding: 0.3em;
    font-size: 0.6em;
    border: 1px solid #BABABA;
    background-color: #FFFFFF;
    color: #FFFFFF;
    text-align: center;
    display: inline-block;
    position: relative;
}
.cms-radio-btn + label, .cms-checkbox-btn + label {
    border-radius: 0.4em;
    padding: 0.4em;
    border: 1px solid #BABABA;
    background-color: #FFFFFF;
    font-size: 1em;
    color: #848484;
    text-align: center;
    display: inline-block;
    position: relative;
}
.cms-checkbox-btn:checked + label, .cms-checkbox-round:checked + label, .cms-radio-btn:checked + label {
    background-color: #E03D3E;
    border-color: #E03D3E !important;
    color: #FFFFFF !important;
}

/*没有外边框的input textarea*/
.no-outline {
    outline: none;
}
/*文本输入框*/
.cms-input input, .cms-input textarea {
    outline: none;
    margin: 0px;
    border: 0px;
    width: 100%;
    height: 100%;
    -webkit-appearance: none;
    line-height: 1.2em;
    background: none;
    text-decoration: none;
    display: block;
    font-size: 1em;
}

/*圆角搜索输入框*/
.cms-search {
    background-color: #fff;
    width: 85%;
    height: 2.2em;
    border-radius: 1.5em;
}
.cms-search input {
    outline: none;
    margin-left: 1.2em;
    font-size: 1em;
}

/*左右滚动的选项卡*/
.cms-slide-tab {
    overflow-x: scroll;
    height: 100%;
}

/*两端为圆角的选项卡*/
.cms-circle-tab div{
    padding:0.4em;
    border-style:solid;
    border-width:1px 0px 1px 1px;
    border-color:#E03D3E;
}
.cms-circle-tab-active{
    color: #FFFFFF;
    background-color: #E03D3E;
}
.cms-circle-tab div:active{
    opacity: 0.6;
}
.cms-circle-tab div:first-child{
    -webkit-border-top-left-radius: 1.2em;
    border-top-left-radius: 1.2em;
    -webkit-border-bottom-left-radius: 1.2em;
    border-bottom-left-radius: 1.2em;
}
.cms-circle-tab div:last-child{
    -webkit-border-top-right-radius: 1.2em;
    border-top-right-radius: 1.2em;
    -webkit-border-bottom-right-radius: 1.2em;
    border-bottom-right-radius: 1.2em;
    border-right: 1px solid #E03D3E;
}


/*将元素固定在底部*/
.cms-bottom-bar {
    position: fixed;
    z-index: 900;
    bottom: 0;
    left: 0;
    right: 0;
    margin: auto;
}
/*将元素固定在顶部*/
.cms-top-bar {
    position: fixed;
    z-index: 900;
    top: 0;
    left: 0;
    right: 0;
    margin: auto;
}


/*内容跟随标签滑动*/
.cms-tab {
    width: 100%;
    overflow: hidden;
}

.cms-tab-nav {
    width: 100%;
    background-color: #fff;
    display: box;
    display: -webkit-box;
    box-sizing: border-box;
}

.cms-tab-content {
    display: -webkit-box;
}

.cms-tab-content > li {
    -webkit-box-flex: 1;
    width: 100%;
}

.cms-tab-nav li {
    box-flex: 1;
    -webkit-box-flex: 1;
    text-align: center;
    box-sizing: border-box;
    width: 100%;
}

.cms-tab-nav li.current {
    color: #F40;
    border-bottom: #F40 solid 3px;
}

.cms-tab-nav li:active {
    opacity: .8;
}
/**
 * 轮播组件
 */
.cms-slider {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding-top: 31.25%;
}

.cms-slider-content {
    display: -webkit-box;
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
}

.cms-slider-content > li {
    -webkit-box-flex: 1;
    width: 100%;
    height: 100%;
}

.cms-slider-content > li img {
    display: block;
    width: 100%;
}

.cms-slider-content > li span {
    display: block;
    width: 100%;
    height: 100%;
    background-repeat: no-repeat;
    -webkit-background-size: 100% 100%;
}

.cms-slider-content > li.active {
    opacity: .5;
}

.cms-slider-indicators {
    position: absolute;
    display: -webkit-box;
    -webkit-box-pack: center;
    width: 100%;
    bottom: 0.5em;
}

.cms-slider-indicators li {
    display: block;
    text-indent: 100%;
    white-space: nowrap;
    overflow: hidden;
    width: 0.6em;
    height: 0.6em;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 1em;
    margin-right: 0.6em;
    -webkit-box-sizing: border-box;
    background-clip: padding-box;
    position: relative;
}

.cms-slider-indicators li.current:before {
    content: '';
    position: absolute;
    background-color: #fff;
    left: 0em;
    top: 0em;
    width: 0.6em;
    height: 0.6em;
    border-radius: 1em;
    -webkit-box-sizing: border-box;
    background-clip: padding-box;
}

.cms-slider-indicators-center {
    -webkit-box-pack: center;
    right: 0;
}

/*折叠面板*/
.cms-accordion dl dd > div:first-child {
    background-color:#FFFFFF;
    padding: 0.4em;
    border-top: 1px solid #eee;
}
.cms-accordion dl dd > div > div:last-child {
    color: #aaa;
    transition: all 0.3s ease-in-out;
}
.cms-accordion dl dd > div:first-child:active {
    opacity: 0.5;
}
.cms-accordion dl dd > div:last-child {
    background-color: #FFF;
    height: 0px;
    overflow: hidden;
    transition: all 0.3s ease-in-out;
}

.cms-accordion .transform90 {
    transform: rotate(90deg);
    -ms-transform:rotate(90deg); /* IE 9 */
    -webkit-transform:rotate(90deg); /* Safari and Chrome */
}

/*底部弹窗*/
.cms-popup{
    position: fixed;
    z-index: 900;
    background-color: rgba(0,0,0,0.3);
    top:0;
    bottom: 0;
    left: 0;
    right: 0;
    margin: auto;
}
.cms-popup>div:last-child{
    height:0px;
    overflow: hidden;
    transition: all 0.3s ease-in-out;
}

/*下拉选择*/
.cms-select {
    display: -webkit-box !important;
    display: box !important;
    position: relative;
    -webkit-box-align: center;
    box-align: center;
    -webkit-box-pack: center;
    box-pack: center;
    min-height: 2em;
    padding: 0.1em 0.3em;
}

.cms-select select {
    left: 0;
    top: 0;
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    -webkit-appearance: none;
    border: 0;
}

.cms-select .icon:before {
    width: 1em;
    height: 1em;
    display: -webkit-box !important;
    display: box !important;
    position: relative;
    -webkit-box-align: center;
    box-align: center;
    -webkit-box-pack: center;
    box-pack: center;
    font: normal normal normal 14px/1 FontAwesome;
    font-size: 1.5em;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    content: "\f107";
}

.cms-select .text {
    -webkit-box-flex: 1;
    box-flex: 1;
    padding: 0 1em;
}
/*====================常用控件样式结束========================*/
