/* -------------------------------- 

Primary style

-------------------------------- */

*,
*::after,
*::before {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

html {
    font-size: 62.5%;
}

body {
    font-size: 1.6rem;
    font-family: "Open Sans", sans-serif;
    color: #2b3e51;
    background-color: #ffffff;
}

a {
    color: #2c97de;
    text-decoration: none;
}


/* -------------------------------- 

Form

-------------------------------- */

.cd-form {
    width: 90%;
    max-width: 600px;
    margin: 4em auto;
}

.cd-form::after {
    clear: both;
    content: "";
    display: table;
}

.cd-form fieldset {
    margin: 24px 0;
}

.cd-form legend {
    padding-bottom: 10px;
    margin-bottom: 20px;
    font-size: 2rem;
    border-bottom: 1px solid #ecf0f1;
}

.cd-form div {
    /* form element wrapper */
    position: relative;
    margin: 20px 0;
}

.cd-form h4,
.cd-form .cd-label {
    font-size: 1.3rem;
    color: #94aab0;
    margin-bottom: 10px;
}

.cd-form .cd-label {
    display: block;
}

.cd-form input,
.cd-form textarea,
.cd-form select,
.cd-form label {
    font-family: "Open Sans", sans-serif;
    font-size: 1.6rem;
    color: #2b3e51;
}

.cd-form input[type="text"],
.cd-form input[type="email"],
.cd-form textarea,
.cd-form select,
.cd-form legend {
    display: block;
    width: 100%;
    -webkit-appearance: none;
    -moz-appearance: none;
    -ms-appearance: none;
    -o-appearance: none;
    appearance: none;
}

.cd-form input[type="text"],
.cd-form input[type="email"],
.cd-form textarea,
.cd-form select {
    /* general style for input elements */
    padding: 12px;
    border: 1px solid #cfd9db;
    background-color: #ffffff;
    border-radius: .25em;
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.08);
}

.cd-form input[type="text"]:focus,
.cd-form input[type="email"]:focus,
.cd-form textarea:focus,
.cd-form select:focus {
    outline: none;
    border-color: #2c97de;
    box-shadow: 0 0 5px rgba(44, 151, 222, 0.2);
}

.cd-form .cd-select {
    /* select element wapper */
    position: relative;
}

.cd-form .cd-select::after {
    /* arrow icon for select element */
    content: '';
    position: absolute;
    z-index: 1;
    right: 16px;
    top: 50%;
    margin-top: -8px;
    display: block;
    width: 16px;
    height: 16px;
    background: url("../img/cd-icon-arrow.svg") no-repeat center center;
    pointer-events: none;
}

.cd-form select {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    cursor: pointer;
}

.cd-form select::-ms-expand {
    display: none;
}

.cd-form .cd-form-list {
    margin-top: 16px;
}

.cd-form .cd-form-list li {
    /* wrapper for radio and checkbox input types */
    display: inline-block;
    position: relative;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    margin: 0 20px 16px 0;
}

.cd-form input[type=radio],
.cd-form input[type=checkbox] {
    /* hide original check and radio buttons */
    position: absolute;
    left: 0;
    top: 50%;
    -webkit-transform: translateY(-50%);
    -moz-transform: translateY(-50%);
    -ms-transform: translateY(-50%);
    -o-transform: translateY(-50%);
    transform: translateY(-50%);
    margin: 0;
    padding: 0;
    opacity: 0;
    z-index: 2;
}

.cd-form input[type="radio"]+label,
.cd-form input[type="checkbox"]+label {
    padding-left: 24px;
}

.cd-form input[type="radio"]+label::before,
.cd-form input[type="radio"]+label::after,
.cd-form input[type="checkbox"]+label::before,
.cd-form input[type="checkbox"]+label::after {
    /* custom radio and check boxes */
    content: '';
    display: block;
    position: absolute;
    left: 0;
    top: 50%;
    margin-top: -8px;
    width: 16px;
    height: 16px;
}

.cd-form input[type="radio"]+label::before,
.cd-form input[type="checkbox"]+label::before {
    border: 1px solid #cfd9db;
    background: #ffffff;
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.08);
}

.cd-form input[type="radio"]+label::before,
.cd-form input[type="radio"]+label::after {
    border-radius: 50%;
}

.cd-form input[type="checkbox"]+label::before,
.cd-form input[type="checkbox"]+label::after {
    border-radius: .25em;
}

.cd-form input[type="radio"]+label::after,
.cd-form input[type="checkbox"]+label::after {
    background-color: #2c97de;
    background-position: center center;
    background-repeat: no-repeat;
    box-shadow: 0 0 5px rgba(44, 151, 222, 0.4);
    display: none;
}

