@charset "utf-8";
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@100;200;300;400;500;600;700;800;900&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800&family=Quicksand:wght@300;400;500;600;700&family=Barlow:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
@import url('bootstrap-icons.css');

/* 頁面淡入 */
@keyframes fadeOut {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

body.index {
    animation-duration: 3s;
    animation-name: fadeOut;
    position: relative;
}

body {
    padding-top: 50px;
    animation-duration: 2s;
    animation-name: fadeOut;
    margin: 0;
    font-family: 'Barlow', 'Noto Sans TC', bootstrap-icons, Microsoft JhengHei;
    font-weight: 400;
    position: relative;
    font-size: 13px;
}

.index-body {
    max-width: 1400px;
    margin: 20px auto;
}

img {
    max-width: 100%;
    width: auto;
}

.text-right {
    text-align: right;
}

a {
    text-decoration: none;
    color: #333333;
    transition: all 0.3s ease;
}

header {
    padding: 0 10px;
}

.logo a {
    width: 196px;
    display: block;
    filter: brightness(5);
}


.main-box {
    padding: 0;
    max-width: 980px;
    border-radius: 8px;
    background-color: #eaeaea;
    /*overflow: hidden;*/
    position: relative;
    z-index: 5;
}

/* header */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 900;
    height: 50px;
    transition: all 0.3s ease;
    background-color: #604c3f;
    color: #ffffff;
}

header.down .logo a {
    width: 160px;
}

.wallpeper {
    min-height: 350px;
    padding: 30px 10px;
    position: relative;
}

.wallpeper:before {
    content: '';
    background-image: url('../images/bg.jpg');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    display: block;
    width: 100%;
    height: 350px;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}


/*header nav*/
header .menu-icon.navbar-toggler {
    border: 0;
    background-image: url(../images/menu.svg);
    background-repeat: no-repeat;
    background-position: center;
}

header .nav-item {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    font-family: Montserrat, 'Noto Sans TC';
    position: relative;
}

header .nav-item:before {
    content: '';
    display: block;
    position: absolute;
    bottom: 0px;
    left: 0;
    height: 2px;
    width: 0;
    transition: all 0.3s ease;
    background-color: #CCC3B4;
}

header.down .nav-item:before {
    bottom: 0px;
}

header .nav-item:hover:before,
header .nav-item.active:before {
    width: 80%;
    left: 10%;
}

header .nav-item > a {
    padding: 5px 25px;
    text-align: center;
    text-decoration: none;
    display: block;
    color: #ffffff;
    font-size: 16px;
    font-weight: 400;
    text-align: center;
}

header .nav-item > a:hover,
header .nav-item > a:focus {
    color: #CCC3B4;
}

header .nav-item > a span {
    display: block;
    font-size: 15px;
}

header .navbar-toggler-icon {
    color: #000;
}

header .navbar-toggler-icon:before {
    display: inline-block;
    content: '\F479';
}

/* banner */
.banner {
    max-width: 980px;
    border-radius: 8px;
    margin: 0 auto 30px auto;
    border-radius: 8px;
    box-shadow: 5px 0 10px rgba(0, 0, 0, .1);
    overflow: hidden;
}


.banner-box.mb {
    display: none;
}

header .nav-item .dropdown-toggle::after {
    font-size: 20px;
    position: absolute;
    bottom: 0;
    left: calc(50% - 10px);
}

header .nav-item .dropdown-menu {
    width: 180px;
    top: 60px !important;
    left: calc(50% - 90px) !important;
    inset: auto;
}

header .navbar-toggler {
    padding: 0 5px;
}

.search-banner {
    padding: 40px;
    background-image: url('../images/search-box-bg.jpg');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.search-banner .search-title {
    color: #ffffff;
    font-size: 42px;
    text-align: center;
    padding: 20px 20px 40px 20px;
}

.search-banner .search-title span {
    font-size: 0.6em;
    display: block;
}


.search-categories-box {
    position: relative;
    padding: 0 35px;
}

.search-categories-box .swiper-button-next {
    right: -10px !important;
}

.search-categories-box .swiper-button-prev {
    left: -10px !important;
}

.search-categories {
    padding: 10px 0 !important;
    margin: 15px 0;
}

.search-categories .swiper-slide button {
    border-radius: 4px;
    background-color: #8b3737;
    color: #fff;
    width: 100%;
}

/* .swiper 套件調整 */
.swiper {
    width: 100%;
}

.swiper-wrapper {
    height: auto !important;
    margin: 0;
    padding: 0;
    width: calc(100% - 100px) !important;
}

.swiper-slide {
    text-align: center;
    font-size: 18px;
}

.swiper-slide img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}

