/* —————————————————————————————————————————————————— */
/* ———————————————— GLOBAL VARIABLES ———————————————— */
/* —————————————————————————————————————————————————— */
body, html {
    width: 100%;
    height: 100%;
    overflow: hidden;
    -webkit-transition: all .35s ease;
    transition: all .35s ease;
    background-color: white;
}

a, img {
    display: block;
}

.clear {
    clear: both;
}

.hidden-xs {
    display: none;
}

/* —————————————————————————————————————————————————— */
/* —————————— 超小螢幕設備 (手機，小於 768px) —————————— */
/* —————————————————————————————————————————————————— */

/* Header */
header {
    position: fixed;
    display: block;
    width: 640px;
    height: auto;
    left: 0;
    top: 0;
    background-color: white;
    margin: 0 auto;
    z-index: 998;
}

header .logo {
    float: left;
    padding: 10px 15px;
}

/* MenuToggle */
header .menuToggle {
    float: right;
    display: block;
    padding: 28px 26px;
}

header .menuToggle .toggleIcon {
    position: relative;
    width: 30px;
    height: 20px;
    margin: 0 auto;
}

header .menuToggle .toggleIcon span {
    display: block;
    position: absolute;
    background: black;
    border: none;
    height: 3px;
    width: 100%;
    cursor: pointer;
    -webkit-transition: all .35s ease;
    transition: all .35s ease;
}

header .menuToggle .toggleIcon span:nth-of-type(2) {
    top: 8px;
}

header .menuToggle .toggleIcon span:nth-of-type(3) {
    top: 16px;
}

header .menuToggle.active .toggleIcon .top {
    -webkit-transform: translateY(8px) translateX(0) rotate(45deg);
    transform: translateY(8px) translateX(0) rotate(45deg);
}

header .menuToggle.active .toggleIcon .middle {
    opacity: 0;
    -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";
}

header .menuToggle.active .toggleIcon .bottom {
    -webkit-transform: translateY(-8px) translateX(0) rotate(-45deg);
    transform: translateY(-8px) translateX(0) rotate(-45deg);
}

/* MainNav */
#mainNav {
    position: fixed;
    width: 640px;
    height: calc(100% - 76px);
    max-width: 100%;
    left: 0;
    top: 76px;
    background-color: white;
    -webkit-box-shadow: none;
    box-shadow: none;

    display: none;
    opacity: 0;
    z-index: 997;
    overflow: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

#mainNav .innerBox {
    position: relative;
    width: 62%;
    max-width: 420px;
    min-height: 550px;
    margin: 60px auto 0 auto;
    border-top: 1px solid #e5e5e5;
}

/* LaunchCon */
#mainNav li a {
    text-indent: -9999px;
}

#mainNav .launchCon {
    position: relative;
    width: 50%;
    float: left;
    box-sizing: border-box;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    border-left: 1px solid #e5e5e5;
    border-right: 1px solid #e5e5e5;
}

#mainNav .launchCon:nth-child(1) {
}

#mainNav .launchCon:nth-child(2) {
    display: block;
    border-left: 1px solid white;
}

#mainNav .launchCon:nth-child(3) {
    width: 100%;
}

#mainNav .launchCon li {
    position: relative;
    width: 100%;
    border-bottom: 1px solid #e5e5e5;
}

#mainNav .launchCon:nth-child(3) li {
    border-bottom: 1px solid #e5e5e5;
}

#mainNav .launchCon li:after {
    padding-top: 100%;
    display: block;
    content: '';
}

#mainNav .launchCon:nth-child(3) li:after {
    padding-top: 20%;
    display: block;
    content: '';
}

#mainNav .launchCon:nth-child(1) li:nth-child(1) {
    display: none;
}

#mainNav .launchCon:nth-child(2) li:nth-child(2),
#mainNav .launchCon:nth-child(2) li:nth-child(3) {
    display: block;
}

#mainNav .launchCon li a {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    bottom: 0;
    right: 0;
    left: 0;
    padding: 0;
}