.cd-form input[type="radio"]+label::after {
    /* custom image for radio button */
    background-image: url("../img/cd-icon-radio.svg");
}

.cd-form input[type="checkbox"]+label::after {
    /* custom image for checkbox */
    background-image: url("../img/cd-icon-check.svg");
}

.cd-form input[type="radio"]:checked+label::after,
.cd-form input[type="checkbox"]:checked+label::after {
    display: block;
}

.cd-form input[type="radio"]:checked+label::before,
.cd-form input[type="radio"]:checked+label::after,
.cd-form input[type="checkbox"]:checked+label::before,
.cd-form input[type="checkbox"]:checked+label::after {
    -webkit-animation: cd-bounce 0.3s;
    -moz-animation: cd-bounce 0.3s;
    animation: cd-bounce 0.3s;
}

.cd-form textarea {
    min-height: 200px;
    resize: vertical;
    overflow: auto;
}

.cd-form input[type="submit"],
.cd-form input[type="button"] {
    /* button style */
    border: none;
    background: #ff790c;
    border-radius: .25em;
    padding: 50px 30px;
    color: #ffffff;
    font-weight: bold;
    float: right;
    cursor: pointer;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-appearance: none;
    -moz-appearance: none;
    -ms-appearance: none;
    -o-appearance: none;
    appearance: none;
}

.no-touch .cd-form input[type="submit"]:hover,
.no-touch .cd-form input[type="button"]:hover {
    background: #b10000;
}

.cd-form input[type="submit"]:focus,
.cd-form input[type="button"]:focus {
    outline: none;
    background: #2b3e51;
}

.cd-form input[type="submit"]:active
.cd-form input[type="button"]:active {
    -webkit-transform: scale(0.9);
    -moz-transform: scale(0.9);
    -ms-transform: scale(0.9);
    -o-transform: scale(0.9);
    transform: scale(0.9);
}

.cd-form [required] {
    background: url("../img/cd-required.svg") no-repeat top right;
}

.cd-form .error-message p {
    background: #e94b35;
    color: #ffffff;
    font-size: 1.4rem;
    text-align: center;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    border-radius: .25em;
    padding: 16px;
}

.cd-form .error {
    border-color: #e94b35 !important;
}

@media only screen and (min-width: 600px) {
    .cd-form div {
        /* form element wrapper */
        margin: 32px 0;
    }
    .cd-form legend+div {
        /* reduce margin-top for first form element after the legend */
        margin-top: 20px;
    }
    .cd-form h4,
    .cd-form .cd-label {
        font-size: 1.4rem;
        margin-bottom: 10px;
    }
    .cd-form input[type="text"],
    .cd-form input[type="email"],
    .cd-form textarea,
    .cd-form select {
        padding: 16px;
    }
}

@-webkit-keyframes cd-bounce {
    0%,
    100% {
        -webkit-transform: scale(1);
    }
    50% {
        -webkit-transform: scale(0.8);
    }
}

@-moz-keyframes cd-bounce {
    0%,
    100% {
        -moz-transform: scale(1);
    }
    50% {
        -moz-transform: scale(0.8);
    }
}

@keyframes cd-bounce {
    0%,
    100% {
        -webkit-transform: scale(1);
        -moz-transform: scale(1);
        -ms-transform: scale(1);
        -o-transform: scale(1);
        transform: scale(1);
    }
    50% {
        -webkit-transform: scale(0.8);
        -moz-transform: scale(0.8);
        -ms-transform: scale(0.8);
        -o-transform: scale(0.8);
        transform: scale(0.8);
    }
}


/* -------------------------------- 

Custom icons

-------------------------------- */

.cd-form .icon input,
.cd-form .icon select,
.cd-form .icon textarea {
    padding-left: 54px !important;
}

.cd-form .user {
    background: url("../images/name.png") no-repeat 16px center;
}

.cd-form [required].user {
    background: url("../images/name.png") no-repeat 16px center,
}

.cd-form .company {
    background: url("../images/tell.png") no-repeat 16px center;
}

.cd-form [required].company {
    background: url("../images/tell.png") no-repeat 16px center,
}


/* -------------------------------- 

FLoating labels 

-------------------------------- */

.js .floating-labels div {
    margin: 10px 0;
}

.js .floating-labels .cd-label {
    position: absolute;
    top: 16px;
    left: 16px;
    font-size: 1.6rem;
    cursor: text;
    -webkit-transition: top 0.2s, left 0.2s, font-size 0.2s;
    -moz-transition: top 0.2s, left 0.2s, font-size 0.2s;
    transition: top 0.2s, left 0.2s, font-size 0.2s;
}

.js .floating-labels .icon .cd-label {
    left: 56px;
}

