/*2022.05.26*/


/* ==================================================
   logo
================================================== */
@media (min-width: 768px) {
    .nav-mid {
        padding: 6px 0;
        border-bottom: 1px solid #ddd;
    }
}

.nav-mid .logo {
    display: none;
    background-repeat: no-repeat;
    background-position: 50% 50%;
    background-size: contain;
    /*width: 600px;
    height: 93px;*/
    font-size: 0;
    text-indent: -9999;
    background-image: url("../images/cdd-logo.svg");
}

@media (min-width: 768px) {
    .nav-mid .logo {
        display: block;
        /*width: 500px;
        height: 78px;*/
        width: 387px;
        height: 60px;
        margin-top: 35px;
        margin-bottom: 30px;
    }
}

/* 手機版*/
#nav-xs {
    padding-bottom: 18px;
}

    #nav-xs h1 {
        display: inline-block;
        margin-bottom: 0;
        font-size: 0;
        line-height: 0;
        position: relative;
        top: 0;
        left: 6px;
    }

        #nav-xs h1 > a.logo {
            display: inline-block;
            background-repeat: no-repeat;
            background-position: 50% 50%;
            background-size: contain;
            width: 255px;
            height: 40px;
            font-size: 0;
            text-indent: -9999;
            background-image: url("../images/cdd-logo.svg");
        }

            #nav-xs h1 > a.logo:focus {
                outline: 0;
            }



/* ==================================================
   nav
================================================== */
/* helper */

.lock-scroll {
    overflow: hidden;
}

#header {
    position: relative;
    display: block;
    background-color: #fff;
    border-bottom: 1px solid #ddd;
}

/* fixed nav-bottom */

@media (min-width: 768px) {
    #nav .nav-bottom.fixed {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 99;
        background-color: #fff;
        border-bottom: 1px solid #ddd;
    }
}

#nav {
    display: none;
}

@media (min-width: 768px) {
    #nav {
        display: block;
    }
}

@media (min-width: 768px) {
    #nav-xs.hidden-sm { /*最新修正*/
        display: none;
    }
}

.nav-top {
    font-size: 13px;
    border-bottom: 1px solid #ddd;
}

    .nav-top .search,
    .nav-top .time,
    .nav-top .subscribe-newsLetter,
    .nav-top .lang {
        display: inline-block;
    }

        .nav-top .time > .glyphicon {
            margin-right: 8px;
            margin-top: -4px;
            vertical-align: middle;
        }

    .nav-top .time,
    .nav-top .subscribe-newsLetter,
    .nav-top .lang {
        padding: 8px 24px;
        border-left: 1px solid #ddd;
    }

    .nav-top .lang {
        border-right: 1px solid #ddd;
    }

@media (min-width: 768px) {
    .nav-top .search {
        float: right;
    }
}

.nav-top .search .nav-search-form {
    width: 220px;
    display: block;
    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;
}

    .nav-top .search .nav-search-form > .search-input {
        padding: 0 12px;
        border: 0;
        height: 35px;
        line-height: 35px;
        width: 150px;
        width: calc(100% - 50px);
    }

        .nav-top .search .nav-search-form > .search-input:focus {
            outline: 0;
        }

    .nav-top .search .nav-search-form .glyphicon-search {
        top: 2px;
    }

    .nav-top .search .nav-search-form > .search-submit {
        border: 0;
        background-color: transparent;
        -moz-appearance: none;
        -webkit-appearance: none;
    }

        .nav-top .search .nav-search-form > .search-submit:focus {
            outline: 0;
        }


.nav-bottom .nav-menuList--container {
    /*text-align: center;*/
    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;
    background-color: #453e3e; /*主選單底色*/
}

.nav-bottom .nav-menuList {
    /*margin-left: -50px;*/
    margin-left: -20px;
    margin-bottom: 0;
    display: inline-block;
    list-style-type: none;
    width: 100%;
}

    .nav-bottom .nav-menuList > li {
        display: inline-block;
        position: relative;
    }

