﻿body {
    font-size: 16px;
    font-family: 'Microsoft JhengHei', sans-serif;
    color: #333;
}

a:hover {
    color: inherit;
    cursor: pointer;
    text-decoration: none;
}

.btn-gray {
    color: #333;
    background-color: #e1e1e1;
    border-color: #d3d3d3;
}

.icon.default-bg {
    background-color: #868686;
}

pre {
    padding: 9.5px;
    margin: 0 0 10px;
    line-height: 1.4;
    word-break: break-all;
    word-wrap: break-word;
    background-color: #f5f5f5;
    border: 1px solid #ccc;
    border-radius: 4px;
}

ul.about {
    list-style: square;
}

.form-control {
    border-color: #e0e0e0;
    color: #606265;
}

/* Copyright's dot */
.copyright a {
    text-decoration: none;
    color: inherit;
}

/* Header top */
.header-top {
    font-size: 14px;
    color: #ffffff;
    background-color: #6c757d;
}

    /*.header-top .btn-group a {
        color: #ffffff;
        padding: 0.5rem 1rem;
    }

        .header-top .btn-group a:after {
            display: none;
        }

    .header-top .dropdown-menu > a {
        color: #666;
    }*/

    .header-top .navbar-nav > li > a {
        color: #ffffff;
        padding-top: 12px;
        padding-bottom: 12px;
    }

        .header-top .navbar-nav > li > a:after {
            display: none;
        }

    .header-top .dropdown-menu > li > a {
        color: #666;
    }

    .header-top .social-links > li + li {
        margin-left: 5px;
    }

    .header-top .social-links a {
        color: #ffffff;
        width: 30px;
        height: 30px;
        padding: 0;
        border-radius: 100%;
        text-align: center;
        border: 1px solid #ac6353;
        background-color: #B67567;
    }

        .header-top .social-links a > i {
            line-height: 30px;
        }

        .header-top .social-links a.line {
            background: url(/Images/header-line.png);
            background-repeat: no-repeat;
            background-position: center;
            background-color: #00b900;
            background-size: 14px;
        }

img.logo {
    height: 45px;
}

/* Header */
.fixed-header-on header .navbar {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1010;
}

header .navbar {
    background-color: #ffffff;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.15);
}

header .btn-group a {
    display: block;
    color: #333333;
    width: 40px;
    height: 40px;
    border: 1px solid #d9d9d9;
    background-color: #fff;
    border-radius: 100%;
    text-align: center;
}

    header .btn-group a > i {
        line-height: 38px;
    }

    header .btn-group a:hover {
        color: #fff;
        background-color: #868686;
    }

header .btn-group .dropdown {
    padding: 5px 0;
}

header .btn-group .dropdown-menu {
    min-width: 280px;
    padding: 15px;
    border-radius: 0 0 0.25rem 0.25rem;
}

