﻿html,
body {
    font-family: 'PingFang SC', 'Hiragino Sans GB', 'Microsoft Yahei', 'arial', '宋体', 'Helvetica Neue', 'Helvetica', 'STHeiTi', 'sans-serif';
    margin: 0;
    padding: 0;
    font-size: 14px;
    color: #303133;
    background: #f8f8f8
}

body {
    padding-top: constant(safe-area-inset-top);
    padding-left: constant(safe-area-inset-left);
    padding-right: constant(safe-area-inset-right);
    padding-bottom: constant(safe-area-inset-bottom);
}

a {
    color: #303133;
    text-decoration: none;
}

.hide {
    display: none !important
}

p {
    padding: 0;
    margin: 0;
}

h1 {
    margin: 0;
}

h2 {
    margin: 0;
    font-size: 20px;
}

button {
    outline: none;
}

h3 {
    margin: 0;
    font-size: 18px;
    color: #333;
    font-weight: normal;
}

.fl {
    float: left;
}

.fr {
    float: right;
}

.clear {
    overflow: hidden;
}

.mg-h2 {
    display: block;
    width: 100%;
    font-size: 22px;
    font-weight: bold;
}

.mg-h3 {
    font-weight: normal
}

.mg-ma-20 {
    margin: 0 20px;
}

.mg-pa-20 {
    padding: 0 20px;
}

i,
cite,
em,
var,
address,
dfn {
    font-style: normal;
}

::-webkit-input-placeholder {
    color: #C0C4CC;
}

:-moz-placeholder {
    color: #C0C4CC;
}

::-moz-placeholder {
    color: #C0C4CC;
}

:-ms-input-placeholder {
    color: #C0C4CC;
}

textarea::-webkit-input-placeholder,
input::-webkit-input-placeholder {
    color: #C0C4CC;
}

textarea:-moz-placeholder,
input:-moz-placeholder {
    color: #C0C4CC;
}

textarea:-ms-input-placeholder,
input:-ms-input-placeholder {
    color: #C0C4CC;
}

.mg-toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate3d(-50%, -50%, 0);
    width: 100%;
    height: 100%;
    z-index: 1000000000;
}

.mg-toast .mg-toast-master {
    position: absolute;
    top: 0;
    left: 0;
    color: white;
    width: 100%;
    height: 100%;
}

.mg-toast span {
    position: absolute;
    top: 50%;
    left: 50%;
    padding: 5px 15px;
    background: rgba(0, 0, 0, .7);
    border-radius: 50px;
    color: white;
    transform: translate3d(-50%, -50%, 0);
}

.preloader-indicator-overlay {
    visibility: visible;
    opacity: 0;
    background: 0 0;
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, .4);
    z-index: 10600111111;
    -webkit-transition-duration: .4s;
    transition-duration: .4s;
}

.preloader-indicator-modal {
    position: fixed;
    left: 50%;
    top: 50%;
    padding: 1rem;
    margin-left: 0;
    margin-top: 0;
    background: rgba(0, 0, 0, .8);
    z-index: 11000;
    border-radius: .25rem;
    transform: translate(-50%, -50%);
}

.preloader-indicator-modal .preloader {
    display: block;
    width: 2rem;
    height: 2rem;
}


/* === Preloader === */

.preloader {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    -webkit-transform-origin: 50%;
    transform-origin: 50%;
    -webkit-animation: preloader-spin 1s steps(12, end) infinite;
    animation: preloader-spin 1s steps(12, end) infinite;
}

