﻿/* ---reset.css--- */

@charset "UTF-8";

html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
}


/* HTML5 display-role reset for older browsers */

article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
    display: block;
}

body {
    line-height: 1;
}

ol,
ul {
    list-style: none;
}

blockquote,
q {
    quotes: none;
}

blockquote:before,
blockquote:after,
q:before,
q:after {
    content: '';
    content: none;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
}


/*================================reset.css================================*/

* {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    -ms-box-sizing: border-box;
    -o-box-sizing: border-box;
    box-sizing: border-box;
    /*outline: 1px solid #000;*/
}

html {
    -webkit-text-size-adjust: 100%;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;

}


body {
    font-family: Arial, "文泉驛正黑", "WenQuanYi Zen Hei", "儷黑 Pro", "LiHei Pro", "微軟正黑體", "Microsoft JhengHei", "新細明體", DFKai-SB, sans-serif;
    /*background-color: #666;*/
    background-image: url();
}


*:focus {
    outline: none;
}

.clearfix {
    clear: both;
}


/*====================================================================*/

a {
    text-decoration: none;
    outline: none;
    -moz-transition: all 0.1s ease-in;
    -o-transition: all 0.1s ease-in;
    -webkit-transition: all 0.1s ease-in;
    transition: all 0.1s ease-in;
    letter-spacing: 1px;

}

a:link,
a:visited {
    text-decoration: none;
}

a:active,
a:hover {
    text-decoration: none;
    outline: none;
}


/*控制圖片淡入*/

.animate-flicker {
    opacity: 0;
    -webkit-animation: flickerAnimation 1s forwards;
    animation: flickerAnimation 1s forwards;

}

