/**
 * 注意：此檔案包含自定義樣式，請勿在系統更新時覆蓋
 * 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 30px 10px 30px !important;
        margin-bottom: 2px;
        &:before {
            background-color: #ccc;
        }
    }
}

/* 全局|header|header-template20 */
.header-template20 {
    .topblock {
        .left-info {
            li {
                text-shadow: none;
            }
        }
    }
}

@media (min-width: 992px) {
    .header-template20 {
        .header__inner {
            border-color: #d5b796 !important;
            .nav__name {
                &.active {
                    &:before {
                        background: #cd0300;
                    }
                    &:hover {
                        &:after {
                            background-color: #cd0300;
                        }
                    }
                }
                &:hover {
                    opacity: 1;
                    &:before, &:after {
                        background-color: #999999;
                    }
                }
            }
            .nav__item {
                .nav__item-div {
                    .nav__name.active + .nav__btn::after {
                        color: #cd0300;
                    }
                }
                .nav__layer {
                    min-width: 200px;
                    width: max-content;
                    .nav__item {
                        .nav__name {
                            &:before {
                                display: none;
                            }
                            &:hover {
                                padding-left: 25px;
                                font-weight: 400;
                                background-color: #cd0300;
                                color: #fff;
                            }
                        }
                        .nav__name:hover + .nav__btn::after {
                            color: #FFFFFF;
                        }
                    }
                }
            }
            .nav-item-news {
                > .nav__btn {
                    display: none;
                }
            }
        }
        &.header--unfixed {
            .nav__layer {
                .nav__btn::after {
                    color: #000000;
                }
            }
        }
    }
}
@media (max-width: 991px) {
    .header-template20 {
        .header__inner {
            .nav__box {
                background: #CD0300;
            }
        }
    }
}



/* 全局|header|箭頭樣式 */
.nav__btn::after{
    font-family: "icomoon";
    content: "\f105";
    font-size: 20px;
    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;
        color: #FFFFFF !important;
        transform: rotate(0deg);
    }
}
.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: #a30606;
        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: #d0d0d0;
        }
    }
}
/* product detail|download|按鈕 */
@media (max-width: 768px) {
    .download__item {
        .file-name {
            width: 75%;
        }
        .btnset {
            width: 25%;
        }
    }
}
@media (max-width: 480px) {
    .download__item {
        .file-name, .btnset {
            width: 100%;
        }
    }
}


/* 首頁|列表標題|字體粗度 */
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(248, 13, 10, 0.3);
        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;
}


/* others */
body {
    background-image: url("../images/main-bg.webp");
    background-attachment: fixed;
}
.ind-banner {
    .ind-banner__text {
        display: none;
    }
}
.index-h1__setting {
    font-weight: 200;
}
.index-editor-template40 {
    .img-left {
        position: relative;
        img {
            height: 100%;
            object-fit: cover;
            position: absolute;
            left: 0;
            top: 0;
        }
    }
}
.main-h1-template4 {
    background: linear-gradient(to right, rgb(255 255 255 / 51%) 0%, rgba(0, 0, 0, 0) 95%, rgba(0, 0, 0, 0) 100%) !important;
}
.accordion-menu, .news--list .news__item {
    background-color: #FFFFFF;
}
.inner > .title span::before {
    display: none;
}
.product {
    .product__item {
        .img {
            aspect-ratio: 4 / 3;
            background-color: #FFFFFF;
            img {
                height: 100%;
                position: absolute;
                top: 0;
                left: 0;
                object-fit: contain;
            }
        }
    }
}
.swiperalbum {
    .swiper-wrapper {
        .swiper-slide {
            aspect-ratio: 4 / 3;
            overflow: hidden;
            img {
                height: 100%;
                position: absolute;
                top: 0;
                left: 0;
                object-fit: contain !important;
            }
        }
    }
}

