/*
 * =====================================================
 * 页面公共样式、主体样式
 * =====================================================
 */

 /*初始化类*/
@charset "UTF-8";
html {
	font-family:  "微软雅黑", Tahoma, Helvetica, Arial, sans-serif;
	-webkit-text-size-adjust: 100%;
	background: #ffffff;
}
*{
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	-webkit-tap-highlight-color: transparent;
}
body {
	margin: 0;
	padding: 0;
	line-height: normal;
	-webkit-overflow-scrolling: touch;
	font-size: 0.28rem;
}
.bdshow{
	opacity: 1;
}
img {
	border: 0;
}

*:focus{
	outline: medium;
}

article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
main,
nav,
section,
summary {
    display: block;
}

audio,
canvas,
progress,
video {
    display: block;
}

a {
    background: transparent;
    text-decoration: none;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    
}
h1,h2,h3,h4,h5,h6{
	font-weight: normal;
}
h1{
	font-size: 0.28rem;
	color: #333333;
}
ol, ul, li {
    list-style: outside none none;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
}

a:active {
    color: none;
}
a{
	color: #808080;
}
select,
textarea,
input,
button {
	display: block;
	border-radius: 0.10rem;
	width: 100%;
	color: #666666;
	margin: 0.20rem 0;
	border:1px solid #ececec;
	font-size: 0.28rem;
	-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    -webkit-appearance: none !important;
}

input,textarea{
	padding: 0.20rem;
}
 /*主样式*/
.pull-left {
	float: left !important;
}

.pull-right {
	float: right !important;
}

.clearfix:before, .clearfix:after {
    display: table;
    content: ' ';
}
.clearfix:after {
    clear: both;
}

.ellipsis {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.ellipsis2 {
    display: -webkit-box;
    overflow: hidden;
    white-space: normal !important;
    text-overflow: ellipsis;
    word-wrap: break-word;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.ellipsis3 {
    display: -webkit-box;
    overflow: hidden;
    white-space: normal !important;
    text-overflow: ellipsis;
    word-wrap: break-word;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}
.dcenter {
	margin-left: auto;
	margin-right: auto;
}
.icon{
	display: inline-block;
}

/*解决移动端1px边框变粗样式*/
.border-t,
.border-b,
.border-l,
.border-r,
.border-tb,
.border {
    position: relative;
}
.header:after,
.border-t:after,
.border-b:after,
.border-l:after,
.border-r:after,
.border-tb:after,
.border:after {
    display: block;
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    -webkit-transform-origin: 0 0;
    -webkit-transform: scale(1);
    pointer-events: none;
}
.header:after{
	border-bottom: 1px solid #8c8c8c;
}
.border-l:after {
    border-left: 1px solid #c8c7cc;
}
.border-r:after {
    border-right: 1px solid #c8c7cc;
}
.border-t:after {
    border-top: 1px solid #c8c7cc;
}
.border-b:after {
    border-bottom: 1px solid #ededed;
}
.border-tb:after {
	border-top: 1px solid #c8c7cc;
    border-bottom: 1px solid #c8c7cc;
}
.border:after {
    border:1px solid #c8c7cc;
}
.border.border-radius:after {
    border-radius: 6px;
}
@media screen and (-webkit-min-device-pixel-ratio:1.5) {
	.header:after,
    .border-t:after,
    .border-b:after,
    .border-l:after,
    .border-r:after,
    .border-tb:after,
    .border:after {
        right: -100%;
        bottom: -100%;
        transform: scale(0.5);
        -webkit-transform: scale(0.5);
    }
}
::-webkit-input-placeholder {
	color:rgb(218,218,218);
	font-size: 0.28rem;
	font-family:  "微软雅黑";
}
:-moz-placeholder {
	color:rgb(218,218,218);
	font-size: 0.28rem;
	font-family:  "微软雅黑";
}
::-moz-placeholder {
	color:rgb(218,218,218);
	font-size: 0.28rem;
	font-family:  "微软雅黑";
}
:-ms-input-placeholder {
	color:rgb(218,218,218);
	font-size: 0.28rem;
	font-family:  "微软雅黑";
}
/*开关*/
.switch {
  	-webkit-appearance: none;
       -moz-appearance: none;
          	appearance: none;
  	position: relative;
  	width: 1rem;
  	height: 0.5rem;
  	border: 1px solid #DFDFDF;
  	outline: 0;
  	border-radius: 0.05rem;
  	box-sizing: border-box;
  	background: #cccccc;
  	padding:1px;
}
.switch:before {
  	content: " ";
  	position: absolute;
  	top: 0;
  	left: 0;
  	width: 50%;
  	height: 0.46rem;
  	border-radius: 0.05rem;
  	background-color: #FDFDFD;
  	-webkit-transition: -webkit-transform .3s;
  	transition: -webkit-transform .3s;
  	transition: transform .3s;
  	transition: transform .3s, -webkit-transform .3s;
}
.switch:after {
  	content: " ";
  	position: absolute;
  	top: 0;
  	left: 0;
  	width: 50%;
  	height: 0.46rem;
  	border-radius: 0.05rem;
  	background-color: #FFFFFF;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
  	-webkit-transition: -webkit-transform .3s;
  	transition: -webkit-transform .3s;
  	transition: transform .3s;
  	transition: transform .3s, -webkit-transform .3s;
}
.switch:checked {
  	border-color: #fa3445;
  	background-color: #fa3445;
}
.switch:checked:before {
  	-webkit-transform: scale(0);
          	transform: scale(0);
}
.switch:checked:after {
  	-webkit-transform: translateX(0.48rem);
          	transform: translateX(0.48rem);
}