@-webkit-keyframes flickerAnimation {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes flickerAnimation {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

/*================================電腦版================================*/

img {
    display: block;
}

.topbar_B {
    width: 100%;
    height: 64px;
    position: relative;
}

.topbar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 64px;
    z-index: 99999;
    background-color: #fff;
    line-height: 1.4;
    -webkit-box-shadow: 0 1px 6px 0 rgba(0, 0, 0, .1);
    box-shadow: 0 1px 6px 0 rgba(0, 0, 0, .1);
    color: #666;
}

.topbar_W {
    position: relative;
    width: 100%;
    margin: 0 auto;
    height: 64px;
}

.topbar.no-boxshadow {
    border-bottom: 1px solid #ddd;
}

.topbar_fixed {
    position: fixed;
}

/* .topbar_logo {
    margin: 0;
    width: 180px;
    height: 62px;
    float: left;
    margin-left: 18%;
} */

.topbar_logo {
    margin: 0;
    width: 240px;
    height: 62px;
    float: left;
    margin-left: 18%;
}

.topbar_logo img {
    display: block;
    /* padding-top: 15px; */
    width: 240px;
    height: 62px;
}

.topbar_ad_a {
    display: block;
    float: left;
    padding-left: 25px;
    padding-top: 1px;
}

.topbar_ad_a img {
    display: block;
    width: 270px;
    height: 62px;
}

.topbar_ad_b {
    display: block;
    float: left;
}

.topbar_ad_b_ul {
    display: block;
    padding-left: 40px;
    font-size: 0;
}

.topbar_ad_b_ul_li {
    display: inline-block;

}

.topbar_ad_b_ul_li>a {
    height: 62px;
    line-height: 62px;
    font-size: 18px;
    font-weight: 500;
    letter-spacing: 1px;
    color: #666;
    display: inline-block;
    padding-left: 12px;
    padding-right: 12px;

}

.topbar_ad_b_ul_li a.active,
.topbar_ad_b_ul_li a:hover {
    color: #df2012;
}

/* .topbar_ad_b_ul_li>a:after {
    content: "\f0d7";
    font-family: 'FontAwesome';
    font-weight: 100;
    padding-left: 4px;
} */

.topbar_ad_c {
    position: absolute;
    display: block;
    top: 64px;
    left: 0;
    width: 100%;
    background-color: rgb(255, 255, 255);
    /*下方選單背景顏色與透明度*/
    border-bottom: 1px solid #ddd;
    overflow: hidden;
    padding-bottom: 17px;
    padding-top: 8px;
}

.topbar_ad_c_ul {
    display: block;
    max-width: 794px;
    margin: 0 auto;
}

.topbar_ad_c_ul_li {
    float: left;
    display: block;
    background-color: #fff;
    width: 190px;
    text-align: center;
    margin-left: 8px;
    position: relative;
    -webkit-box-shadow: 0 4px 4px -1px rgba(0, 0, 0, .15);
    box-shadow: 0 4px 4px -1px rgba(0, 0, 0, .15);
}

.topbar_ad_c_ul_li:after {
    content: "";
    position: absolute;
    top: 3px;
    left: -4px;
    bottom: 3px;
}

.topbar_ad_c_ul_li:nth-child(1):after {
    display: none;
}

.topbar_ad_c_ul_li a {
    line-height: 1.3;
}

.topbar_ad_c_img {
    display: block;
    margin: 0 auto;
    width: 170px;
    height: 113px;
    overflow: hidden;
    margin-top: 10px;
    margin-bottom: 10px;
}

.topbar_ad_c_ul_li:hover {
    background-color: #eee;
}

/*.topbar_ad_c_ul_li a:hover img {
    -webkit-transform: scale(1.06);
    -ms-transform: scale(1.06);
    -o-transform: scale(1.06);
    transform: scale(1.06);
}

.topbar_ad_c_img img {
    display: block;
    width: 170px;
    height: 113px;
    -webkit-transition: all 0.25s ease-out;
    -o-transition: all 0.25s ease-out;
    transition: all 0.25s ease-out;
    overflow: hidden;
}*/

.topbar_ad_c_title p {
    font-size: 14px;
    color: #666;
    height: 60px;
    line-height: 1.4;
    padding: 5px 10px 5px;
    text-align: left;
}

.topbar_ad_c_title p:before {
    content: "\f046";
    font-family: 'FontAwesome';
    font-weight: 100;
    padding-right: 4px;
}

.topbar_ad_c_ul_li a:hover .topbar_ad_c_title p:before {
    color: #df2012;
}

.topbar_fb {
    position: absolute;
    right: 1.5%;
}

.topbar_fb a {
    color: #fff;
}

.topbar_fb a i {
    background-color: #ccc;
    font-size: 30px;
    width: 40px;
    height: 40px;
    text-align: center;
    line-height: 40px;
    padding-top: 2px;
    margin-top: 12px;
    border-radius: 50%;
}

.topbar_fb a:hover i {
    background-color: #df2012;
}

@media screen and (max-width: 1920px) {
    .topbar_logo {
        margin-left: 18%;
    }
}

@media screen and (max-width: 1680px) {
    .topbar_logo {
        margin-left: 15%;
    }
}

@media screen and (max-width: 1366px) {
    .topbar_logo {
        margin-left: 12%;
    }
}

@media screen and (max-width: 1280px) {
    .topbar_logo {
        margin-left: 9%;
    }
}

@media screen and (max-width: 1024px) {
    .topbar_logo {
        margin-left: 3%;
    }
}

@media screen and (max-width: 1023px) {
    .topbar_B {
        width: 100%;
        position: relative;
    }

    .topbar_logo {
        margin: 0;
        width: 180px;
        margin: 0 auto;
        position: absolute;
        left: 47%;
        margin-left: -90px;
    }

    .topbar_logo_right {
        margin: 0;
        width: 45px;
        margin: 0 auto;
        position: absolute;
        top: 15px;
        left: 65%;
        margin-left: -90px;
    }

    .topbar_ad_b,
    .topbar_ad_a {
        display: none;
    }

    .topbar_fixed {
        position: relative;
    }

    .topbar_fb {
        right: 2.5%;
    }

    .topbar_fb a i {
        font-size: 27px;
        width: 33px;
        height: 33px;
        line-height: 33px;
        padding-top: 2px;
        margin-top: 15px;
    }

}

@media screen and (max-width: 991px) {
    .topbar_logo {
        margin: 0;
        width: 180px;
        margin: 0 auto;
        position: absolute;
        left: 46%;
        margin-left: -90px;
    }
}