/* LaunchCon Left */
#mainNav .launchCon:nth-child(1) li:nth-child(2) a {
    background: url("../resource/nav/nav-engine-m.jpg") no-repeat center;
    background-size: contain;
}

#mainNav .launchCon:nth-child(1) li:nth-child(2) a:hover,
#mainNav .launchCon:nth-child(1) li:nth-child(2) a.active {
    background: url("../resource/nav/nav-engine-selected-m.jpg") no-repeat center;
    background-size: contain;
}

#mainNav .launchCon:nth-child(1) li:nth-child(3) a {
    background: url("../resource/nav/nav-technology-m.jpg") no-repeat center;
    background-size: contain;
}

#mainNav .launchCon:nth-child(1) li:nth-child(3) a:hover,
#mainNav .launchCon:nth-child(1) li:nth-child(3) a.active {
    background: url("../resource/nav/nav-technology-selected-m.jpg") no-repeat center;
    background-size: contain;
}

#mainNav .launchCon:nth-child(1) li:nth-child(4) a {
    background: url("../resource/nav/nav-info-m.jpg") no-repeat center;
    background-size: contain;
}

#mainNav .launchCon:nth-child(1) li:nth-child(4) a:hover,
#mainNav .launchCon:nth-child(1) li:nth-child(4) a.active {
    background: url("../resource/nav/nav-info-selected-m.jpg") no-repeat center;
    background-size: contain;
}

/* LaunchCon Right */
#mainNav .launchCon:nth-child(2) li:nth-child(1) a {
    background: url("../resource/nav/nav-media-m.jpg") no-repeat center;
    background-size: cover;
}

#mainNav .launchCon:nth-child(2) li:nth-child(1) a:hover,
#mainNav .launchCon:nth-child(2) li:nth-child(1) a.active {
    background: url("../resource/nav/nav-media-selected-m.jpg") no-repeat center;
    background-size: cover;
}

#mainNav .launchCon:nth-child(2) li:nth-child(2) a {
    background: url("../resource/nav/nav-drive-m.jpg") no-repeat center;
    background-size: cover;
}

#mainNav .launchCon:nth-child(2) li:nth-child(2) a:hover,
#mainNav .launchCon:nth-child(2) li:nth-child(2) a.active {
    background: url("../resource/nav/nav-drive-selected-m.jpg") no-repeat center;
    background-size: cover;
}

#mainNav .launchCon:nth-child(2) li:nth-child(3) a {
    background: url("../resource/nav/nav-pdf-m.jpg") no-repeat center;
    background-size: cover;
}

#mainNav .launchCon:nth-child(2) li:nth-child(3) a:hover,
#mainNav .launchCon:nth-child(2) li:nth-child(3) a.active {
    background: url("../resource/nav/nav-pdf-selected-m.jpg") no-repeat center;
    background-size: cover;
}

/* LaunchCon Bottom */
/*#mainNav .launchCon:nth-child(3) li:nth-child(1) a {
    background: url("../resource/nav/nav-drive-m.jpg") no-repeat center;
    background-size: cover;
}

#mainNav .launchCon:nth-child(3) li:nth-child(1) a:hover,
#mainNav .launchCon:nth-child(3) li:nth-child(1) a.active {
    background: url("../resource/nav/nav-drive-selected-m.jpg") no-repeat center;
    background-size: cover;
}*/

#mainNav .downloadCon {
    display: none;
}

#mainNav .socialCon {
    position: relative;
    width: 100%;
    margin-top: 60px;
    text-align: center;
}

#mainNav .socialCon li {
    display: inline-block;
    position: relative;
    width: 10%;
    max-width: 50px;
    margin: 0 1%;
    left: 0;
    -webkit-transform: translateX(0);
    transform: translateX(0);
}

#mainNav .socialCon li:after {
    padding-top: 100%;
    display: block;
    content: '';
}

#mainNav .socialCon li a {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    bottom: 0;
    right: 0;
    left: 0;
    padding: 0;
    background-color: #8a6d3b;
}

#mainNav .socialCon li:nth-child(1) a {
    background: url("../resource/nav/icon-fb-m.jpg") no-repeat center;
    background-size: cover;
}