header .btn-group .search-keyword button {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.shop-cart .cart-count {
    background-color: #868686;
    color: #fff;
    right: 0px;
    top: 0px;
}

/* Breadcrumb */
.breadcrumb {
    font-size: 12px;
    background-color: transparent;
    margin-bottom: 0;
    padding-left: 0;
}

.breadcrumb-item + .breadcrumb-item::before {
    font-family: "FontAwesome";
    content: "\f101";
}

/* Mobile Navbar 手機版選單 (feature-panel 由左滑出) */
.navbar-toggle {
    left: 5px;
    top: 8px;
    border: none;
    z-index: 1007;
    background-color: transparent;
    transition: all ease .5s;
}

    .navbar-toggle .icon-bar {
        background-color: #333333;
        -webkit-transform: matrix(1, 0, 0, 1, 0, 0);
        -moz-transform: matrix(1, 0, 0, 1, 0, 0);
        -ms-transform: matrix(1, 0, 0, 1, 0, 0);
        -o-transform: matrix(1, 0, 0, 1, 0, 0);
        transform: matrix(1, 0, 0, 1, 0, 0);
    }

        .navbar-toggle .icon-bar:nth-child(1) {
            transition: all .8s cubic-bezier(.19, 1, .22, 1);
            transform: matrix(1, 0, 0, 1, 0, 0);
        }

        .navbar-toggle .icon-bar:nth-child(2) {
            transition: all .8s cubic-bezier(.19, 1, .22, 1);
        }

        .navbar-toggle .icon-bar:nth-child(3) {
            transition: all .8s cubic-bezier(.19, 1, .22, 1);
            transform: matrix(1, 0, 0, 1, 0, 0)
        }

    .navbar-toggle.open .icon-bar:nth-child(1) {
        transition: all .8s cubic-bezier(.19, 1, .22, 1);
        transform: matrix(.8, -.8, .8, .8, 0, 6)
    }

    .navbar-toggle.open .icon-bar:nth-child(2) {
        transition: all .8s cubic-bezier(.19, 1, .22, 1);
        transform: translateX(-60px);
        opacity: 0;
    }

    .navbar-toggle.open .icon-bar:nth-child(3) {
        transition: all .8s cubic-bezier(.19, 1, .22, 1);
        transform: matrix(.8, .8, -.8, .8, 0, -6);
    }

#nav-mobile {
    width: 270px;
    background-color: #ffffff;
    color: #333333;
    border-right: 0;
}

    #nav-mobile .wrapper {
        width: 270px;
    }

    #nav-mobile .header {
        padding: 10px 20px;
    }

    #nav-mobile .exit {
        position: relative;
        width: 20px;
        height: 20px;
    }

        #nav-mobile .exit:hover {
            opacity: 0.85;
            cursor: pointer;
        }

        #nav-mobile .exit:before,
        #nav-mobile .exit:after {
            left: 9px;
            height: 20px;
            background-color: #666666;
        }

    #nav-mobile .logo {
        width: auto;
        height: auto;
    }

        #nav-mobile .logo img {
            height: 40px;
        }

    #nav-mobile .search {
        padding: 10px 20px 20px;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    }

        #nav-mobile .search input {
            padding-right: 42.5px;
        }

        #nav-mobile .search i {
            position: absolute;
            right: 15px;
            top: 10px;
        }

    #nav-mobile .body {
        padding: 10px 0;
        border-top: 1px solid rgba(0, 0, 0, 0.1);
        box-shadow: 0 3px 9px rgba(0, 0, 0, 0.1);
    }

        #nav-mobile .body a {
            position: relative;
            display: flex;
            color: #333333;
            padding: 10px 20px;
        }

        #nav-mobile .body ul > li.active > a {
            color: #000;
        }

        #nav-mobile .body ul > li > ul > li > a {
            padding-right: 10px;
            padding-left: 40px;
            font-size: inherit;
        }

        /*#nav-mobile .body ul > li > ul > li a:before {
                font-family: 'FontAwesome';
                content: "\f105";
                position: absolute;
                left: 1.5em;
            }*/

        #nav-mobile .body ul > li > ul > li > ul > li > a {
            padding-right: 10px;
            padding-left: 2.5em;
        }

            #nav-mobile .body ul > li > ul > li > ul > li > a:before {
                left: 1.5em;
            }

        #nav-mobile .body ul > li > ul {
            display: none;
        }

        #nav-mobile .body ul > li.active ul,
        #nav-mobile .body ul > li.open ul,
        #nav-mobile .body ul > li.show ul {
            display: block;
        }

    #nav-mobile .feature {
        background-color: #6c757d;
        border-top: 1px solid rgba(0,0,0,0.1);
        height: 50px;
    }

        #nav-mobile .feature a {
            color: #ffffff;
            font-size: 18px;
        }

            #nav-mobile .feature a.line {
                background-image: url(/Images/line-logo.svg);
                background-position: center;
                background-repeat: no-repeat;
                background-size: contain;
                width: 20px;
                height: 20px;
            }

    #nav-mobile.feature-panel .feature a.facebook {
        background-image: url('/Images/facebook-logo-white.svg');
        background-position: center;
        background-repeat: no-repeat;
        background-size: contain;
        width: 20px;
        height: 20px;
    }

