html, body {
    padding: 0;
    margin: 0;
    background-color: rgb(242, 241, 242);
    width: 100%;
    height: 100%;
    font-family: "Microsoft YaHei", sans-serif;
    touch-action: manipulation;
    font-size: 16px;
}

.topbar, .footer {
    background-color: #333333;
    color: #efefef;
    padding: 1em 0;
    box-sizing: border-box;
}

.topbar .wrap span {
    display: inline-block;
}

.topbar .wrap, .footer .wrap {
    max-width: 1200px;
    min-width: 320px;
    margin: 0 auto;
}
.footer {
    width: 100%;
}
.footer .wrap {
    width: 100%;
    max-width: 60rem;
}
.footer .block {
    padding: 0 1em 1em 0;
    box-sizing: border-box;
    margin: 0 auto;
}
.footer .text {
    margin: 1rem 0;
    color: #666666;
    font-size: .875rem;
    font-weight: bold;
}
.footer img {
    max-width: 100%;
    max-height: 100%;
}
.footer .icon {
    height: 2rem;
    width: 2rem;
    display: inline-block;
    vertical-align: middle;
    text-align: center;
}

.footer .block_title {
    font-size: 1.1em;
    color: #eeeeee;
}

.footer {
    color: #aaaaaa;
    line-height: 1.5rem;
    background-color: #e1e1e1;
    padding: 4rem 0 0 0;
}
.footer .foot-logo img{
    max-width: 30rem;
    width: 100%;
    margin-bottom: 1rem;
}

.footer .cp {
    padding: 1em 0;
    text-align: center;
    color: #666666;
    text-transform: uppercase;
}

.footer .cp span {
    display: inline-block;
}

.topbar .wrap {
    text-align: right;
}

.container {
    min-width: 320px;
    margin: 0 auto;
}

.logo {
    padding: 0 2rem 1.5rem 0;
    font-family: 'Orbitron', sans-serif;
    text-align: justify;
    background-color: rgb(178,34,68);
}

.logo img {
    width: 100%;
    max-width: 768px;
    margin: 0 auto;
    box-sizing: border-box;
    display: block;
}

.logo .up {
    font-size: 2.5em;
    color: #3498DB;
    margin: 0;
}

.logo .down {
    margin: 0;
    font-size: 1.5em;
}

.track_form input {
    display: none;
}

.menu-wrapper .menu-icon .navicon {
    background: #ffffff;
    display: block;
    height: 2px;
    position: relative;
    transition: background .2s ease-out;
    width: 18px;
}

.menu-wrapper .menu-icon .navicon:before,
.menu-wrapper .menu-icon .navicon:after {
    background: #ffffff;
    content: '';
    display: block;
    height: 100%;
    position: absolute;
    transition: all .2s ease-out;
    width: 100%;
}

.menu-wrapper .menu-icon .navicon:before {
    top: 5px;
}

.menu-wrapper .menu-icon .navicon:after {
    top: -5px;
}

.menu-wrapper .menu-btn {
    display: none;
}

@media (min-width: 48em) {
    .menu-wrapper {
        position: relative;
        margin: -1.5rem auto;
        padding: 0 10rem;
        box-sizing: border-box;
    }

    .menu-wrapper ul {
        margin: 0;
        padding: 0;
        list-style: none;
        overflow: hidden;
        background-color: #fff;
    }

    .menu-wrapper .menu-icon {
        display: none;
    }

    .menu-wrapper .menu {
        max-height: none;
        display: flex;
        align-items: center;
        flex-direction: row;
        justify-content: space-evenly;
        padding: 0 1rem;
        background-color: rgb(1,66,132);
        overflow: visible;
        box-shadow: 0 0 5px 1px #000000;
    }

    ul.menu li {
        font-size: 1.2em;
        flex: 1;
        background-color: rgb(1,66,132);
        text-align: center;
        padding: 0;
        position: relative;
    }

    ul.menu li a {
        display: inline-block;
        color: #efefef;
        text-decoration: none;
        height: 3rem;
        line-height: 3rem;
        background-color: rgb(1,66,132);
        margin: 0 10px;
        width: 8rem;
        letter-spacing: .2rem;
    }

    ul.menu li.active a{
        background-color: #ffffff;
        color: rgb(1,66,132);
        box-shadow: 0 0 16px 5px #000000;
        font-weight: bold;
    }
    ul.menu li.active a:before, ul.menu li.active a:after{
        background-color: #ffffff;
        display: block;
        content: "";
        height: .3rem;
        position: absolute;
        width: 8rem;
    }
    ul.menu li.active a:before {
        top: -.3rem;
    }

}