.nav-bottom .nav-item.mega-menu {
    position: static;
}

/*主選單第一層*/

.nav-bottom .nav-item > a {
    display: block;
    padding: 8px 0;
    font-size: 16px;
    text-align: center;
    color: #fff; /*主選單*/
}

@media (min-width: 768px) {
    .nav-bottom .nav-item > a {
        font-size: 15px;
        padding: 12px 18px;
    }
}

@media (min-width: 992px) {
    .nav-bottom .nav-item > a {
        font-size: 16px;
        padding: 12px 30px;
    }
}

@media (min-width: 1200px) {
    .nav-bottom .nav-item > a {
        padding: 12px 45px;
    }
}

@media (min-width: 1400px) {
    .nav-bottom .nav-item > a {
        padding: 12px 57.25px;
    }
}

.nav-bottom .nav-item > a:hover,
.nav-bottom .nav-item > a:active,
.nav-bottom .nav-item > a:focus {
    outline: 0;
    color: #ff6464; /*主選單over變色*/
}

.nav-bottom .submenu {
    display: none;
}

    .nav-bottom .submenu.opened {
        display: block;
    }

@media (min-width: 768px) {
    .nav-bottom .submenu {
        position: absolute;
        left: 0;
        /*top: 235px;*/
        top: 220px;
        width: 100%;
        z-index: 99;
        list-style-type: none;
        min-height: 300px;
    }

    .nav-bottom.fixed .submenu {
        top: 46px;
    }

    .nav-bottom .submenu-container.container {
        position: relative;
        left: -20px;
        list-style-type: none;
    }
    /*下拉第二層圖文區*/
    .nav-bottom .sub-menu-border {
        display: table;
        width: 100%;
        border: 1px solid #ddd;
        height: 250px;
        background-color: #FFF;
        -webkit-box-shadow: 1px 2px 2px rgba(0, 0, 0, 0.1);
        box-shadow: 1px 2px 2px rgba(0, 0, 0, 0.1);
    }

    .nav-bottom .sub-cats-list {
        display: table-cell;
        width: 152px;
        min-width: 152px;
        height: 100%;
        max-height: 252px;
        background-color: #fafafa;
        border-right: 1px solid #ddd;
        text-align: right;
        padding: 2em 0;
        vertical-align: top;
    }

        .nav-bottom .sub-cats-list > a {
            position: relative;
            display: block;
            width: 100%;
            font-size: 14px;
            font-weight: 600;
            color: #333;
            vertical-align: middle;
            padding: 10px 22px;
            border-top: 1px solid transparent;
            border-bottom: 1px solid transparent;
            cursor: pointer;
        }

            .nav-bottom .sub-cats-list > a:before {
                display: none;
                content: '';
                width: 1px;
                height: 100%;
                position: absolute;
                top: 0;
                right: -1px;
                background-color: #fff;
                z-index: 99;
            }

            .nav-bottom .sub-cats-list > a.active,
            .nav-bottom .sub-cats-list > a.current-cat {
                color: #fa5a5a;
                background-color: #fff;
                border-color: #ddd;
            }

                .nav-bottom .sub-cats-list > a.active:before,
                .nav-bottom .sub-cats-list > a.current-cat:before {
                    display: block;
                }
            /* all cats hover style */
            .nav-bottom .sub-cats-list > a.active-red {
                color: #fa5a5a;
            }

    .nav-bottom .sub-cats-content {
        display: none;
    }

        .nav-bottom .sub-cats-content.active {
            display: block;
        }

        .nav-bottom .sub-cats-content.fade {
            opacity: 0;
        }

            .nav-bottom .sub-cats-content.fade.in {
                opacity: 1;
            }

    .nav-bottom .sub-cats-content-row {
        position: relative;
        display: table-cell;
        width: 100%;
        padding: 2em 0;
        padding-left: 2em;
        height: 240px;
    }

    .nav-bottom .submenu .sub-cats-content.in {
        display: block;
    }

    .nav-bottom .sub-cats-slider-mask {
        width: 470px;
        height: 300px;
        position: absolute;
        left: 20px;
        overflow: hidden;
    }

    .nav-bottom .sub-cats-slider.row {
        margin: 0;
        position: absolute;
        left: 0;
    }

    .nav-bottom .sub-cats-content-span {
        margin-left: 22px;
        position: relative;
        float: left;
        width: 90px;
        min-height: 170px;
    }

    .nav-bottom .sub-cats-content-image > a > img,
    .nav-bottom a > .sub-cats-content-image > img {
        max-width: 100%;
    }

    .nav-bottom h3.entry-title {
        font-weight: 500;
        font-size: 14px;
        line-height: 1.35;
        margin: 7px 0 0;
        text-align: left;
    }

    .nav-bottom .sub-menu-paginator {
        margin-bottom: 45px;
        padding-left: 50px;
        position: relative;
        clear: both;
    }

        .nav-bottom .sub-menu-paginator > button {
            padding: 0;
            float: left;
            display: inline-block;
            margin-right: 7px;
            width: 25px;
            height: 25px;
            line-height: 24px;
            border: 1px solid #dcdcdc;
            text-align: center;
            vertical-align: middle;
            font-size: 7px;
            color: #b7b7b7;
            -moz-appearance: none;
            -webkit-appearance: none;
            background-color: transparent;
        }

            .nav-bottom .sub-menu-paginator > button:hover,
            .nav-bottom .sub-menu-paginator > button:focus {
                color: #fff;
                border-color: #020000;
                background-color: #020000;
                outline: 0;
            }

    .nav-bottom .page-disabled {
        opacity: 0.5;
    }
}

