/**
 * 注意：此檔案包含自定義樣式，請勿在系統更新時覆蓋
 * Note: This file contains custom styles, do not overwrite during system updates
 * 最後更新 / Last updated: 2025-04-16
 */
/* 全局|gdpr|位置變更 */
@media screen and (min-width:991px) {
    .advbox{
        max-width: 80%;
        left: 50%;
        bottom: 25px;
        transform: translateX(-50%);
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .advbox .btnset{
        padding: 9px 40px 10px 30px !important;
        margin-bottom: 2px;
        &:before {
            background-color: #ccc;
        }
    }
}

/* 全局|header|箭頭樣式 */
.nav__btn::after{
    font-family: "icomoon";
    content: "\f105";
    font-size: 20px;
    color: #fff;
    transform: rotate(90deg);
}

.nav__layer .nav__btn::after{
    font-family: "icomoon";
    content: "\f105";
    font-size: 20px;
    transform: rotate(0deg);
}

@media screen and (max-width:991px) {
    .nav__btn::after{
        font-family: "icomoon";
        content: "\f105";
        font-size: 20px;
        transform: rotate(0deg);
    }
    .header--unfixed {
        .nav__layer {
            .nav__btn::after {
                color: #fff !important;
            }
        }
    }
}
.nav__btn-icon{
    display: none;
}

/* 全局|按鈕|按鈕樣式 */
.btnset {
    padding: 10px 30px 10px 20px !important;
    border: none;
    border-radius: 6px;
    clip-path: polygon(0 0, 100% 0%, 90% 100%, 0% 100%);
    /*background-color: #999999;*/
    position: relative;
    &:before {
        position: absolute;
        right: 0;
        top: 0;
        width: 20%;
        height: 100%;
        background-color: #fff100;
        clip-path: polygon(55% 0, 100% 0%, 55% 100%, 0% 100%);
        content: "";
        z-index: 1;
        transition: all 500ms ease-in-out;
    }
    &:hover {
        &:before {
            right: -10px;
            background-color: #063390;
        }
    }
}
@media (max-width: 991px) {
    .ind-banner__text {
        .btnset {
            &:before {
                background-color: #fff;
            }
        }
    }
}

/* 首頁|列表標題|字體粗度 */
section .title.title--lg{
    font-weight: bold;
}

/* 首頁|banner|文字區塊 */
.ind-banner .ind-banner__text {
    max-width: 600px;
    overflow: hidden;
    .title, p {
        text-align: left;
    }
    p {
        margin: 20px 0 10px;
    }
    &:after {
        content: "";
        position: absolute;
        top: 0;
        right: 0;
        width: 40%;
        height: 100%;
        clip-path: polygon(50% 0, 95% 0, 70% 100%, 20% 100%);
        background-color: rgba(255, 241, 0, 0.4) !important;
        z-index: -1;
        transition: all 500ms ease-in-out;
    }
    .btnbox {
        display: flex !important;
    }
    &:hover {
        &:after {
            transform: translateX(50%);
        }
    }
}

@media (max-width: 991px) {
    .ind-banner .ind-banner__text {
        max-width: none;
        &:after {
            display: none;
        }
    }
}

/* 首頁|banner|左右鍵 */
.ind-banner .swiper-button-next::after, .ind-banner .swiper-button-prev::after {
    content: "\e912";
    transform: rotate(90deg);
}
.ind-banner .swiper-button-next::after {
    transform: rotate(-90deg);
}

/* 首頁|banner|bullet */
.ind-banner .swiper-pagination .swiper-pagination-bullet{
    width: 30px;
    height: 6px;
    border-radius: 10px;
    transition: all 500ms ease-in-out;
}
.ind-banner .swiper-pagination .swiper-pagination-bullet-active {
    width: 12px;
    height: 12px;
    border-radius: 20px;
}


/* 首頁|列表|圖片導圓角 */
.product__item, .news__item {
    .img {
        border-radius: 8px;
        overflow: hidden;
    }
}
.index-list-effect-3 .news__item .info {
    border-radius: 8px;
}

/* 全局|header|nav| */
.nav__layer {
    width: max-content;
    min-width: 200px;
    .nav__item {
        .nav__name {
            &:hover {
                padding-left: 25px;
                font-weight: normal;
                color: #fff !important;
            }
        }
    }
}
@media (max-width: 991px) {
    .nav__layer {
        width: 100%;
    }
}

/* 全局|header|header-template20 */
.header-template20 {
    &.header--unfixed {
        background: linear-gradient(to bottom,  rgba(6,51,144) 0%,rgba(255,255,255,0) 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
        .language, .cart-btn, .header__search-icon i {
            color: #fff;
        }
        .nav__layer {
            .nav__btn {
                &:after {
                    color: #fff !important;
                }
            }
        }
    }
    .header__inner {
        .nav__name {
            &.active {
                color: #fff100;
                &:before {
                    background: #fff100;
                }
                &:after {
                    background-color: #fff100;
                }
                &:hover {
                    color: #fff100;
                    opacity: 1;
                    &:after {
                        background-color: #fff100;
                    }
                }
            }
            &:hover {
                color: #fff;
                opacity: 1;
                &:after {
                    background-color: #FFFFFF;
                }
            }
        }
        .nav__layer {
            padding: 10px 0;
            .nav__name {
                &:before {
                    display: none;
                }
            }
        }
    }
}
@media (max-width: 991px) {
    .header-template20 {
        &.header--unfixed {
            .hamburger span {
                background-color: #fff;
                &.a-cover {
                    background-color: transparent;
                }
            }
        }
        .header__inner {
            .nav__box {
                background: #063390;
                .nav__layer {
                    padding: 0;
                }
            }
        }
    }
}

/* index|list|title */
.ind-section h2 span {
    &:before, &:after {
        position: absolute;
        top: 50%;
        width: 160px;
        height: 1px;
        content: "";
        border-top: 1px dashed #063390;
    }
    &:before {
        left: -200px;
    }
    &:after {
        right: -200px;
    }
}
@media (max-width: 991px) {
    .ind-section h2 span {
        &:before {
            left: -180px;
        }
        &:after {
            right: -180px;
        }
    }
}
@media (max-width: 480px) {
    .ind-section h2 span {
        &:before, &:after {
            width: 80px;
        }
        &:before {
            left: -100px;
        }
        &:after {
            right: -100px;
        }
    }
}

/* other */
body {
    background-image: url(../images/main-bg.webp);
    background-repeat: no-repeat;
    background-attachment: fixed;
}
.cart-drawer a:hover {
    opacity: 1;
}
.right-icon a:hover {
    background-color: #7f7f7f !important;
}
.language .option li {
    color: #fff100;
}
.gotop {
    opacity: 1;
}
.ind-above {
    background-position: center top;
    background-attachment: fixed;
}
@media (max-width: 600px) {
    .ind-above {
        background-attachment: scroll;
    }
}
.accordion-menu {
    background-color: #ffffff;
}
.inner > .title {
    span {
        padding-left: 60px;
        background-image: url(../images/title-icon.png);
        background-size: 35px auto;
        background-repeat: no-repeat;
        background-position: 12px 15px;
        &::before {
            display: none;
        }
    }
}
@media only screen and (max-width: 768px) {
    .download__item .file-name {
        width: 75%;
    }
    .download__item .btnset {
        width: 25%;
    }
}
@media only screen and (max-width: 480px) {
    .download__item .file-name {
        width: 100%;
    }
    .download__item .btnset {
        width: 50%;
        margin: auto;
    }
}