.swiper-button-prev.swiper-button-disabled,
.swiper-button-next.swiper-button-disabled {
    pointer-events: all !important;
}

.swiper-pagination-bullet {
    width: 20px !important;
    height: 5px !important;
    border-radius: 99em !important;
    background-color: #272727 !important;
    box-shadow: 0 0 5px rgba(0, 0, 0, .3);
    transition: all 0.3s ease;
}

.swiper-button-prev,
.swiper-button-next {
    width: 38px !important;
    height: 38px !important;
    background-size: cover;
    color: #ffffff !important;
    text-shadow: 0 0 10px rgba(0, 0, 0, .1);
    font-family: bootstrap-icons;
    top: 55% !important;
}

.swiper-button-next:after {
    content: '\F285' !important;
    font-family: bootstrap-icons !important;
}

.swiper-button-prev:after {
    content: '\F284' !important;
    font-family: bootstrap-icons !important;
}


/* links-list */
.links-list {
    padding: 20px;
}

.links-list a {
    display: block;
    padding: 5px 0;
}

.links-list a img {
    width: 100%;
    height: auto;
}


/* results-cont */
.results-cont {
    background-color: #ffffff;
    border-radius: 4px;
    margin: 20px;
    padding: 20px 15px;
    font-size: 16px;
    line-height: 1.6em;
    display: flex;
    flex-wrap: wrap;
}

.results-cont .book-info {
    flex: 1;
}

.results-cont .book-info label {
    font-weight: 600;
    margin-right: 5px;
    color: #7e4b4b;
}

.results-cont .book-cover {
    width: auto;
    max-width: 160px;
    flex: none;
    border-right: 1px #e0e0e0 solid;
    padding: 0 20px;
    margin-right: 30px;
}

/* 手機板選單 */
.m-burger {
    display: block;
    position: fixed;
    right: 30px;
    top: 10px;
    width: 40px;
    height: 30px;
    z-index: 995;
    cursor: pointer;
    transition: all 0.3s ease;
    display: none;
}

.m-burger:before {
    content: '';
    display: block;
    height: 3px;
    background-color: #CCC3B4;
    transition: all 0.3s ease;
}

.m-burger:after {
    content: '';
    display: block;
    height: 3px;
    background-color: #CCC3B4;
    transition: all 0.3s ease;
}

.m-burger span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #CCC3B4;
    margin: 9px 0;
    transition: all 0.3s ease;
}

.m-burger.active span {
    width: 0;
    margin: 0;
    background-color: #CCC3B4;
}

.m-burger.active:before {
    transform: rotate(45deg);
    width: 110%;
    margin-top: 20px;
    background-color: #CCC3B4;
    transition: all 0.3s ease;
}

.m-burger.active:after {
    transform: rotate(-45deg);
    width: 110%;
    margin-top: -6px;
    background-color: #CCC3B4;
    transition: all 0.3s ease;
}


/* 其他選單 */
.other-menu {
    background-color: #fff;
    position: fixed;
    top: 0px;
    right: -360px;
    height: 100%;
    max-width: 360px;
    bottom: 0;
    z-index: 955;
    transition: all 0.5s ease;
    padding: 60px 20px 20px 20px;
    font-size: 13px;
    box-shadow: 0 0 20px rgba(0, 0, 0, .1);
    display: none;
}

.other-menu div.menu-copyright {
    color: #666666;
    font-size: 12px;
    padding: 10px 0 0 0;
    border-top: 1px #d4d4d4 solid;
    margin-top: 20px;
    display: block;
}

.other-menu .others a {
    display: block;
    padding: 5px 0;
    color: #3d3d3d;
}

.other-menu .others a:before {
    content: '';
    display: block;
    margin: 15px auto 0 auto;
    width: 50px;
    height: 50px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    opacity: 0.3;
    display: none;
}

.other-menu a:hover {
    color: #88874e;
}

.other-menu a:hover:before {
    filter: brightness(3);
    opacity: 1;
}

.other-menu.active {
    right: 0;
}

.other-menu .quick-search-box {
    display: flex;
    width: 100%;
    margin: 10px 20px 20px 0;
}


.quick-search-box .search-text {
    flex: 1;
    border: 0;
    line-height: 20px;
    margin: 0 5px 0 0;
    padding: 0;
    width: calc(100% - 50px);
    background-color: #ffffff;
    padding: 5px 10px;
}

.quick-search-box button.search-btn {
    flex: none;
    width: 30px;
    height: 30px;
    background-color: transparent;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    background-image: url(../images/icon-search.svg);
}