#mainNav .socialCon li:nth-child(2) a {
    background: url("../resource/nav/icon-ig-m.jpg") no-repeat center;
    background-size: cover;
}

#mainNav .socialCon li:nth-child(3) a {
    background: url("../resource/nav/icon-ut-m.jpg") no-repeat center;
    background-size: cover;
}

/* Wrapper */
#mainWrapper {
    position: fixed;
    left: 0;
    top: 76px;
    width: 640px;
    height: calc(100% - 76px);
    background-color: black;
    overflow: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

#mainWrapper .view {
    position: absolute;
    width: 100%;
    height: 100%;
    min-height: 550px;
    overflow: hidden;
}

/* footer */
footer {
    position: fixed;
    width: 640px;
    height: 64px;
    bottom: 0;
    background-color: white;
}

footer a {
    width: 100%;
    height: 100%;
    background: url("../resource/footer/footer-bg.jpg") no-repeat center;
    background-size: contain;
}

footer a img {
    margin: 0 auto;
}

/* Form */

*:focus {
    outline: none;
}

#mainWrapper .formView .closeBtn {
    position: relative;
    width: 100%;
    height: 60px;
    margin-bottom: -10px;
}

#mainWrapper .formView .closeBtn .icon {
    position: absolute;
    left: 50%;
    top: 50%;
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    display: block;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 17.3px 10px 0 10px;
    border-color: #000000 transparent transparent transparent;
}

#mainWrapper .formView {
    overflow: hidden;
    display: none;
    opacity: 0;
    z-index: 995;
}

/* policy */
#mainWrapper .formView .policyCon {
    position: absolute;
    left: 0;
    top: 100%;
    width: 100%;
    height: 100%;
    background-color: #f3f3f3;
    z-index: 98;
}

#mainWrapper .formView .policyCon .policyCloseBtn {
    position: absolute;
    width: 36px;
    height: 36px;
    right: 20px;
    top: 10px;
    margin: 0;
    background-color: rgba(255, 255, 255, 0);
}

#mainWrapper .formView .policyCon article {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

#mainWrapper .formView .policyCon article img {
    width: 100%;
    height: auto;
    margin: 0 auto;
}

#mainWrapper .formView .formCon {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: #f3f3f3;
    overflow: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    z-index: 97;
}

#mainWrapper .formView .bgCon {
    position: absolute;
    /*display: none;*/
}

#mainWrapper .formView .formCon .inner {
    position: relative;
    width: 550px;
    height: auto;
    margin: 0 auto;
}

/* Form title */
#mainWrapper .formView .formCon .inner .title {
    width: 100%;
    margin-bottom: 65px;
}

#mainWrapper .formView .formCon .inner .title img {
    width: 100%;
    height: auto;
}

/*************************/
/* form */
/*************************/
#mainWrapper .formView .formCon form {
    position: relative;
    width: 539px;
    height: 710px;
    font-size: 22px;
    background: url("../resource/form/form-bg-m.png") no-repeat center;
    background-size: contain;
}

#mainWrapper .formView .formCon form input[type=text] {
    border: 1px solid #AAAAAA;
    width: 410px;
    height: 30px;
    padding: 3px;
}

#mainWrapper .formView .formCon form input[type=text],
#mainWrapper .formView .formCon form input[type=radio] {
    margin-left: 130px;
}

#mainWrapper .formView .formCon form input[name=username] {
    padding: 5px;
    margin-top: 36px;
}

/* gender */
#mainWrapper .formView .formCon form input[type=radio] {
    margin-top: 16px;
}

#mainWrapper .formView .formCon form input.male {
    margin-left: 150px;
}

#mainWrapper .formView .formCon form input.female {
    margin-left: 80px;
}

/* age */
#mainWrapper .formView .formCon form .age-select {
    background: url(../resource/form/select-icon-m.jpg) no-repeat right center #ffffff;
    height: 36px;
    width: 417px;
    border: 1px solid #ccc;
    overflow: hidden;
    margin-left: 130px;
    margin-top: 12px;
}