.preloader:after {
    display: block;
    content: "";
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20viewBox%3D'0%200%20120%20120'%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20xmlns%3Axlink%3D'http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink'%3E%3Cdefs%3E%3Cline%20id%3D'l'%20x1%3D'60'%20x2%3D'60'%20y1%3D'7'%20y2%3D'27'%20stroke%3D'%236c6c6c'%20stroke-width%3D'11'%20stroke-linecap%3D'round'%2F%3E%3C%2Fdefs%3E%3Cg%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.27'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.27'%20transform%3D'rotate(30%2060%2C60)'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.27'%20transform%3D'rotate(60%2060%2C60)'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.27'%20transform%3D'rotate(90%2060%2C60)'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.27'%20transform%3D'rotate(120%2060%2C60)'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.27'%20transform%3D'rotate(150%2060%2C60)'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.37'%20transform%3D'rotate(180%2060%2C60)'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.46'%20transform%3D'rotate(210%2060%2C60)'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.56'%20transform%3D'rotate(240%2060%2C60)'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.66'%20transform%3D'rotate(270%2060%2C60)'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.75'%20transform%3D'rotate(300%2060%2C60)'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.85'%20transform%3D'rotate(330%2060%2C60)'%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E");
    background-position: 50%;
    background-size: 100%;
    background-repeat: no-repeat;
}

.preloader-white:after {
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20viewBox%3D'0%200%20120%20120'%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20xmlns%3Axlink%3D'http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink'%3E%3Cdefs%3E%3Cline%20id%3D'l'%20x1%3D'60'%20x2%3D'60'%20y1%3D'7'%20y2%3D'27'%20stroke%3D'%23fff'%20stroke-width%3D'11'%20stroke-linecap%3D'round'%2F%3E%3C%2Fdefs%3E%3Cg%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.27'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.27'%20transform%3D'rotate(30%2060%2C60)'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.27'%20transform%3D'rotate(60%2060%2C60)'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.27'%20transform%3D'rotate(90%2060%2C60)'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.27'%20transform%3D'rotate(120%2060%2C60)'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.27'%20transform%3D'rotate(150%2060%2C60)'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.37'%20transform%3D'rotate(180%2060%2C60)'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.46'%20transform%3D'rotate(210%2060%2C60)'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.56'%20transform%3D'rotate(240%2060%2C60)'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.66'%20transform%3D'rotate(270%2060%2C60)'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.75'%20transform%3D'rotate(300%2060%2C60)'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.85'%20transform%3D'rotate(330%2060%2C60)'%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E");
}

@-webkit-keyframes preloader-spin {
    100% {
        -webkit-transform: rotate(360deg);
    }
}

@keyframes preloader-spin {
    100% {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

textarea {
    resize: none;
    background: none;
    font: inherit;
    line-height: inherit;
    letter-spacing: inherit;
    text-align: inherit;
    text-indent: inherit;
    text-transform: inherit;
    text-shadow: inherit;
    outline: none;
    border: none;
    padding: 0;
    margin: 0;
    text-decoration: inherit;
}

[contenteditable="true"],
input,
textarea {
    outline: none;
    -webkit-user-select: auto!important;
    -khtml-user-select: auto!important;
    -moz-user-select: auto!important;
    -ms-user-select: auto!important;
    -o-user-select: auto!important;
    user-select: auto!important;
    font: 400 14px 'PingFang SC', 'Hiragino Sans GB', 'Microsoft Yahei', 'arial', '宋体', 'Helvetica Neue', 'Helvetica', 'STHeiTi', 'sans-serif';
}

body input:-internal-autofill-selected {
    background: white !important;
}

/* // 粗体文字 */
.font-bold {
    font-weight: 700;
}

img {
    border: none;
    display: block;
    width: 100%;
}
* {
    box-sizing: border-box;
}
*:before,
*:after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
.otc {
    display: inline-block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.otc2 {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.otc3 {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
}
.shadow {
    box-shadow: 0 0.8vw 5.333333333333333vw rgba(0, 0, 0, 0.08);
    border-radius: 2.1333333333333333vw;
    background: #fff;
}
.ios-padding-bottom{
    padding-bottom: constant(safe-area-inset-bottom);
    padding-bottom: env(safe-area-inset-bottom);
}


body .mg-consult-message {
    position: fixed;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000000000;
    padding: 8px 12px;
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 8px;
}

.mg-consult-message span {
    color: #fff;
    font-size: 14px;
    text-align: center;
    line-height: 20px;
    white-space: pre-wrap;
    text-align: center;
    word-break: break-all;
    
}