@charset "utf-8";
@import url('reset.css');

body {
    background: #f8f8f8;
    font-family: "微軟正黑體", "Microsoft JhengHei", arial;
    margin-top: 74px;
}

/* common */
.container-1500 {
    max-width: 1500px;
    width: 100%;
    margin: 0 auto;
}

.letter-spacing {
    letter-spacing: 2px;
}

.toggle-content {
    display: none;
}

/* 彈跳視窗 */
.alert {
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, .8);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.alert .content {
    max-width: 500px;
    width: 80%;
    background: #fff;
    font-size: 16px;
    line-height: 24px;
    padding: 20px;
    box-sizing: border-box;
}

.alert .content img {
    width: 200px;
    height: auto;
    display: block;
    margin: 20px auto;
}

.alert .supplementary-page {
    max-width: 1000px;
    width: 90%;
    height: 90%;
    overflow-y: scroll;
    background: #fff;
    font-size: 16px;
    line-height: 24px;
    padding: 20px;
    box-sizing: border-box;
}

/* loading遮罩 */
.mask {
    display: none;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, .7);
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
}

.mask.active {
    display: flex;
}

@keyframes loadingAnime {
    0% {
        opacity: 1
    }

    100% {
        opacity: 0
    }
}

.loadingAnime div {
    left: 48px;
    top: 27px;
    position: absolute;
    animation: loadingAnime linear 1s infinite;
    background: #e8e8e8;
    width: 4px;
    height: 6px;
    border-radius: 0.24px / 0.24px;
    transform-origin: 2px 23px;
}

.loadingAnime div:nth-child(1) {
    transform: rotate(0deg);
    animation-delay: -0.9166666666666666s;
    background: #e8e8e8;
}

.loadingAnime div:nth-child(2) {
    transform: rotate(30deg);
    animation-delay: -0.8333333333333334s;
    background: #e8e8e8;
}

.loadingAnime div:nth-child(3) {
    transform: rotate(60deg);
    animation-delay: -0.75s;
    background: #e8e8e8;
}

.loadingAnime div:nth-child(4) {
    transform: rotate(90deg);
    animation-delay: -0.6666666666666666s;
    background: #e8e8e8;
}

.loadingAnime div:nth-child(5) {
    transform: rotate(120deg);
    animation-delay: -0.5833333333333334s;
    background: #e8e8e8;
}

.loadingAnime div:nth-child(6) {
    transform: rotate(150deg);
    animation-delay: -0.5s;
    background: #e8e8e8;
}

.loadingAnime div:nth-child(7) {
    transform: rotate(180deg);
    animation-delay: -0.4166666666666667s;
    background: #e8e8e8;
}

.loadingAnime div:nth-child(8) {
    transform: rotate(210deg);
    animation-delay: -0.3333333333333333s;
    background: #e8e8e8;
}

.loadingAnime div:nth-child(9) {
    transform: rotate(240deg);
    animation-delay: -0.25s;
    background: #e8e8e8;
}

.loadingAnime div:nth-child(10) {
    transform: rotate(270deg);
    animation-delay: -0.16666666666666666s;
    background: #e8e8e8;
}

.loadingAnime div:nth-child(11) {
    transform: rotate(300deg);
    animation-delay: -0.08333333333333333s;
    background: #e8e8e8;
}

.loadingAnime div:nth-child(12) {
    transform: rotate(330deg);
    animation-delay: 0s;
    background: #e8e8e8;
}

.loading {
    width: 100px;
    height: 100px;
    display: inline-block;
    overflow: hidden;
    background: none;
}

.loadingAnime {
    width: 100%;
    height: 100%;
    position: relative;
    transform: translateZ(0) scale(1);
    backface-visibility: hidden;
    transform-origin: 0 0;
    /* see note above */
}

.loadingAnime div {
    box-sizing: content-box;
}

/* header */
header {
    width: 100%;
    background: #fff;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 999;
}

header .wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header .wrap .menu {
    display: flex;
    align-items: center;
}