/* Footer */
.footer {
    padding: 20px 0;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    font-size: 14px;
    line-height: 1.3;
    color: #333;
    padding: 25px 0;
}

    .footer .contact > * {
        margin-bottom: 0.5rem;
    }

    .footer a {
        color: #333;
    }

    .footer .socials {
        display: flex;
        justify-content: flex-start;
        margin-top: 10px;
    }

        .footer .socials a {
            display: block;
            width: 40px;
            height: 40px;
            background-color: transparent;
            border: 1px solid #d9d9d9;
            border-radius: 50%;
            margin-right: 20px;
            text-align: center;
            color: #333;
            font-size: 18px;
            line-height: 36px;
        }

            .footer .socials a:hover {
                background-color: #868686;
                color: #fff;
            }

            .footer .socials a.line {
                background-image: url('/Images/line-logo-black.svg');
                background-position: center;
                background-repeat: no-repeat;
                background-size: 60%;
            }

                .footer .socials a.line:hover {
                    background-image: url('/Images/line-logo.svg');
                }

.copyright {
    background-color: #6c757d;
    color: #fff;
}

    .copyright ul > li > a {
        display: block;
        color: #ffffff;
        padding: 5px 0;
        margin-right: 30px;
    }

    .copyright ul > li:last-child > a {
        margin-right: 0;
    }

#section-nav-bottom .navbar {
    background-color: #2f4050;
    box-shadow: 0px -6px 6px rgba(0, 0, 0, 0.1);
}

#section-nav-bottom .link {
    padding: 8px 15px;
    font-size: 12px;
    color: #fff !important;
}

/* 排序(電腦版) */
.sort-desktop {
    color: #777;
    padding: 0.75rem 0;
    margin-bottom: 1rem;
    margin-top: -1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

    .sort-desktop nav.sort {
        display: none;
    }

        .sort-desktop nav.sort a, nav.sort a {
            margin-right: 1.25em;
        }

            .sort-desktop nav.sort a.active, nav.sort a.active {
                color: #000;
            }

/* 排序(手機版) */
.sort-mobile {
    margin-bottom: 1rem;
}

    .sort-mobile .dropdown-item {
        padding: 0.5rem 1.5rem;
    }

        .sort-mobile .dropdown-item + .dropdown-item {
            border-top: 1px solid #e9ecef;
        }

        .sort-mobile .dropdown-item.active, .dropdown-item:hover, .dropdown-item.active {
            background-color: rgba(0, 0, 0, 0.025);
            color: #000;
        }


/* 分類選單(水平展開 nav-item) */
.category-pills {
    display: none;
}

.nav-pills {
    margin-bottom: 1rem;
}

    .nav-pills li {
        margin-right: 5px;
        margin-left: 0;
    }

        .nav-pills li:last-child {
            margin-right: 0;
        }

        .nav-pills li a {
            display: block;
            border-radius: 0;
            margin-bottom: -1px;
        }

    .nav-pills > li > a.active, .nav-pills > li > a.active:hover {
        color: #777777;
        background-color: transparent;
        border-bottom: 1px solid #777777;
    }


/* 分類選單(feature-panel) */
#filter.feature-panel {
    width: 225px;
}

    #filter.feature-panel .wrapper {
        width: 100%;
        overflow-y: auto;
    }

    #filter.feature-panel .header {
        padding: 9px 15px;
        align-items: center;
        justify-content: space-between;
    }

        #filter.feature-panel .header h2 {
            color: #777;
            width: auto;
            height: auto;
            margin-bottom: 0;
            margin-top: 0;
            line-height: 1.0;
            font-size: 18px;
        }

        #filter.feature-panel .header .exit {
            position: relative;
            width: 15px;
            height: 15px;
        }

            #filter.feature-panel .header .exit:before,
            #filter.feature-panel .header .exit:after {
                position: absolute;
                left: 7px;
                top: 0;
                content: '';
                height: 15px;
                width: 2px;
                background-color: #777;
            }

