﻿/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

html {
    color: #222;
    font-size: 1em;
    line-height: 1.4;
}

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * These selection rule sets have to be separate.
 * Customize the background color to match your design.
 */

::selection {
    background: #b3d4fc;
    text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #ccc;
    margin: 1em 0;
    padding: 0;
}

/*
 * Remove the gap between audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https://github.com/h5bp/html5-boilerplate/issues/440
 */

audio,
canvas,
iframe,
img,
svg,
video {
    vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
    resize: vertical;
}

/* ==========================================================================
   Browser Upgrade Prompt
   ========================================================================== */

.browserupgrade {
    margin: 0.2em 0;
    background: #ccc;
    color: #000;
    padding: 0.2em 0;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */

* {
  box-sizing: border-box;
  word-break: break-all;
  white-space: normal;
  word-wrap: break-word;
  letter-spacing: 0.075em;
}
html, body {
  font: 12px/1.5 "\5FAE\8F6F\96C5\9ED1","Microsoft Yahei","Hiragino Sans GB",tahoma,arial,"\5B8B\4F53" !important;
  background-color: #fff;
}

.container {
  width: 1200px;
  margin-right: auto;
  margin-left: auto;
}
@media screen and (max-width: 1400px) {
  .container {
    width: 1080px;
  }
}

@media screen and (max-width: 1200px) {
  html, body {
   width: 1200px;
  }
  .header:hover {
   width: 1200px;
  }
  .header.active,
  .header.active .container {
   width: 100%;
  }
  .header.static,
  .header.static .container {
   width: 1200px;
  }
}

ul.list-style-none,
ul.list-style-none li {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* input begin */
input[type="text"],
input[type="password"],
textarea {
  width: 100%;
  padding: 0.8225em;
  font-size: 14px;
  color: #333;
  border: 1px solid #ddd;
  border-radius: 0;
  background-color: #fff;
  outline: none;
}
input[type="text"]:hover,
input[type="password"]:hover,
textarea:hover {
  border: 1px solid #ddd;
  box-shadow: inset 1px 1px 3px 1px #f8f8f8, inset -1px -1px 3px 1px #f8f8f8;
}
input[type="text"]:focus,
input[type="password"]:focus,
textarea:focus,
input[type="text"]:active,
input[type="password"]:active,
textarea:active {
  border: 1px solid #65c3fe;
  box-shadow: inset 1px 1px 3px 1px #e0f3ff, inset -1px -1px 3px 1px #e0f3ff;
}

input[type="text"].warning,
input[type="password"].warning,
textarea.warning {
  border: 1px solid #fea319;
  box-shadow: inset 1px 1px 3px 1px #ffedd1, inset -1px -1px 3px 1px #ffedd1;
}

input[type="text"]::-webkit-input-placeholder,
input[type="password"]::-webkit-input-placeholder,
textarea::-webkit-input-placeholder {
  color: #ccc;
}
input[type="text"]:-moz-placeholder,
input[type="password"]:-moz-placeholder,
textarea:-moz-placeholder {
  color: #ccc;
}
input[type="text"]::-moz-placeholder,
input[type="password"]::-moz-placeholder,
textarea::-moz-placeholder {
  color: #ccc;
}
input[type="text"]:-ms-input-placeholder,
input[type="password"]:-ms-input-placeholder,
textarea:-ms-input-placeholder {
  color: #ccc;
}
/* input end */

.input-with-tips {
  position: relative;
  padding: 17px 0;
}
.input-with-tips .tips {
  position: absolute;;
  bottom: -4px;
  right: 0px;
  font-size: 14px;
  color: #fea319;
}

/* form begin */

/* form end */

/* sprite begin */
.icon-global,
.icon-homepage {
 display: inline-block;
}
/* srpite end */

/* link begin */
a.tungee-link:active,
a.tungee-link:focus,
a.tungee-link:hover,
a.tungee-link:active *,
a.tungee-link:focus *,
a.tungee-link:hover * {
 color: #0096ff;
}
/* link end */

/* button begin */
.btn {
  box-sizing: border-box;
  display: inline-block;
  padding: 0.6em 2.4em;
  font-weight: 400;
  line-height: 1.42857143;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  vertical-align: middle;
  cursor: pointer;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  background-image: none;
  border: 1px solid transparent;
  border-radius: 3px;
}
.btn.disabled, .btn[disabled] {
  box-shadow: none;
  cursor: not-allowed;
}
a.btn.disabled
 {
  pointer-events: none;
}

.btn-blue {
  background-color: #0098fe;
  color: #fff;
}
.btn-blue:hover {
  background-color: #0084eb;
}
.btn-blue:active, .btn-blue:focus {
  background-color: #0084eb;
}
.btn-blue.disabled,
.btn-blue:disabled {
  background-color: #a6dbfe;
}
/* button end */

/* header begin */
.header {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 9999;
  width: 100%;
  font-size: initial;
  background-color: transparent;
  transition: margin-top .5s ease-out, background-color .5s ease-out;
  -moz-transition: margin-top .5s ease-out, background-color .5s ease-out;
  -webkit-transition: margin-top .5s ease-out, background-color .5s ease-out;
  -o-transition: margin-top .5s ease-out, background-color .5s ease-out;
}
.header a {
  padding: 1.5em 1em;
  display: inline-block;
  font-size: 16px;
  color: #fff;
  cursor: pointer;
  text-decoration: none;
}
.header a:hover,
.header a:active {
 color: #0084eb;
}
.header .btn {
  transition: color .2s ease-out, background-color .2s ease-out;
  -moz-transition: color .2s ease-out, background-color .2s ease-out;
  -webkit-transition: color .2s ease-out, background-color .2s ease-out;
  -o-transition: color .2s ease-out, background-color .2s ease-out;
}
.header .logo {
 padding: 16px 0 8px;
 display: inline-block;
 text-decoration: none;
}
.header .icon-global-logo-active {
 display: none;
}
.header .header-right {
 float: right;
}
.header .nav-top {
  display: inline-block;
}
.header .nav-top li {
 margin: 0 9px;
 display: inline-block;
}
.header .btn {
  width: 110px;
  padding: 0.6em 0;
  font-size: 16px;
}
.header .btn.btn-login {
  margin-left: 25px;
  color: #fff;
  border: 1px solid #fff;
  background: transparent;
}
.header .btn.btn-trial {
  margin-left: 10px;
  color: #0084eb;
  background: rgb(255, 255, 255);
  background: rgba(255, 255, 255, 0.9);
}

.header:hover {
  background-color: rgb(255, 255, 255);
  background-color: rgba(255, 255, 255, 0.9);
}
.header.active {
  background-color: rgb(255, 255, 255);
  background-color: rgba(255, 255, 255, 0.9);
  box-shadow: 0 1px 12px #e8e8e8;
  border-bottom: 1px solid #e8e8e8;
}
.header:hover .icon-global-logo,
.header.active .icon-global-logo {
  display: none;
}
.header:hover .icon-global-logo-active,
.header.active .icon-global-logo-active {
  display: inline-block;
}
.header:hover a,
.header.active a {
  color: #4d4d4d;
}
.header:hover a:hover,
.header.active a:hover {
  color: #0084eb;
}
.header.active .btn.btn-login,
.header:hover .btn.btn-login {
  color: #0084eb;
  border: 1px solid #0098ff;
  background-color: #fff;
}
.header.active .btn.btn-login:hover,
.header:hover .btn.btn-login:hover,
.header.active .btn.btn-trial,
.header:hover .btn.btn-trial {
  color: #fff;
  border: 1px solid #0098ff;
  background-color: #0098ff;
}
.header.active .btn.btn-trial:hover,
.header:hover .btn.btn-trial:hover {
  color: #fff;
  border: 1px solid #0084eb;
  background-color: #0084eb;
}
.header.static {
  position: fixed;
  background-color: rgb(255, 255, 255);
  background-color: rgba(255, 255, 255, 0.95);
}

.header .user {
  width: 270px;
  display: inline-block;
  text-align: right;
}

.header .dropdown {
  position: relative;
  display: inline-block;
}
.header .dropdown .dropdown-text {
  font-size: 16px;
  color: #fff;
  cursor: pointer;
  text-decoration: none;
  background-color: transparent;
}
.header .dropdown .dropdown-text a {
  text-decoration: none;
}
.header .dropdown .dropdown-list {
  position: absolute;
  min-width: 160px;
  left: 0;
  top: 72px;
  z-index: 11;
  padding-top: 15px;
}
.header .nav-top .dropdown .dropdown-list {
  left: -40px;
}
.header .dropdown ul {
  margin: 0;
  padding: 10px 0;
  display: none;
  list-style: none;
  text-align: center;
  background-color: #fff;
  background-color: rgba(255, 255, 255, 0.95);
  border-radius: 5px;
}
.header .dropdown ul:before {
  content: '';
  position: absolute;
  left: 50%;
  top: 5px;
  margin-left: -10px;
  display: block;
  border-style: solid;
  border-width: 0 10px 10px 10px;
  border-color: transparent;
  border-bottom-color: #fff;
  border-bottom-color: rgba(255, 255, 255, 0.95);
}
.header .dropdown ul li {
  margin: 0;
  padding: 0;
  display: block;
}
.header .dropdown ul li a {
  margin: 0;
  padding: .8em 1em;
  display: block;
  font-size: 14px;
  color: #757575;
  text-decoration: none;
}
.header .dropdown ul li a:hover {
  color: #333;
}
.header .dropdown:hover ul {
  display: block;
}
.header.active .dropdown:hover .dropdown-text a,
.header:hover .dropdown:hover .dropdown-text a {
  color: #0084eb;
}
.header.active .dropdown ul {
  box-shadow: 0 1px 6px #ddd;
}

.header .dropdown .dropdown-text a::after {
  content: '';
  display: inline-block;
  background-image: url('../images/sprite-dropdown.png');
  background-position: -17px -0px;
  width: 17px;
  height: 13px;
}
.header:hover .dropdown .dropdown-text a::after,
.header.active .dropdown .dropdown-text a::after {
  background-position: -0px -0px;
}
.header.active .dropdown:hover .dropdown-text a::after,
.header:hover .dropdown:hover .dropdown-text a::after {
  background-position: -0px -13px;
}
/* header end */

/* footer begin */
.footer {
  // position: relative;
  // z-index: 10;
  // padding: 30px 0 60px;
  // font-size: 16px;
  // background-color: #fff;
}
.footer.footer-bg-grey {
  background-color: #f4f4f4;
}
// .footer ul {
//   margin: 40px 0;
// }
// .footer li {
//   display: inline-block;
// }
// .footer li.list-border-left {
//   border-left: 1px solid #dcdcdc;
// }
// .footer li a {
//   font-size: 16px;
//   color: #4d4d4d;
//   text-decoration: none;
// }
// .footer p {
//   margin: 0;
//   font-size: 16px;
//   color: #bcbcbc;
// }
a.gray-link {
  color: #bcbcbc;
  text-decoration: none;
}
a.gray-link:active,
a.gray-link:focus,
a.gray-link:hover,
a.gray-link:active *,
a.gray-link:focus *,
a.gray-link:hover * {
  color: #bcbcbc;
  text-decoration: underline;
}
/* footer end */

/* toast begin */
.toast {
  position: fixed;
  left: 50%;
  top: 40%;
  z-index: 10000;
  display: none;
  width: 320px;
  margin-left: -160px;
  padding: 1.6em;
  font-size: 16px;
  color: #484848;
  background-color: #fff;
  border: 1px solid #0096ff;
  box-shadow: 0 0 5px 1px #ddd;
  text-align: center;
}
.toast.active {
  display: block;
}
/* toast end */

/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
* Text align
*/

.left {
 text-align: left;
}
.right {
 text-align: right;
}
.center {
 text-align: center;
}

/*
 * Hide visually and from screen readers
 */

.hidden {
    display: none !important;
}

/*
 * Hide only visually, but have it available for screen readers:
 * http://snook.ca/archives/html_and_css/hiding-content-for-accessibility
 */

.visuallyhidden {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}

/*
 * Extends the .visuallyhidden class to allow the element
 * to be focusable when navigated to via the keyboard:
 * https://www.drupal.org/node/897638
 */

.visuallyhidden.focusable:active,
.visuallyhidden.focusable:focus {
    clip: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    position: static;
    width: auto;
}

/*
 * Hide visually and from screen readers, but maintain layout
 */

.invisible {
    visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * For modern browsers
 * 1. The space content is one way to avoid an Opera bug when the
 *    `contenteditable` attribute is included anywhere else in the document.
 *    Otherwise it causes space to appear at the top and bottom of elements
 *    that receive the `clearfix` class.
 * 2. The use of `table` rather than `block` is only necessary if using
 *    `:before` to contain the top-margins of child elements.
 */

.clearfix:before,
.clearfix:after {
    content: " "; /* 1 */
    display: table; /* 2 */
}

.clearfix:after {
    clear: both;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media only screen and (min-width: 35em) {
    /* Style adjustments for viewports that meet the condition */
}

@media print,
       (min-resolution: 1.25dppx),
       (min-resolution: 120dpi) {
    /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   http://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@media print {
    *,
    *:before,
    *:after,
    *:first-letter,
    *:first-line {
        background: transparent !important;
        color: #000 !important; /* Black prints faster:
                                   http://www.sanbeiji.com/archives/953 */
        box-shadow: none !important;
        text-shadow: none !important;
    }

    a,
    a:visited {
        text-decoration: underline;
    }

    a[href]:after {
        content: " (" attr(href) ")";
    }

    abbr[title]:after {
        content: " (" attr(title) ")";
    }

    /*
     * Don't show links that are fragment identifiers,
     * or use the `javascript:` pseudo protocol
     */

    a[href^="#"]:after,
    a[href^="javascript:"]:after {
        content: "";
    }

    pre,
    blockquote {
        border: 1px solid #999;
        page-break-inside: avoid;
    }

    /*
     * Printing Tables:
     * http://css-discuss.incutio.com/wiki/Printing_Tables
     */

    thead {
        display: table-header-group;
    }

    tr,
    img {
        page-break-inside: avoid;
    }

    img {
        max-width: 100% !important;
    }

    p,
    h2,
    h3 {
        orphans: 3;
        widows: 3;
    }

    h2,
    h3 {
        page-break-after: avoid;
    }
}