.m-menu {
    height: calc(100% - 120px);
    overflow-y: auto;
    margin: 0 -10px -10px -10px;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-content: flex-start;
}

.m-menu > a {
    width: 100%;
    margin: 10px;
    font-size: 16px;
    color: #333;
    border-radius: 4px;
    text-align: center;
    padding: 10px 5px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-content: center;
    transition: all 0.3s ease;
    border: 1px #ddd solid;
}

.m-menu > a:hover {
    background-color: #eaeaea;
}


/* 搜尋視窗 */
.search-box {
    background-color: #f5f5f5;
    position: fixed;
    top: -100px;
    left: 0;
    width: 100%;
    padding: 10px 20px;
    height: 90px;
    z-index: 999;
    transition: all 0.3s ease;
}

.search-box.active {
    top: 0;
}

.search-box > div {
    position: relative;
    padding-top: 20px;
}

.search-box .btn-close {
    width: 24px;
    height: 24px;
    cursor: pointer;
    background-image: url(../images/close-btn.png);
    background-size: cover;
    position: absolute;
    right: 0px;
    top: 25px;
    transition: all 0.3s ease;
}

.search-box .btn-close:hover {
    transform: rotate(90deg);
}

.search-box .quick-search-box {
    width: calc(100% - 25px);
}

.quick-search-box {
    display: flex;
}

.quick-search-box .search-text {
    flex: 1;
    border: 0;
    line-height: 20px;
    margin: 0 5px 0 0;
    padding: 0;
    background-color: #ffffff;
    padding: 5px 10px;
    border-bottom: 1px #eaeaea solid;
}

.quick-search-box button.search-btn {
    padding: 8px 5px;
    border: 0;
    flex: none;
    width: 30px;
    height: 30px;
    background-color: transparent;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    background-image: url(../images/icon-search.svg);
}


/* button */
.btn-box {
    padding: 20px 0px;
}

button {
    padding: 8px 5px;
    font-size: 14px;
    color: #3f3f3f;
    border: 0;
    border-radius: 4px;
    text-align: center;
    cursor: pointer;
    background-color: #f3f3f3;
    transition: all 0.3s ease;
}

button:hover {
    background-color: #cf5151;
    transition: all 0.3s ease;
    color: #ffffff;
}

button:hover .icon {
    filter: brightness(5);
    transition: all 0.3s ease;
}

.btn.btn-search-catalogry {
    border: 1px solid #ced4da;
    background-color: #ffffff;
    color: #000;
    padding: 5px 15px;
}

.btn.btn-search-catalogry:hover {
    border: 1px solid #ced4da;
    background-color: #ececec;
}


/*.btn { padding: 10px 10px; text-align: center; }*/
/*.btn a { background: #333333; font-size: 16px; color: #ffffff; display: inline-block; padding: 5px 15px; border-radius: 3px; }*/
/*.btn a:hover { background: #a89450; }*/


/* 選項 */
.options {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin: 0 -2px 5px -4px;
}

.delivery-member.options {
    margin: 0 0 5px 0;
}

.options .list {
    flex: 1;
    margin: 4px;
    border: 1px #979797 solid;
    color: #7e7e7e;
    text-align: center;
    padding: 5px;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s ease;
    box-sizing: border-box;
    box-shadow: 0 0 5px #e7e7e7;
    background-color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.options .list:hover {
    border: 1px #292929 solid;
    color: #000;
    background-color: #fafafa;
}

.options .list.active {
    border: 1px #363636 solid;
    color: #ffffff;
    background-color: #383838;
    cursor: default;
}

.options .title {
    width: 100%;
    font-size: 18px;
    color: #333333;
    margin: 0 0 5px 4px;
}

.options .list.list-3 {
    width: calc(33.33% - 8px);
}


/* footer */
footer {
    background-color: #604c3f;
    color: #CCC3B4;
    font-weight: 400;
    font-size: 15px;
    padding: 15px 0;
}

footer .container {
    display: flex;
    flex-wrap: wrap;
}

.footer-info {
    flex: 1;
}

.copyright {
    flex: 1;
    text-align: right;
}


/* scrollbar */
::-webkit-scrollbar-track {
    border-radius: 10px;
    background-color: transparent;
    margin: 0 5px;
    background-color: rgba(255 255 255 / 30%);
}

::-webkit-scrollbar {
    background-color: transparent;
    height: 6px;
    width: 6px;
    margin: 5px;
}

::-webkit-scrollbar-thumb {
    border-radius: 10px;
    -webkit-shadow: inset 0 0 6px rgba(0, 0, 0, .3);
    background-color: #acadae;
}