@media (min-width: 992px) {
    .nav-bottom .submenu {
        top: 239px;
        min-height: 300px;
    }

    .nav-bottom.fixed .submenu {
        top: 48px;
    }

    .nav-bottom .submenu .submenu-container.container {
        left: -20px;
    }

    .nav-bottom .submenu .sub-cats-list {
        width: 180px;
        min-width: 180px;
    }

        .nav-bottom .submenu .sub-cats-list > a {
            font-size: 14px;
            padding: 10px 30px 10px 0;
        }
    /*下拉第二層圖文區*/
    .nav-bottom .submenu .sub-cats-content.in {
        display: block;
    }

    .nav-bottom .submenu .sub-cats-content-row {
        padding: 2em 0;
        padding-left: 2em;
        height: 220px;
    }

    .nav-bottom .submenu .sub-cats-slider-mask {
        width: 610px;
        height: 300px;
        left: 30px;
    }

    .nav-bottom .submenu .sub-cats-content-span {
        margin-left: 22px;
        width: 130px;
        min-height: 170px;
    }
}

@media (min-width: 1200px) {
    .nav-bottom .submenu {
        /*top: 239px;*/
        top: 220px;
        min-height: 300px;
    }

        .nav-bottom .submenu .submenu-container.container {
            left: -20px;
        }

        .nav-bottom .submenu .sub-cats-list {
            width: 218px;
            min-width: 218px;
        }
            /*分類項目左側*/
            .nav-bottom .submenu .sub-cats-list > a {
                font-size: 15px;
                padding: 10px 50px 10px 0;
            }
        /*下拉第二層圖文區*/
        .nav-bottom .submenu .sub-cats-content-row {
            padding: 2em 0;
            padding-left: 2em;
            height: 240px;
        }

        .nav-bottom .submenu .sub-cats-slider-mask {
            width: 750px;
            height: 300px;
            left: 30px;
        }

        .nav-bottom .submenu .sub-cats-content-span {
            margin-left: 22px;
            width: 165px;
            min-height: 170px;
        }
}