/* logo */
#logo {
    width: 218px;
    height: 42px;
    background: url('../images/logo.png');
    background-size: 100% auto;
    text-indent: -9999px;
    display: block;
}

/* nav */
#nav {
    display: flex;
}

#nav>li {
    position: relative;
}

#nav>li>a {
    color: #666;
    font-size: 16px;
    padding: 29px 30px;
    display: block;
    transition: all .3s;
}

#nav>li>a:hover {
    color: #39c4b6;
}

#nav li .sub-menu {
    width: 100%;
    background: rgba(0, 0, 0, .8);
    position: absolute;
    top: 100%;
    left: 0;
}

#nav li .sub-menu::before {
    content: "";
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 10px 10px 10px;
    border-color: transparent transparent rgba(0, 0, 0, .8) transparent;
    position: absolute;
    top: -10px;
    left: 50%;
    margin-left: -10px;
}

#nav li .sub-menu li a {
    color: #fff;
    font-size: 16px;
    text-align: center;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .5);
    display: block;
}

/* mobile */
#mobi-btn {
    display: none;
    width: 100px;
    height: 74px;
}

#mobi-btn .btn {
    width: 100px;
    display: block;
    padding: 24px 35px;
    box-sizing: border-box;
}

#mobi-btn .btn:before,
#mobi-btn .btn:after {
    content: "";
    width: 30px;
    height: 3px;
    display: block;
    background: #39c4b6;
    transition: all .3s;
    position: relative;
    bottom: 1px;
}

#mobi-btn .btn hr {
    width: 30px;
    height: 3px;
    display: inline-block;
    border: none;
    background: #39c4b6;
    opacity: 1;
    transition: all .3s;
}

#mobi-btn .btn.active {
    position: relative;
}

#mobi-btn .btn.active hr {
    opacity: 0;
}

#mobi-btn .btn.active:before {
    background: #39c4b6;
    transform: rotate(-45deg);
    position: absolute;
    left: 35px;
    top: 35px;
}

#mobi-btn .btn.active:after {
    background: #39c4b6;
    transform: rotate(45deg);
    position: absolute;
    left: 35px;
    top: 35px;
}

#mobile {
    display: none;
    width: 100px;
    background: rgba(0, 0, 0, .8);
    text-align: center;
    position: absolute;
    top: 100%;
    right: 0;
    z-index: 999;
}

#mobile>li>a {
    color: #fff;
    padding: 15px 0;
    border-top: 1px solid rgba(255, 255, 255, .5);
    display: block;
}

#mobile>li:first-child>a {
    border-top: none;
}

#mobile li .sub-menu {
    display: none;
    background: #4e6357;
}

/* sub-nav */
#sub-nav {
    display: flex;
    justify-content: center;
    flex-direction: row-reverse;
}

#sub-nav>li {
    width: 100px;
    box-sizing: border-box;
    position: relative;
}

#sub-nav li a {
    text-align: center;
    color: #fff;
    padding: 29px 0;
    display: block;
    transition: all .3s;
}

#sub-nav li .btn-register {
    border-left: 1px solid #ffffff;
}

#sub-nav li .btn-register,
#sub-nav li .login {
    background: #39c4b6;
    font-size: 16px;
}

#sub-nav li .btn-register:hover,
#sub-nav li .login:hover {
    background: #f47120;
}

#sub-nav li .login2-btn {
    background: url('../images/icon-login-1.svg') #39c4b6 center no-repeat;
    text-indent: -9999px;
    border-left: 1px solid #39c4b6;
    border-right: 1px solid #39c4b6;
}

#sub-nav li .login2-btn:hover {
    background: url('../images/icon-login-2.svg') #fff center no-repeat;
}

#sub-nav li .notification-btn {
    background: url('../images/icon-notification-1.svg') center no-repeat;
    text-indent: -9999px;
    border-left: 1px solid #39c4b6;
    position: relative;
}

#sub-nav li .notification-btn.notice::after {
    content: "";
    width: 8px;
    height: 8px;
    background: #dc0707;
    display: block;
    border-radius: 50%;
    position: absolute;
    top: 20px;
    right: 30px;
    z-index: 2;
}

