/*--- header ---*/
ul.header_desktop, .header_mobile {
    width: 100%;
    background-color: #fff;
    text-align: center;
    vertical-align: top;
}
ul.header_desktop li img {
    height: 40px;
    width: auto;
    display: block;
}
ul.header_desktop li {
    margin: 0;
    padding: 0;
    display: inline-block;
    cursor: pointer;
    vertical-align: top;
    position: relative;
}
ul.header_desktop li.description, li.description a, ul.header_desktop li.media_share {
    font-size: 12px;
    color: #a9a9a9;
    padding-top: 26px;
    line-height: 0;
    height: 40px;
}
ul.header_desktop li.description span {
    color: #dd0202;
}
ul.header_desktop li.FBicon {
    padding: 6px 0 0 10px;
}
ul.header_desktop li.FBicon img {
    height: 30px;
}
.appQRcode {
    position: absolute;
    z-index: 9999;
    top: 100%;
    width: 160px;
    right: -9px;
    padding: 8px;
    background: #fff;
    box-shadow: 5px 6px 8px rgba(0,0,0,.3);
    border: 1px solid rgba(0,0,0,.15);
    border-radius: 4px;
    display: none;
}
ul.header_desktop li .appQRcode img {
    width: 100%;
    height: auto;
}
li.description.appDonload:hover span {
    color: #00a1e8;
}
.appDonload:hover .appQRcode {
    display: block;
}
ul.header_desktop li.media_share {
    margin: 0 0 0 0px;
    padding-top: 16px;
}
ul.header_desktop li.media_share:hover .social_media {
    display: block;
}
ul.header_desktop li img.media_share, img.media_share {
    width: 16px;
    height: auto;
    display: inline-block;
    opacity: 0.5;
    filter: alpha(opacity=50);
    margin: 0 2px 0 5px;
    vertical-align: -2px !important;
}
ul.header_desktop li .social_media {
    position: absolute;
    z-index: 9999;
    top: 100%;
    width: 120px;
    right: -9px;
    padding: 8px;
    background: #fff;
    box-shadow: 5px 6px 8px rgba(0,0,0,.3);
    border: 1px solid rgba(0,0,0,.15);
    padding: 3px 8px;
    border-radius: 4px;
    display: none;
}
ul.header_desktop li .social_media li {
    width: 100%;
    border-top: 1px dotted #ccc;
    padding: 5px 0;
    line-height: 2;
    font-size: 14px;
}
ul.header_desktop li .social_media li:first-child {
    border: 0;
}
ul.header_desktop li .social_media li .line, ul.header_desktop li .social_media li .fb, .line, .fb {
    width: 30px;
    height: 30px;
    padding: 3px;
    background-color: #00c603;
    border-radius: 4px;
    margin-right: 5px;
}
ul.header_desktop li .social_media li .fb, .fb {
    background-color: #335a9d;
}
ul.header_desktop li .social_media li a {
    color: #333;
    text-decoration: none;
}
ul.header_desktop li .social_media li img {
    width: 100% !important;
    height: auto !important;
}

.header_mobile {
    display: none;
    position: relative;
    padding: 8px 0 0;
    height: 40px;
}
.header_mobile img.logo {
    height: 25px;
    margin-right: 18px;
}
.header_mobile .media_share {
    position: absolute;
    z-index: 99;
    top: 0;
    right: 0;
    width: 40px;
}
.header_mobile .share_icon {
    padding-top: 7px;
}
.header_mobile .share_icon img {
    width: 68%;
    float: right;
    margin-right: 5px;
    opacity: 0.5;
    filter: alpha(opacity=50);
}
.header_mobile ul.social_media {
    position: absolute;
    width: 120px;
    right: 0;
    top: calc(100% + 6px);
    z-index: 99;
    padding: 8px;
    background: #fff;
    box-shadow: 5px 6px 8px rgba(0,0,0,.3);
    border: 1px solid rgba(0,0,0,.15);
    padding: 3px 8px;
    border-radius: 4px;
    display: none;
}
.header_mobile ul.social_media li {
    width: 100%;
    border-top: 1px dotted #ccc;
    padding: 5px 0;
    line-height: 2.3;
    font-size: 14px;
}
.header_mobile ul.social_media li:first-child {
    border: 0;
}
.header_mobile ul.social_media li a {
    color: #333;
    text-decoration: none;
}

/*--- footer ---*/
.footer {
    width: 100%;
    text-align: center;
    color: #b0b0b0;
    padding: 15px 10px 20px;
    line-height: 28px;
    font-size: 16px;
}
/*--- goTOP/FB  ---*/
.right_box {
    display: none;
    width: 50px;
    position: fixed;
    bottom: 20px;
    right: 8px;
    z-index: 99;
    overflow: inherit;
    -webkit-transition: 0s;
            transition: 0s;
}
.right_box img {
    width: 100%;
}

.gotop {
    width: 42px;
    height: 42px;
    overflow: hidden;
    cursor: pointer;
    background-color: rgba(164, 164, 164, 0.85);
    padding: 7px 6px 3px;
    border-radius: 100%;
    -webkit-transition: 0.3s;
            transition: 0.3s;
}
.gotop:hover {
    background-color: rgba(164, 164, 164, 1);
}