@media (min-width: 1400px) {
    .nav-bottom .submenu {
        /*top: 239px;*/
        top: 220px;
        min-height: 300px;
    }

        .nav-bottom .submenu .submenu-container.container {
            left: -20px;
        }

        .nav-bottom .submenu .sub-cats-list {
            width: 218px;
            min-width: 218px;
        }
        /*.nav-bottom .submenu .sub-cats-list > a {
    font-size: 13px;
    padding: 5px 22px;
  }*/
        /*下拉第二層圖文區*/
        .nav-bottom .submenu .sub-cats-content-row {
            padding: 2em 0;
            padding-left: 2em;
            height: 240px;
        }

        .nav-bottom .submenu .sub-cats-slider-mask {
            width: 894px;
            height: 300px;
            left: 30px;
        }

        .nav-bottom .submenu .sub-cats-content-span {
            margin-left: 22px;
            width: 196px;
            min-height: 170px;
        }
}

@media (min-width: 767px) {
    .nav-bottom .dropdown.opened {
        display: block;
    }

    .nav-bottom .dropdown {
        display: none;
        position: absolute;
        left: -15px;
        top: 46px;
        list-style-type: none;
        background-color: #fff;
        border: 1px solid #ddd;
        width: 155px;
        padding: 1em 2em;
        text-align: left;
        -webkit-box-shadow: 1px 2px 2px rgba(0, 0, 0, 0.1);
        -moz-box-shadow: 1px 2px 2px rgba(0, 0, 0, 0.1);
        -ms-box-shadow: 1px 2px 2px rgba(0, 0, 0, 0.1);
        box-shadow: 1px 2px 2px rgba(0, 0, 0, 0.1);
        z-index: 999;
    }

        .nav-bottom .dropdown > li > a {
            display: block;
            font-size: 14px;
            line-height: 28px;
            margin-bottom: 0.5em;
        }
}

@media (min-width: 992px) {
    .nav-bottom .dropdown {
        width: 156px;
        top: 48px;
        left: 0;
    }

        .nav-bottom .dropdown > li > a {
            font-size: 15px;
            margin-bottom: 0.5em;
        }
    /*下拉第二層最後一個
   .nav-bottom .dropdown:last-child {
        left: initial;
        right: -28%;
    }*/
}

@media (min-width: 1200px) {
    .nav-bottom .dropdown {
        width: 160px;
        top: 48px;
        left: 28.5px;
    }
        /*下拉第二層最後一個
    .nav-bottom .dropdown:last-child {
        left: initial;
        right: -27.5%;
    }*/
        .nav-bottom .dropdown > li > a {
            font-size: 15px;
            margin-bottom: 0.5em;
        }
}

@media (min-width: 1400px) {
    .nav-bottom .dropdown {
        left: 46px;
    }
    /*下拉第二層最後一個
    .nav-bottom .dropdown:last-child {
        left: initial;
        right: -28%;
    }*/
}



/* 手機版 nav-fixed */

/* main wrapper should add margin-top: 75px */
#nav-xs > .container {
    width: 100%;
}

#nav-xs.fixed {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #fff;
    z-index: 999;
    border-bottom: 1px solid #ddd;
}



/* 手機版
#nav-xs h1 {
    display: inline-block;
    margin-bottom: 0;
    font-size: 0;
    line-height: 0;
    position: relative;
    top: -8px;
    left: 13px;
}

#nav-xs h1>a.logo {
    display: inline-block;
    background-repeat: no-repeat;
    background-position: 50% 50%;
    background-size: contain;
    width: 140px;
    height: 54px;
    font-size: 0;
    text-indent: -9999;
    background-image: url("../images/cdd-logo.svg");
}

#nav-xs h1>a.logo:focus {
    outline: 0;
}
*/