#sub-nav li .login2 {
    display: none;
    width: 100%;
    background: rgba(0, 0, 0, .8);
    position: absolute;
    top: 100%;
    left: 0;
}

#sub-nav li .login2::before {
    content: "";
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 10px 10px 10px;
    border-color: transparent transparent rgba(0, 0, 0, .8) transparent;
    position: absolute;
    top: -10px;
    left: 50%;
    margin-left: -10px;
}

#sub-nav li .login2 li a {
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .5);
}

#sub-nav li .notification {
    display: none;
    width: 200px;
    background: rgba(255, 255, 255, .9);
    letter-spacing: 0;
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -100px;
    border: 1px solid rgba(0, 0, 0, .1);
    box-sizing: border-box;
}

#sub-nav li .notification .list {
    height: 280px;
    overflow-y: scroll;
}

#sub-nav li .notification .list li {
    margin: 0 15px;
    padding-bottom: 20px;
    border-bottom: 1px solid #ccc;
}

#sub-nav li .notification .list li span {
    display: block;
}

#sub-nav li .notification .list li .title {
    font-size: 16px;
    margin-top: 20px;
}

#sub-nav li .notification .list li .content {
    color: #666;
    font-size: 14px;
    line-height: 18px;
    margin-top: 10px;
}

#sub-nav li .notification .list li .time {
    color: #f47120;
    font-size: 12px;
    margin-top: 5px;
}

#sub-nav li .notification a {
    color: #f47120;
    padding: 15px 0;
}

#sub-nav>li:nth-child(2) .toggle.active {
    background: url('../images/icon-login-2.svg') #fff center no-repeat;
}

#sub-nav>li:nth-child(3) .toggle.active {
    background: url('../images/icon-notification-2.svg') #f47120 center no-repeat;
    border-color: #f47120;
}


/* footer */
footer {
    background: #050505;
}

footer .wrap {
    max-width: 1170px;
    width: 95%;
    margin: 0 auto;
    padding: 30px 0;
}

footer .wrap .info {
    padding: 30px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .3);
}

footer .wrap .info>li {
    color: #fff;
    display: inline-block;
    vertical-align: text-top;
    padding-right: 40px;
}

footer .wrap .info>li:first-child {
    font-size: 21px;
}

footer .wrap .info li a {
    color: #fff;
    opacity: .5;
    transition: all .3s;
    display: inline-block;
}

footer .wrap .info li a:hover {
    opacity: 1;
}

footer .wrap .info li .contact {
    color: #f47120;
    opacity: 1;
}

footer .wrap .info li .sns {
    display: flex;
    margin-top: 20px;
}

footer .wrap .info li .sns li a {
    width: 30px;
    height: 30px;
    background: center;
    background-size: 100% auto;
    text-indent: -9999px;
    margin-right: 5px;
}

footer .wrap .info li .sns li:nth-child(1) a {
    background-image: url('../images/footer-sns1.svg');
}

footer .wrap .info li .sns li:nth-child(2) a {
    background-image: url('../images/footer-sns2.svg');
}

footer .wrap .info li .sns li:nth-child(3) a {
    background-image: url('../images/footer-sns3.svg');
}

footer .wrap .info li .sns li:nth-child(4) a {
    background-image: url('../images/footer-sns4.svg');
}

footer .wrap .bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

footer .wrap .bottom .info {
    border: none;
}

footer .wrap .bottom .info li:first-child {
    font-size: 16px;
}

footer .wrap .bottom .copyright {
    color: rgba(255, 255, 255, .5);
}

/* 點選加入購物車跳出來的欄位 */
#product-check {
    width: 100%;
    background: rgba(57, 196, 182, .9);
    color: #fff;
    position: fixed;
    bottom: 0;
    left: 0;
    z-index: 2;
}

#product-check .wrap {
    max-width: 1500px;
    width: 95%;
    margin: 0 auto;
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
}

#product-check .wrap .text {
    font-size: 20px;
}