/*--- 側邊選單 ---*/
.arrow_left {
    display: none;
}
.menu_arrow {
    position: fixed;
    top: 100px;
    right: 0;
    width: 40px;
    padding: 8px;
    cursor: pointer;
    background-color: rgba(0,0,0,.65);
    line-height: 0;
}
.menu_arrow:hover {
    background-color: #dd0202;
}
ul.menu_box {
    width: 120px;
    position: fixed;
    right: 0;
    top: 142px;
    background-color: rgba(0,0,0,.65);
    text-align: center;
    color: #fff;
}
ul.menu_box li {
    padding: 12px 0;
    margin-bottom: 1px;
    font-size: 14px;
    cursor: pointer;
    position: relative;
}
ul.menu_box li:hover {
    background-color: #dd0202;
}
ul.menu_box li::before {
    content: '';
    position: absolute;
    width: 86%;
    height: 1px;
    bottom: -1px;
    right: 7%;
    background: rgba(0,0,0,.5);
    z-index: 9;
}
ul.menu_box li.top::before {
    height: 0;
}
img.topArrow {
    width: 12px;
    vertical-align: -1px;
}

/*--- 置底APP Banner ---*/
.app_download {
    width: 100%;
    position: fixed;
    bottom: 0;
    z-index: 9;
    text-align: center;
}
.app_box {
    width: 768px;
    max-width: 100%;
    margin: auto;
    position: relative;
    z-index: 99;
}
.app_close {
    z-index: 99;
    position: absolute;
    right: 8px;
    top: 8px;
    width: 30px;
    height: 30px;
    line-height: 30px;
    font-size: 1em;
    color: #fff;
    text-align: center;
    border-radius: 100%;
    cursor: pointer;
    background-color: #000;
}
.app_download img {
    display: block;
}
.footer.noAPP, .noAPP {
    padding-bottom: 20px !important;
}
.right_box.noAPP {
    bottom: 0;
}
.right_box.useAPP {
    bottom: 10px;
}
.footer.useAPP {
    padding-bottom: 20px;
}
/*--- Mobile 置頂選單 ---*/
#mob_topmenu {
    width: 100%;
    overflow: hidden;
    -webkit-overflow-scrolling: touch;
}
#menu {
    width: 100%;
    height: 40px;
    z-index: 999;
    text-align: center;
    color: #777;
    font-size: 18px;
    line-height: 20px;
    padding: 13px 0 7px 5px;
    font-weight: bold;
    background-color: #fff;
    border-bottom: 1px solid #eee;
    transition: 0s;
    -webkit-transition: 0s;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    white-space:nowrap;
}
#menu a {
    color: #777;
    text-decoration: none;
}
#menu span {
    vertical-align: baseline;
    font-weight: normal;
    color: #cacaca;
}
#menu .nav-active::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 3px;
    background: red;
    left: 0;
    bottom: -10px;
    z-index: 9;
}
#menu .btn-bottom {
    height: 100%;
    cursor: pointer;
    position: relative;
    display: inline-block;
    width: auto;
    padding: 0 5px;
    white-space:nowrap;
}

#menu .btn-bottom:nth-last-child(1)::before {
    width: 0px;
}
.mFixed {
    position: fixed;
    top: -1px !important;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

.scroll_mob::-webkit-scrollbar {
    height: 0px
}
.scroll_pc::-webkit-scrollbar {
    height: 5px
}
.scroll_pc::-webkit-scrollbar-track {
    background-color: #EAEAEA;
}
.scroll_pc::-webkit-scrollbar-thumb {
    background-color: darkgrey;
    outline: 1px solid slategrey;
}


/*--- 共用 ---*/
.mobile, .app_download.mobile.useAPP { display: none; }

@media only screen and (max-width: 10230px) {
    .app_download.mobile                { display: none; }
}
@media only screen and (max-width: 950px) {
    ul.header_desktop li img            { height: 30px; width: auto; }
    ul.header_desktop li.description, li.description a  { height: 30px; padding-top: 20px; }
    ul.header_desktop li.FBicon         { padding: 3px 0 0 10px; }
    ul.header_desktop li.FBicon img     { height: 25px; }
    .appQRcode                          { top: 30px; }
    ul.header_desktop li.media_share    { height: 30px; padding-top: 11px; }
}
@media only screen and (max-width: 768px) {
    ul.header_desktop, .desktop { display: none; }
    .app_download.mobile, .header_mobile, .mobile{ display: block; }
    .footer                             { line-height: 1.5; font-size: 11px; padding-bottom: 20%; }
    .right_box                          { bottom: 11%; }
}
@media only screen and (max-width: 767px) {
    .app_close              { top: 5px; right: 5px; width: 25px; height: 25px; line-height: 25px; }
}
@media only screen and (max-width: 480px) {
    .footer span                        { display: block; }
    .footer br                          { display: none; }
    .app_close                          { width: 20px; height: 20px; line-height: 20px; font-size: 0.8em; }
    .right_box                          { bottom: 12%; width: 42px; }
    .fb_box                             { padding: 6px 5px 4px; }
    .line_box                           { padding: 9px 7px 6px; margin: 8px 0; }
    .gotop                              { padding: 8px 6px 4px; }
}
@media only screen and (max-width: 330px) {
    .footer                             { padding: 15px 0 20px; }
}