/* 48em = 768px */

@media (max-width: 48em) {
    .logo {
        padding: 0 2rem 0 0;
    }
    .menu-wrapper {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
    }
    .menu-wrapper ul {
        margin: 0;
        padding: 0;
        list-style: none;
        overflow: hidden;
        background-color: #fff;
    }
    .menu-wrapper li {
        display: block;
        width: 100%;
    }
    .menu-wrapper li a {
        display: block;
        padding: 20px 20px;
        text-decoration: none;
        color: #333333;
    }

    .menu-wrapper .menu {
        clear: both;
        max-height: 0;
        transition: max-height .3s ease-out;
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }
    .menu-wrapper .menu-icon {
        cursor: pointer;
        display: inline-block;
        float: left;
        padding: 29px 20px;
        position: relative;
        user-select: none;
    }
    .menu-wrapper .menu-btn:checked ~ .menu {
        max-height: 640px;
        box-shadow: 1px 1px 4px 0 rgba(0, 0, 0, .1);
    }
}
ul.slide {
    padding: 0;
    margin: 0;
    list-style: none;
    font-size: 0;
}
ul.slide li img {
    width: 100%;
    height: auto;
}

button:focus, button:visited,
.button:focus, .button:visited {
    outline: none;
    text-decoration: none;
}

button, .button {
    line-height: 1.5;
    border: 1px solid transparent;
    border-radius: 3px;
    padding: .5em 1em;
    text-decoration: none;
    display: inline-block;
}

button:disabled, .button:disabled {
    opacity: 0.6;
}

.block-btn {
    display: block;
    width: 100%;
}

.track_form {
    width: 100%;
}

.track_form textarea {
    width: 100%;
    padding: .5em;
    box-sizing: border-box;
}

.track_form input {
    width: 100%;
    box-sizing: border-box;
    padding: .8rem;
    border-radius: 3px;
    border: 1px solid #555;
    margin-bottom: 1rem;
}

.bg-purple {
    background-color: #9B59B6;
    color: #fafafa;
}

.bg-purple2 {
    background-color: rgb(123, 86, 228);
    color: #fafafa;
}

.bg-white {
    background-color: #ffffff
}

.bg-red {
    color: #ffffff;
    background-color: #f4645f !important;
}

.bg-blue {
    background-color: #3498DB;
    color: #fafafa;
}

.bg-green {
    background-color: #27AE60 !important;
    color: #ffffff;
}

.bg-pink {
    background-color: rgba(240, 68, 107, .3);
}

.bg-green2 {
    background-color: rgba(47, 220, 159, 0.3);
}

.bg-blue2 {
    background-color: rgba(78, 196, 247, .3);
}

.bg-green3 {
    background-color: rgb(88, 206, 145);
    color: #fafafa;
}

.red-text {
    color: #f4645f;
}

.green-text {
    color: #27AE60;
}

.normal-text {
    color: #333333
}

.container .main_page {
    background-color: #ffffff;
    box-sizing: border-box;
    padding: 1em;
    box-shadow: 1px 1px 4px 0 rgba(0, 0, 0, .1);
    max-width: 80rem;
    margin: 0 auto;
}

.main_page .block {
    padding: 0 1em;
    box-sizing: border-box;
}

.main_page .block_title {
    font-size: 1.2em;
    border-bottom: 1px solid #cccccc;
    padding: .5em 0;
    color: #555;
}