/* feature-panel */
.feature-panel .header .exit:before,
.feature-panel .header .exit:after {
    position: absolute;
    top: 0;
    content: '';
    width: 2px;
}

.feature-panel .header .exit:before {
    transform: rotate(45deg);
}

.feature-panel .header .exit:after {
    transform: rotate(-45deg);
}

.feature-panel ul {
    padding-left: 0;
    list-style: none;
}

    .feature-panel ul > li > a {
        display: flex;
        justify-content: space-between;
        padding: 7px 15px;
        color: #666666;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    }

        .feature-panel ul > li > a:after {
            font-family: 'FontAwesome';
            content: "\f105";
            color: transparent;
        }

        .feature-panel ul > li > a:hover,
        .feature-panel ul > li > a.active {
            background-color: rgba(0, 0, 0, 0.025);
            color: #000;
        }

            .feature-panel ul > li > a:hover:after,
            .feature-panel ul > li > a.active:after {
                color: #000;
            }

    .feature-panel ul > li > ul > li > a {
        font-size: 14px;
        padding-left: calc(15px + 1em);
    }

    .feature-panel ul > li > ul {
        display: none;
    }

    .feature-panel ul > li.active > ul {
        display: block;
    }

/* Pagination */
.page-link {
    color: #999999;
}

    .page-link:hover {
        color: #333333;
    }

.page-item.active .page-link {
    background-color: #6c757d;
    border-color: #6c757d;
}

.PagedList-ellipses {
    margin: 0 0.5em;
}

/* Pagination - Detail */
.detail .pagination {
    display: block;
}

    .detail .pagination a {
        display: inline-block;
    }

        .detail .pagination a .title {
            color: #999999;
            font-size: 0.8rem;
            font-weight: normal;
            overflow: hidden;
            display: -webkit-box;
            -webkit-box-orient: vertical;
            -webkit-line-clamp: 2;
            line-height: 16px;
            max-height: 32px;
            border: 0;
        }

/* section image-box */
section .image-box .body .title, section .image-box .body .description {
    margin: 0;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    white-space: normal;
    text-overflow: ellipsis;
    overflow: hidden;
}

section .image-box .body .title {
    font-weight: 500;
    font-size: 1.1rem;
    height: 20px;
    -webkit-line-clamp: 1;
}

section .image-box {
    margin-bottom: 1rem;
}

    section .image-box .body {
        padding: 1rem;
        font-size: 1rem;
    }

.detail .date-wrapper .title,
.date-wrapper .date {
    margin-top: 0.25rem;
    margin-bottom: 0.5rem;
}

section h1 {
    text-align: center;
}

.col-content {
    min-width: 0;
}

@media (min-width: 576px) {
}

@media (min-width:768px) {
    /* Header */
    .feature-panel.center {
        margin-top: 30px;
        margin-bottom: 30px;
        z-index: 1050;
    }

    .footer .socials {
        justify-content: center;
        margin-top: 0;
    }
}

@media (min-width:992px) {
    /* Header */
    header .navbar-expand-md .navbar-nav .nav-link {
        padding-right: 1.5rem;
        padding-left: 1.5rem;
    }

    .col-category:not(.category-side) {
        display: none;
    }

    .category-pills {
        display: block;
    }

    /* 分類選單(feature-panel) */
    #filter.feature-panel {
        position: unset;
        border-right: 0;
    }

        #filter.feature-panel .header {
            background-color: transparent;
            height: auto;
            padding: 15px;
        }

            #filter.feature-panel .header .exit {
                display: none;
            }

        #filter.feature-panel .wrapper {
            position: unset;
        }

    /*#filter.feature-panel ul > li > a {
            padding: 9px 15px;
        }*/


    /* 排序(電腦版) */
    .sort-mobile {
        display: none;
    }

    .sort-desktop {
        margin-top: 0rem;
    }

        .sort-desktop nav.sort {
            display: block;
        }
}

@media (min-width:1200px) {
}