.js .floating-labels .cd-label.float {
    /* move label out the input field */
    font-size: 1.2rem;
    top: -16px;
    left: 0 !important;
}

@media only screen and (min-width: 600px) {
    .js .floating-labels legend+div {
        /* reduce margin-top for first form element after the legend */
        margin-top: 16px;
    }
    .js .floating-labels .cd-label {
        top: 20px;
    }
}

/*新增的*/
    .bottom_box {
        position: fixed;
        bottom: 0;
        height: 110px;
        width: 100%;
        z-index: 999;
    }
    
    .left_btn {
        position: absolute;
        left: 0;
        top: 0;
    }
    
    .bottom_div {
        width: 100%;
        height: 110px;
        background: url(../images/png.png) repeat;
        bottom: 0;
        position: relative;
        display: none;
    }
    
    .bottom_div .container {
        position: relative;
    }
    
    .left_img {
        position: absolute;
        max-width: 550px;
    }
    
    .left_img img {
        width: 100%;
    }
    
    .bottom_form {
        position: absolute;
        width: 400px;
        height: auto;
        background: #000;
        right: 0;
    }
    
    .bottom_hide {
        width: 36px;
        height: 36px;
        position: absolute;
        right: -40px;
        top: 5px;
    }
    
    .bottom_box,
    .bottom_div {
        height: 130px;
    }
    
    .bottom_form {
        padding: 10px 0;
    }
    
    .left_img {
        max-width: 714px;
    }
    
    .ad {
        display: block;
    }
    
    .bottom_div {
        display: block;
    }
    
    .left_btn {
        left: -171px;
    }
    
    .container {
        position: relative;
        margin: auto;
        width: 1200px;
    }
    
    .f_content {
        width: 240px;
        margin: 10px 10px 20px 20px;
        height: 90px;
        float: left;
    }
    
    .f_name {
        width: 100%;
        background: #fff;
        height: 40px;
        float: left;
        overflow: hidden;
        color: #333;
        line-height: 38px;
        font-size: 15px;
        margin-bottom: 10px;
    }
    
    .f_name label {
        font-weight: 400;
    }
    
    .f_tel {
        width: 100%;
        background: #fff;
        height: 40px;
        float: left;
        overflow: hidden;
        color: #333;
        line-height: 38px;
        font-size: 15px;
    }
    
    .f_name span,
    .f_tel span {
        color: #aaa;
        padding: 0 10px;
        
    }
    
    .f_name input,
    .f_tel input {
        border: 0;
        max-width: 100px;
    }
    
    .f_name .uname {
        width: 60px;
    }
    
    .f_btn {
        width: 90px;
        height: 90px;
        background-color: #d33232;
        float: left;
        margin-top: 10px;
        cursor: pointer;
        color: #0f4b6d !important;
        background-position: bottom left, top right, 0 0, 0 0;
        -webkit-transition: background-position 1s;
        -moz-transition: background-position 1s;
        transition: background-position 1s;
        background-image: url('../images/button_bg.png'), url('../images/button_bg.png'), -moz-radial-gradient( center bottom, circle, rgba(211, 50, 50, 1) 0, rgba(211, 50, 50, 0) 100px), -moz-linear-gradient(#d33232, #d33232);
        background-image: url('../images/button_bg.png'), url('../images/button_bg.png'), -webkit-gradient( radial, 50% 100%, 0, 50% 100%, 100, from(rgba(211, 50, 50, 1)), to(rgba(211, 50, 50, 0))), -webkit-gradient(linear, 0% 0%, 0% 100%, from(#d33232), to(#d33232));
    }
    
    .f_btn:hover {
        background-color: #63c7fe;
        background-position: top left;
        background-position: top left, bottom right, 0 0, 0 0;
        background-image: url('../images/button_bg.png'), url('../images/button_bg.png'), -moz-radial-gradient( center bottom, circle, rgba(211, 50, 50, 1) 0, rgba(211, 50, 50, 0) 100px), -moz-linear-gradient(#d33232, #d33232);
        background-image: url('../images/button_bg.png'), url('../images/button_bg.png'), -webkit-gradient( radial, 50% 100%, 0, 50% 100%, 100, from(rgba(211, 50, 50, 1)), to(rgba(211, 50, 50, 0))), -webkit-gradient(linear, 0% 0%, 0% 100%, from(#d33232), to(#d33232));
    }
    
    .f_btn input {
        width: 100%;
        height: 100%;
        font-size: 24px;
        line-height: 90px;
        text-align: center;
        border: 0;
        cursor: pointer;
        background: none;
        color: #fff;
    }
	@media (max-height:800px) {
		   .bottom_div {
        display: none;
    }
       .left_btn {
        left: 0;
    }
	}