.trace ul {
    padding: 0;
    margin: 0;
    list-style: none;
    border-bottom: 1px solid #ccc;
    box-sizing: border-box;
}

.trace li, .trace tr {
    border: 1px solid #ccc;
    border-bottom: none;
    width: 100%;
    box-sizing: border-box;
}

.trace li.split {
    padding: .5em .2em;
    box-sizing: border-box;
}

.trace td {
    padding: .5em .2em;
    box-sizing: border-box;
}

.trace td.time {
    border-right: 1px solid #ccc;
    box-sizing: border-box;
    width: 14em;
    text-align: center;
    vertical-align: middle;
}

.block_title img {
    height: 1em;
    vertical-align: middle;
    margin-right: .5em;
}

.link .row {
    display: flex;
    align-items: center;
    flex-direction: row;
    justify-content: space-between;
    margin-bottom: 2em;
}

.link .row a {
    width: 6em;
    padding: 1.5em 2em;
    background-color: #ccc;
    text-align: center;
    text-decoration: none;
    border-radius: 3px;
    font-size: 1em;
    font-weight: bold;
    color: #ffffff;
    box-sizing: content-box;
}

.link .row a:visited {
    color: #ffffff;
}

.link .row a:hover {
    color: #fe5214;
}

@media screen and (max-width: 48em) {
    .logo {
        margin: 0 auto;
    }

    .topbar {
        padding: .5em;
    }

    .topbar span {
        line-height: 1.5em;
        font-size: 14px;
    }

    .footer {
        padding: 1em;
    }

    .track_form textarea {
        display: none;
    }

    .track_form input {
        display: block;
    }

    body .trace td.time {
        width: 6em;
        padding: 3px;
    }

    .link .row a {
        font-size: 13px;
        padding: 1.5em .5em;
    }
}

#chatbox {
    position: fixed;
    bottom: 0;
    right: 0;
    padding: 2rem;
}
#chatbox .btn {
    background-color: #3498DB;
    color: #ffffff;
    width: 5rem;
    height: 5rem;
    border-radius: 3rem;
    text-align: center;
    box-shadow: 0 0 5px 1px #999999;
    cursor: pointer;
}
#chatbox .btn .material-icons {
    font-size: 2rem;
}
#chatbox .btn span {
    line-height: 5rem;
}
#chatbox .dialog {
    display: none;
    width: 25rem;
    font-size: .875rem;
    background-color: #ffffff;
    border: 1px solid #eeeeee;
    border-radius: 3px;
}
#chatbox.open .btn {
    display: none;
}
#chatbox.open .dialog {
    display: block;
    position: relative;
}
#chatbox .dialog .title {
    height: 3rem;
    line-height: 3rem;
    background-color: #3498DB;
    color: #ffffff;
    display: block;
    padding: .5rem 1rem;
}
#chatbox .dialog .close-btn {
    position: absolute;
    right: 0;
    top: 0;
    color: #ffffff;
    height: 4rem;
    line-height: 4rem;
    width: 4rem;
    cursor: pointer;
    text-align: center;
}
#chatbox .dialog .material-icons {
    vertical-align: middle;
}
#chatbox .dialog .form {
    padding: 1rem 2rem;
    box-sizing: border-box;
}
#chatbox .dialog .form .form-control {
    margin-bottom: 1rem;
    padding: 0 1rem 0 0;
    display: flex;
    align-items: center;
    position: relative;
}
#chatbox .dialog .form label{
    flex-basis: 4rem;
    text-align: right;
    vertical-align: top;
    display: inline-block;
    margin-right: 1rem;
}
#chatbox .dialog .form .form-control.required:after{
    content: '*';
    color: #f4645f;
    position: absolute;
    right: 0;
}
#chatbox .dialog .form .form-control input, #chatbox .dialog .form .form-control textarea {
    font-size: .875rem;
    padding: .2rem .5rem;
    box-sizing: border-box;
    flex: 1;
}
#chatbox .dialog button {
    width: 6rem;
    text-align: center;
    margin: 0 auto;
    display: block;
}
