/*错误页*/
.mobile-only {
  display: none;
}

.main {
  min-height: calc(100vh - 454px);
  background: #ededed;
  overflow: hidden;
  width: 100%;
}

.error-page {
  background: #ededed url(../images/con-bg.jpg) repeat-x;
}

.section {
  padding-top: 50px;
  padding-bottom: 50px;
}

.error {
  background: #FFF;
  border-radius: 8px;
  text-align: center;
  margin: 0 auto 50px auto;
  height: 650px;
  box-shadow: rgba(0, 0, 0, 0.27) 0 1px 3px, #DCDCDC 0 1px 0, #DDD 0 -1px 0;
}

.error h2,
.error h5 {
  line-height: 60px;
  height: 60px;
  color: #75757D;
}

.error h2 {
  font-weight: 500;
  color: #626262;
  text-align: left;
  padding: 0 0 0 40px;
  border-bottom: 1px solid #cecece;
}

.error h5 {
  font-weight: 500;
}

.error h6 {
  padding: 0 0 80px 0;
  font-size: 14px;
  color: #999;
}

.error .error-img {
  width: 427px;
  height: 330px;
  margin: 80px auto 0;
  background: url('../images/status-error.jpg') top center no-repeat;
}

.error .error-img.i404 {
  background-image: url('../images/404.png');
}

.upgrading-page .main {
  background-color: #ededed;
}

.upgrading-image {
  height: 418px;
  background: url(../images/upgrading.png) center top no-repeat;
  text-align: center;
  padding: 290px 0 0;
  margin: 267px 0 0;
}

.upgrading-image h2 {
  font-size: 36px;
  font-weight: 200;
  color: #000;
  margin-bottom: 20px;
}

.upgrading-image p {
  line-height: 1.8em;
  color: rgba(0, 0, 0, .4);
  font-size: 14px;
  padding: 0 2em;
}

@media only screen and (-webkit-min-device-pixel-ratio: 2.0),
only screen and (min--moz-device-pixel-ratio: 2.0),
only screen and (-o-min-device-pixel-ratio: 200/100),
only screen and (min-device-pixel-ratio: 2.0) {
  .error .error-img {
    background-image: url('../images/status-error@2x.jpg');
    background-size: contain;
  }
  .error .error-img.i404 {
    background-image: url('../images/404@2x.png');
  }
  .upgrading-image {
    background-image: url(../images/upgrading@2x.png);
    background-size: auto 240px;
  }
}

@media screen and (max-width: 736px) and (max-device-width: 736px),
screen and (max-width: 736px) and (-webkit-min-device-pixel-ratio: 2.0) {
  .mobile-only {
    display: block;
    white-space: nowrap;
  }
  .pc-only {
    display: none;
  }
  .main {
    min-height: 0;
    background: none;
    margin-top: 2.5rem;
  }
  .section {
    padding: 22px 0 20px;
  }
  .error,
  .upgrading {
    height: auto;
    margin: 0 18px;
    background: none;
    border-radius: 0;
  }
  .error h2 {
    position: relative;
    height: auto;
    margin-bottom: 7px;
    padding-left: 0;
    padding-bottom: 7px;
    border-bottom: none;
    font-size: 16px;
    line-height: 1.5;
  }
  .error h2:after {
    border-top: 1px solid #bfbfbf;
    content: ' ';
    display: block;
    width: 100%;
    position: absolute;
    left: 0;
    bottom: 0;
    transform-origin: left bottom;
  }
  .error .error-img {
    width: 217px;
    height: 160px;
    margin: 30px auto 0;
    background: url('../images/status-error.png') top center no-repeat;
    background-size: contain;
  }
  .error .error-img.i404 {
    height: 108px;
  }
  .error h5 {
    height: auto;
    font-size: 16px;
    line-height: 1.5;
    margin: 12px 0;
  }
  .error h6 {
    padding-bottom: 20px;
  }
  .upgrading-image {
    height: 200px;
    background-image: url(../images/upgrading-wap.png);
    background-position: top center;
    background-size: 280px;
    padding: 184px 20px 0;
    margin-top: 76px;
  }
  .upgrading-image h2 {
    font-size: 20px;
    margin-bottom: 12px;
    font-weight: 300;
  }
  .upgrading-image p {
    font-size: 10px;
  }
}


/* Retina 适配 */
@media only screen and (-webkit-min-device-pixel-ratio: 2.0),
only screen and (min--moz-device-pixel-ratio: 2.0),
only screen and (-o-min-device-pixel-ratio: 200/100),
only screen and (min-device-pixel-ratio: 2.0) {
  .error h2:after {
    -webkit-transform: scaleY(0.5);
    transform: scaleY(0.5);
  }
}


/* 三倍屏 适配 */
@media only screen and (-webkit-min-device-pixel-ratio: 2.5),
only screen and (min--moz-device-pixel-ratio: 2.5),
only screen and (-o-min-device-pixel-ratio: 250/100),
only screen and (min-device-pixel-ratio: 2.5) {
  .error h2:after {
    -webkit-transform: scaleY(0.33333334);
    transform: scaleY(0.33333334);
  }
}

/* pc 小屏适配 */
@media screen and (max-height: 1280px) and (min-device-width: 736px) {
  .upgrading-image {
    margin-top: 155px;
    height: 242px;
  }
}

@media screen and (max-height: 1110px) and (min-device-width: 736px) {
  .upgrading-image {
    margin-top: 147px;
    height: 230px;
  }
}