#nav-xs .nav-xs-toggle {
    padding: 0;
    display: inline-block;
    border: 0;
    position: relative;
    top: 30px;
    right: 13px;
    background-color: transparent;
    -moz-appearance: none;
    -webkit-appearance: none;
}

    #nav-xs .nav-xs-toggle:focus {
        outline: 0;
    }

    #nav-xs .nav-xs-toggle .icon-bar {
        display: block;
        background-color: #000;
        width: 26px;
        height: 2px;
        margin-bottom: 6px;
        position: relative;
        -webkit-transition: 300ms all ease-in-out;
        -moz-transition: 300ms all ease-in-out;
        -o-transition: 300ms all ease-in-out;
        transition: 300ms all ease-in-out;
    }

    #nav-xs .nav-xs-toggle.opened {
        z-index: 999;
    }

        #nav-xs .nav-xs-toggle.opened span:nth-child(2) {
            display: none;
        }

        #nav-xs .nav-xs-toggle.opened span:nth-child(1) {
            top: 10px;
            -webkit-transform: rotate(45deg);
            -moz-transform: rotate(45deg);
            -ms-transform: rotate(45deg);
            transform: rotate(45deg);
        }

        #nav-xs .nav-xs-toggle.opened span:nth-child(3) {
            top: 2px;
            -webkit-transform: rotate(-45deg);
            -moz-transform: rotate(-45deg);
            -ms-transform: rotate(-45deg);
            transform: rotate(-45deg);
        }

#nav-xs ul.main-menu {
    margin-top: 1em;
}

    #nav-xs ul.main-menu > li > a {
        height: 40px;
        margin: 0;
        padding: 0;
        padding-left: 12px;
    }

#nav-xs ul.main-menu,
#nav-xs ul.submenu-dropdown {
    list-style-type: none;
    padding-left: 0;
}

    #nav-xs ul.main-menu > li > a > .glyphicon {
        font-size: 12px;
        margin-left: 8px;
    }

        #nav-xs ul.main-menu > li > a > .glyphicon.opened {
            -webkit-transform: rotate(180deg);
            -moz-transform: rotate(180deg);
            -ms-transform: rotate(180deg);
            transform: rotate(180deg);
        }

#nav-xs ul.submenu-dropdown {
    display: none;
    margin-bottom: 1em;
    padding-left: 40px;
}

    #nav-xs ul.submenu-dropdown.opened {
        display: block;
    }

#nav-xs .tools {
    margin-bottom: 2em;
}

    #nav-xs .tools > div {
        padding: 0;
        padding-left: 12px;
        font-size: 15px;
    }

    #nav-xs .tools .subscribe-newsLetter {
        margin-bottom: 0.2em;
    }

#nav-xs .search {
    margin-bottom: 1.2em;
}

    #nav-xs .search .nav-search-form {
        width: 100%;
        display: flex;
        border-bottom: 1px solid #ddd;
    }

        #nav-xs .search .nav-search-form .glyphicon-search {
            font-size: 22px;
        }

        #nav-xs .search .nav-search-form > .search-input {
            padding: 0;
            border: 0;
            height: 35px;
            line-height: 35px;
            width: 80%
        }

            #nav-xs .search .nav-search-form > .search-input:focus {
                outline: 0;
            }

        #nav-xs .search .nav-search-form .glyphicon-search {
            top: 2px;
            right: 0;
        }

        #nav-xs .search .nav-search-form > .search-submit {
            border: 0;
            background-color: transparent;
            width: 20%;
        }

            #nav-xs .search .nav-search-form > .search-submit:focus {
                outline: 0;
            }

@media (min-width: 1px) and (max-width: 767px) {
    .nav-collapse-bk {
        display: none;
        padding-top: 25px;
        padding-bottom: 4em;
        padding-left: 15px;
        padding-right: 15px;
        width: 100%;
        height: auto;
        position: absolute;
        left: 0;
        top: 75px;
        z-index: 999;
        background-color: #fff;
    }

        .nav-collapse-bk a {
            display: block;
            margin-bottom: 0.5em;
            padding-bottom: 0.5em;
        }

            .nav-collapse-bk a:last-child {
                margin-bottom: 0;
                border-bottom: 0;
            }
}

@media (min-width: 992px) {
    .nav-collapse-bk {
        position: initial;
        width: initial;
        height: auto;
        display: inline-block;
        background-color: transparent;
    }
}

/* demo style */

.main {
    min-height: 800px;
    padding: 50px 0;
}

.nav-bottom.fixed + .main {
    margin-top: 49px;
}