#mainWrapper .formView .formCon form .age-select select {
    background: transparent;
    border: none;
    font-size: 22px;
    height: 36px;
    padding: 0;
    width: 460px;
}

#mainWrapper .formView .formCon form input[name=mobile],
#mainWrapper .formView .formCon form input[name=email] {
    margin-top: 6px;;
}

/* city */
#mainWrapper .formView .formCon form .city-select {
    background: url(../resource/form/select-icon-m.jpg) no-repeat right center #ffffff;
    height: 36px;
    width: 135px;
    border: 1px solid #ccc;
    overflow: hidden;
    margin-left: 130px;
    margin-top: 6px;
}

#mainWrapper .formView .formCon form .city-select select {
    background: transparent;
    border: none;
    font-size: 22px;
    height: 36px;
    padding: 0;
    width: 185px;
}

/* cityarea */
#mainWrapper .formView .formCon form .cityarea-select {

    background: url(../resource/form/select-icon-m.jpg) no-repeat right center #ffffff;
    height: 36px;
    width: 270px;
    border: 1px solid #ccc;
    overflow: hidden;
    margin-left: 276px;
    margin-top: -40px;
}

#mainWrapper .formView .formCon form .cityarea-select select {
    background: transparent;
    border: none;
    font-size: 22px;
    height: 36px;
    padding: 0;
    width: 320px;
}

#mainWrapper .formView .formCon form .address {
    margin-top: 6px;
}

/* driveplace */
#mainWrapper .formView .formCon form .driveplace-select {
    background: url(../resource/form/select-icon-m.jpg) no-repeat right center #ffffff;
    height: 36px;
    width: 417px;
    border: 1px solid #ccc;
    overflow: hidden;
    margin-left: 130px;
    margin-top: 10px;
}

#mainWrapper .formView .formCon form .driveplace-select select {
    background: transparent;
    border: none;
    font-size: 22px;
    height: 36px;
    padding: 0;
    width: 460px;
}

/* carbrand */
#mainWrapper .formView .formCon form .carbrand-select {
    background: url(../resource/form/select-icon-m.jpg) no-repeat right center #ffffff;
    height: 36px;
    width: 417px;
    border: 1px solid #ccc;
    overflow: hidden;
    margin-left: 130px;
    margin-top: 6px;
}

#mainWrapper .formView .formCon form .carbrand-select select {
    background: transparent;
    border: none;
    font-size: 22px;
    height: 36px;
    padding: 0;
    width: 460px;
}

/* scc_auth_code */
#mainWrapper .formView .formCon form #scc_auth_code {
    width: 148px;
    height: 66px;
    margin-left: 130px;
    margin-top: 24px;
}

#mainWrapper .formView .formCon form #scc_auth_code img {
    width: 100%;
    height: 100%;
}

#mainWrapper .formView .formCon form .btn_code {
    font-size: 22px;
    color: #666666;
    text-decoration: underline;
    margin-left: 290px;
    margin-top: -52px;
}

#mainWrapper .formView .formCon form .mcode {
    margin-top: 26px;
}

#mainWrapper .formView .formCon form .ruleCheck {
    margin-left: 100px;
    margin-top: 24px;
}

#mainWrapper .formView .formCon form p {
    font-size: 22px;
    color: #666666;
    margin-left: 130px;
    margin-top: -28px;
}

#mainWrapper .formView .formCon form p a {
    display: inline-block;
    text-decoration: underline;
    color: #666666;
}

#mainWrapper .formView .formCon form .send_btn {
    display: inline-block;
    background-color: #cfb41e;
    padding: 20px 95.5px;
    border-radius: 10px;
    margin-top: 20px;
}

/* LoadingView */
#loadingView {

    position: fixed;
    width: 640px;
    height: 100%;
    background-color: white;
    z-index: 999;
    /*display: none;*/
}

#loadingView .inner {
    position: absolute;
    left: 50%;
    top: 50%;
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    width: 274px;
    height: 166px;
}

#loadingView .inner .car,
#loadingView .inner .circle {
    position: absolute;
}