#product-check .wrap .item-list {
    width: 50%;
    max-height: 150px;
    overflow-y: scroll;
}

#product-check .wrap .item-list .item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

#product-check .wrap .item-list .item li {
    font-size: 16px;
    line-height: 22px;
    margin-right: 20px;
}

#product-check .wrap .item-list .item li:last-child {
    margin: 0;
}

#product-check .wrap .item-list .item li.label {
    width: 40px;
    background: #f47120;
    color: #fff;
    font-size: 14px;
    text-align: center;
    line-height: 26px;
}

#product-check .wrap .item-list .item li.product-name {
    width: 48%;
    max-width: 335px;
}

#product-check .wrap .item-list .item li.amount {
    width: 20%;
    max-width: 135px;
}

#product-check .wrap .item-list .item li .delet {
    width: 40px;
    height: 40px;
    background: url('../images/icon-delet.svg') center no-repeat;
    background-size: 26px;
    height: 26px;
    text-indent: -9999px;
    display: block;
}

#product-check .wrap .btn-group {
    display: flex;
}

#product-check .wrap .btn-group a {
    width: 140px;
    height: 45px;
    color: #fff;
    line-height: 45px;
    text-align: center;
    border: 1px solid #fff;
    display: block;
    box-sizing: border-box;
    margin-left: 5px;
    transition: all .3s;
}

#product-check .wrap .btn-group a:hover {
    background: #fff;
    color: #333;
}



/* RWD */
@media screen and (max-width: 1500px) {
    #logo {
        margin-left: 15px;
    }

}

@media screen and (max-width: 1100px) {
    #nav>li>a {
        padding: 29px 15px;
    }

}

@media screen and (max-width: 1023px) {
    #nav {
        display: none;
    }

    #mobi-btn {
        display: block;
    }

    #mobile li .sub-menu li a {
        color: #ffffff;
        padding: 15px 0;
        display: block;
    }

    footer .wrap {
        padding-top: 0;
    }

    footer .wrap .info {
        padding: 20px 0;
    }

    footer .wrap>.info>li:first-child {
        width: 100%;
        padding-right: 0;
        margin-top: 0;
    }

    footer .wrap .info>li {
        margin-top: 10px;
    }

    footer .wrap .bottom {
        display: block;
    }

    #product-check .wrap {
        display: block;
    }

    #product-check .wrap .item-list {
        margin-top: 10px;
        width: 100%;
    }

    #product-check .wrap .item-list .item {
        justify-content: space-between;
    }

    #product-check .wrap .btn-group {
        justify-content: space-between;
    }

    #product-check .wrap .btn-group a {
        width: 49%;
        margin: 0;
    }

}

@media screen and (max-width: 640px) {
    body {
        margin-top: 60px;
    }

    #sub-nav>li {
        width: 64px;
    }

    #sub-nav li a {
        padding: 22px 0;
    }

    #sub-nav li .login2 {
        width: 100px;
        left: 50%;
        margin-left: -50px;
    }

    #sub-nav li .notification-btn.notice::after {
        top: 12px;
        right: 14px;
    }

    #mobi-btn .btn hr {
        margin: 7px 0;
    }

    #mobi-btn .btn.active:before,
    #mobi-btn .btn.active:after {
        top: 28px;
        left: 19px;
    }

    #mobi-btn {
        width: 64px;
        height: 60px;
    }

    #mobi-btn .btn {
        width: 64px;
        padding: 19px 17px 16px 17px;
    }
}

@media screen and (max-width: 479px) {
    #logo {
        width: 155px;
        height: 30px;
        margin-left: 10px;
    }

    footer .wrap .info>li:first-child {
        font-size: 18px;
    }

    footer .wrap .info>li {
        padding-right: 25px;
    }

    #product-check .wrap {
        padding: 10px 0;
    }

    #product-check .wrap .item-list .item li {
        margin-right: 10px;
    }
}

@media screen and (max-width: 320px) {
    #logo {
        width: 112px;
        height: 22px;
    }
}