﻿html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    scroll-padding-top: 180px;
}



body {
    padding-right: 0px !important;
    font-size: 16px;
    font-family: 'Poppins', "微軟正黑體", "Microsoft JhengHei", sans-serif;
    letter-spacing: 1.5px;
    position: relative;
    min-height: 100vh;
}




/* ---- color root ---- */

:root {
    --main-color: #5A9C7B;
    --vice-color: #dddddd;
    --lightgreen-color: #ABCCBB;
}

/* ---- color root end ---- */

/* ---- basic setting ---- */

.section-page {
    padding: 80px 0;
}

.pdt-dt-page {
    padding: 50px 0;
}

@media (max-width: 992px) {
    .section-page {
        padding: 40px 0;
    }
}

@media (max-width: 768px) {
    .pdt-dt-page {
        padding: 30px 0;
    }
}

.modal {
    padding-right: 0px !important;
}



a {
    color: #333;
    cursor: pointer;
    text-decoration: none;
    transition: all .3s ease-in-out;
    -moz-transition: all .3s ease-in-out;
    -webkit-transition: all .3s ease-in-out;
    -ms-transition: all .3s ease-in-out;
    -o-transition: all .3s ease-in-out;

}

a:focus,
a:hover {
    text-decoration: none;
    outline: 0;
    color: var(--main-color);
    cursor: pointer;
}

img {
    border: 0;
    padding: 0;
    margin: 0;
    vertical-align: middle;
    width: 100%;
    height: auto;
}


h1,
h2,
h3,
h4,
h5,
h6,
p,
ul,
li,
label {
    padding: 0;
    margin: 0;
    list-style: none;
}

input,
select,
textarea,
button {
    border-radius: 0;
    outline: none;
}

input:active,
select:active,
textarea:active,
button:active,
input:focus,
select:focus,
textarea:focus,
button:focus {
    outline: none;
}

button {
    border: none;
}

div:where(.swal2-container) button:where(.swal2-styled) {
    padding: 5px 15px !important;
    font-size: 15px !important;
}

.bg {
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-size: cover;
}

.blog-bg {
    background-image: url(../img/blog-bg.jpg);
}

.blog-bg2 {
    background: linear-gradient(180deg, rgba(255, 255, 255, 1) 0%, rgba(171, 204, 187, 0.15) 100%);
}

.blog-dt-bg {
    background-image: url(../img/ab-bg.png);
}

.pdt-bg {
    background-image: url(../img/index-pdt-bg.jpg);
}

.ab-bg {
    background-position: center;
    background-image: url(../img/ab-bg.png);
}

.pdt-dt-bg {
    background: url(../img/ab-bg.png) fixed no-repeat center, linear-gradient(150deg, rgba(255, 255, 255, 1) 0%, rgba(171, 204, 187, 0.15) 100%);
}

.case-bg {
    background: linear-gradient(150deg, rgba(255, 255, 255, 1) 0%, rgba(171, 204, 187, 0.15) 100%);
}

.case-dt-bg {
    background: url(../img/ab-bg.png) fixed no-repeat center, linear-gradient(180deg, rgba(255, 255, 255, 1) 0%, rgba(171, 204, 187, 0.15) 100%);
}

.qa-bg {
    background: url(../img/ab-bg.png) fixed no-repeat center, linear-gradient(180deg, rgba(255, 255, 255, 1) 0%, rgba(171, 204, 187, 0.07) 100%);
}

.order-bg {
    background: url(../img/ab-bg.png) fixed no-repeat center, linear-gradient(180deg, rgba(255, 255, 255, 1) 0%, rgba(171, 204, 187, 0.07) 100%);
}

.cart-bg {
    background-color: #f8f8f8;
}

/* ---- basic setting end ---- */


/* ---- gotop ---- */

.gotop {
    position: fixed;
    right: 26px;
    bottom: 40px;
    transition: display 0.5s ease-in-out;
    z-index: 10;
}

@media (max-width: 992px) {
    .gotop {
        bottom: 90px;
    }
}

/* ---- gotop end ---- */


/* ---- right link ---- */

.right-link {
    position: fixed;
    bottom: 125px;
    right: 14px;
    z-index: 99;
    color: #353535;
    text-align: center;
}

.right-link #right-menu-toggle .menu-text {
    font-size: 13px;
    margin-bottom: 5px;
}

.right-link #right-menu-toggle .menu-line span {
    display: block;
    width: 100%;
    height: 1px;
    background-color: #353535;
    transition: .3s ease;
}

.right-link #right-menu-toggle .menu-line span:nth-of-type(2) {
    margin: 8px 0;
}

.right-link #right-menu-toggle.active .menu-line span {
    background-color: var(--main-color);
}

.right-link #right-menu-toggle.active .menu-line span:nth-of-type(2) {
    opacity: 0;
}

.right-link #right-menu-toggle.active .menu-line span:nth-of-type(3) {
    margin: 8px 0;
    transform: rotate(15deg) translateY(-11px) translateX(-1px);
}

.right-link #right-menu-toggle.active .menu-line span:nth-of-type(1) {
    transform: rotate(-15deg) translateY(7px) translateX(-1px);
}

.right-link ul {
    /* display: none;
     */
    margin-top: 15px;
}

.right-link ul li a img {
    width: 30px;
    height: 30px;
    margin-bottom: 5px;
    object-fit: contain;
}

/* ---- right link end ---- */


/* ---- bottom link ---- */

.bottom-link {
    position: fixed;
    bottom: 0;
    width: 100%;
    height: 55px;
    z-index: 10;
    background-color: rgba(53, 53, 53, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.bottom-link ul {
    display: flex;
}

.bottom-link ul li {
    width: calc(100% / 5);
    height: 100%;
}

.bottom-link ul li a {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 55px;

}

.bottom-link ul li a img {
    object-fit: contain;
    height: 45%;
}

/* ---- bottom link end ---- */

/* ---- header ---- */

header {
    height: 90px;
    position: relative;
    background: #19593C;
    border: 1px solid #19593C;
}

.fixed-top {
    padding-right: 0px !important;
    background: #19593C;
    transition: .3s ease;
}


.header-flex {
    /* 外層已改成滿版，左右留白改由這裡給，logo 貼左、購物車貼右 */
    margin: 0 2%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

@media (max-width: 1430px) {
    .header-flex {
        margin: 0;
    }
}

@media (max-width: 992px) {
    .header-flex {
        justify-content: start;
    }
}

.logo {
    width: 280px;
    min-width: 280px;
    height: 90px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    transition: .3s ease;
}



.logo a {
    width: 100%;
}

.logo img {
    object-fit: contain;
    width: 80%;
    transition: .3s ease;
}

/* logo-sm.svg 只有標誌沒有中文字，比例較高，改用高度控制才不會撐破 header */
.logo img.logo-mark {
    width: auto;
    height: 55px;
}


@media (max-width: 1200px) {
    .logo {
        min-width: 150px;
        width: 150px;
    }

    .logo img {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .logo {
        min-width: 130px;
        width: 130px;
    }
}

.top-menu {
    height: 100%;
    transition: .3s ease;
}

@media (max-width: 992px) {
    .top-menu {
        display: none;
    }
}


.top-menu>ul {
    display: flex;

}

.top-menu>ul>li {
    margin: 0 10px;
}

.top-menu>ul>li img {
    width: 22px;
    object-fit: contain;
    height: 90px;
}

#cart-button {
    position: relative;
    display: flex;
    align-items: center;
}

#cart-button .cart-btn-num {
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    height: 23px;
    margin-left: 3px;
}

.top-menu .index-member:hover #index-memberMenu {
    display: flex;
    animation-name: header-animate;
    animation-duration: .7s;
    animation-delay: 0ms;
    animation-timing-function: cubic-bezier(0.39, 0.575, 0.565, 1);

}

.top-menu #index-memberMenu {
    position: absolute;
    width: 100%;
    left: 0;
    top: 100%;
    height: auto;
    min-height: 150px;
    z-index: 99;
    overflow: hidden;
    transition: ease all 0.3s;
    list-style: none;
    background-color: rgba(90, 156, 123, 0.85);
    backdrop-filter: blur(4px);
    padding: 20px 10%;
    display: none;
    /* display: flex; */
    justify-content: end;
    flex-wrap: wrap;
}

@media (max-width: 1430px) {
    .top-menu #index-memberMenu {
        padding: 20px 20px;
    }
}

#index-memberMenu li {
    width: 100%;
    display: flex;
    justify-content: end;
    align-items: center;
    text-align: right;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.8)
}

#index-memberMenu li a {
    display: block;
    width: 100%;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 2px;
    transition: .3s ease;
}

#index-memberMenu li:hover a {
    color: rgba(255, 255, 255, 1);
}

header .nav-menu {
    margin: 0;
    padding: 0;
    height: 100%;
}

@media(min-width: 992px) {
    header .nav-menu ul {
        display: flex;
        margin: 0;
        padding: 0;
        height: 100%;
    }
}

header .nav-menu>ul>li {
    white-space: nowrap;
    list-style: none;
}


header .nav-menu a {
    display: block;
    color: var(--main-color);
    padding: 0 15px;
    transition: 0.3s;
    font-size: 16px;
    font-weight: 600;
}

header .nav-menu>ul>li>a {
    display: block;
    color: #fff;
    height: 100%;
    padding: 0 10px;
    transition: 0.3s ease;
    font-size: 18px;
    letter-spacing: 2px;
    line-height: 90px;
}

header .nav-menu .active>a,
header .nav-menu li:hover>a {
    /* 深綠底上主色綠看不出來，改用淺綠當 hover/選取色 */
    color: var(--lightgreen-color);
    text-decoration: none;
}


/* 下拉要對齊自己這一項的左緣，所以定位基準改成這顆 li(原本 absolute 是相對 .fixed-top) */
header .nav-menu .drop-down {
    position: relative;
}

header .nav-menu .drop-down ul {
    display: none;
    position: absolute;
    width: auto;
    min-width: 220px;
    left: 0;
    top: 100%;
    height: auto;
    padding: 10px 0;
    z-index: 99;
    overflow: hidden;
    transition: ease all 0.3s;
    list-style: none;
    background-color: rgba(90, 156, 123, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}


header .nav-menu .drop-down ul li {
    width: 100%;
    position: relative;
    /* height: 50px; */
}

header .nav-menu .drop-down ul a {
    display: flex;
    align-items: center;
    /* 垂直排列後文字要靠左對齊 */
    justify-content: flex-start;
    height: 100%;
    width: 100%;
    font-size: 16px;
    padding: 12px 25px;
    white-space: nowrap;
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: none;
    color: rgba(255, 255, 255, 0.85);
}

header .nav-menu .drop-down ul a:hover,
header .nav-menu .drop-down ul .active>a,
header .nav-menu .drop-down ul li:hover>a {
    color: rgba(255, 255, 255, 1);
}


header .nav-menu .drop-down>a:after {
    content: "\eac8";
    font-family: IcoFont;
    padding-left: 0px;
}


/* 選單hover效果 */
header .nav-menu>ul>.drop-down:hover>ul {
    /* 原本 flex + wrap 是左到右排，改成 block 由上往下一列一項 */
    display: block;
    animation-name: header-animate;
    animation-duration: .7s;
    animation-delay: 0ms;
    animation-timing-function: cubic-bezier(0.39, 0.575, 0.565, 1);

}


@keyframes header-animate {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* ---- header 三組選單：中央固定置中 ---- */

@media (min-width: 1200px) {
    header .nav-menu {
        flex: 1 1 auto;
        min-width: 0;
        /* 要蓋過 Bootstrap .d-xl-block 的 display:block !important，不加三組 ul 會垂直堆疊把 header 撐爆 */
        display: flex !important;
        align-items: center;
    }

    /* 左右兩組各吃一半剩餘空間並往中間靠，中央三格才會落在選單列正中 */
    header .nav-menu > .nav-left {
        flex: 1 1 0;
        min-width: 0;
        justify-content: flex-end;
    }

    header .nav-menu > .nav-right {
        flex: 1 1 0;
        min-width: 0;
        justify-content: flex-start;
    }

    header .nav-menu > .nav-center {
        flex: 0 0 auto;
    }
}

/* logo 是 280px，右側補到同寬中央組才會對齊版面真中線；水平空間吃緊，只有大螢幕開得起 */
@media (min-width: 1600px) {
    .top-menu {
        min-width: 280px;
        display: flex;
        justify-content: flex-end;
    }
}

/* 10 個項目在 1660px 以下會把購物車擠出畫面，分兩階縮排 */
@media (max-width: 1660px) {
    header .nav-menu > ul > li > a {
        font-size: 16px;
        letter-spacing: 1px;
        padding: 0 8px;
    }

    .logo {
        width: 240px;
        min-width: 240px;
    }
}

@media (max-width: 1400px) {
    header .nav-menu > ul > li > a {
        font-size: 15px;
        letter-spacing: 0;
        padding: 0 6px;
    }

    .logo {
        width: 200px;
        min-width: 200px;
    }

    /* 這個區間擠不下會員姓名(最寬 8em)，只留人像 */
    .top-menu #index-member .member-name {
        display: none;
    }
}

.mobile-nav {
    position: fixed;
    top: 0;
    bottom: 0;
    z-index: 1032;
    overflow-y: auto;
    left: 0px;
    width: 100%;
    background: transparent;
    transition: 0.4s;
    display: none;
    align-items: center;
}

.mobile-nav::-webkit-scrollbar {
    width: 7px;
}

.mobile-nav::-webkit-scrollbar-button {
    background: transparent;
    border-radius: 4px;
}

.mobile-nav::-webkit-scrollbar-track-piece {
    background: transparent;
}

.mobile-nav::-webkit-scrollbar-thumb {
    border-radius: 4px;
    background-color: rgba(255, 255, 255, 0.5);
}

.mobile-nav::-webkit-scrollbar-track {
    box-shadow: transparent;
}

.mobile-nav * {
    margin: 0;
    padding: 0;
    list-style: none;
}

.mobile-nav ul {
    display: block;
    width: 100%;
}

.mobile-nav ul li {
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.mobile-nav a {
    display: block;
    position: relative;
    color: rgba(255, 255, 255, 0.8);
    letter-spacing: 2px;
    padding: 15px 20px;
    margin-left: 40%;
    font-weight: 500;
    transition: 0.3s;
}

@media (max-width: 576px) {
    .mobile-nav a {
        margin-left: auto;
    }
}

.mobile-nav a:hover,
.mobile-nav .active>a,
.mobile-nav li:hover>a {
    color: #fff;
    text-decoration: none;
}



.mobile-nav .drop-down>a:after {
    content: "\ea99";
    font-family: IcoFont;
    padding-left: 10px;
}

.mobile-nav .active.drop-down>a:after {
    content: "\eaa0";
}



.mobile-nav .drop-down ul {
    display: none;
    overflow: hidden;
}

.mobile-nav .drop-down li {
    padding-left: 20px;
}

.mobile-nav-toggle {
    position: fixed;
    right: 25px;
    top: 35px;
    z-index: 1033;
    border: 0;
    background: none;
    font-size: 35px;
    transition: all 0.3s;
    outline: none !important;
    line-height: 1;
}

.mobile-nav-toggle:hover {
    cursor: pointer;
}

.mobile-nav-toggle .mobilenav-line span {
    display: block;
    width: 25px;
    height: 2px;
    /* 漢堡按鈕是壓在深綠 header 上的，維持白色 */
    background-color: #fff;
    transition: .3s ease;
}

.mobile-nav-toggle .mobilenav-line.active span {
    background-color: #fff;
}

.mobile-nav-toggle .mobilenav-line span:nth-of-type(2) {
    margin: 7px 0;
}

.mobile-nav-toggle .mobilenav-line.active span:nth-of-type(2) {
    opacity: 0;
}

.mobile-nav-toggle .mobilenav-line.active span:nth-of-type(1) {
    transform: rotate(45deg) translateY(13px) translateX(3px);
}

.mobile-nav-toggle .mobilenav-line.active span:nth-of-type(3) {
    transform: rotate(-45deg) translateY(-10px);
}

.mobile-nav-overly {
    width: 100%;
    height: 100%;
    z-index: 1031;
    top: 0;
    left: 0;
    position: fixed;
    background: rgba(17, 17, 17, 0.85);
    opacity: 1;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    overflow: hidden;
    display: none;
}


.mobile-nav-active {
    overflow: hidden;
}

.mobile-nav-active .mobile-nav {
    display: flex;
    /* 選單拆成左/中/右三個 ul，不指定方向手機版會變成三欄橫排 */
    flex-direction: column;
    animation: mbheader-in .3s ease 0ms 1 both;
}

@keyframes mbheader-in {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes mbheader-out {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}


#mb-member {
    position: fixed;
    top: 32px;
    right: 68px;
    width: 25px;
    z-index: 1032;
}

#mb-cart {
    position: fixed;
    top: 30px;
    width: 27px;
    right: 125px;
    z-index: 1031;
}

#mb-cart span {
    margin: 2px 0 0 5px;
    color: #fff;
    font-weight: 600;
    font-size: 18px;
}

#mb-membernav {
    position: fixed;
    /* display: none; */
    z-index: 1032;
    top: 90px;
    right: 0;
    width: 100%;
    padding: 20px 20px;
    backdrop-filter: blur(4px);
    background-color: rgba(90, 156, 123, 0.85);
}

@media (min-width: 1200px) {
    #mb-membernav {
        display: none;
    }
}

#mb-membernav li {
    color: rgba(255, 255, 255, 0.85);
    text-align: right;
    padding: 5px 0;
}

#mb-membernav li a {
    display: block;
    color: #fff;
    text-align: right;
}

/* ---- header end ---- */

/* ---- pagination ---- */

.pagination {
    justify-content: center;
    margin: 10px 0;
}

.pagination li a {
    display: block;
    text-align: center;
    border-bottom: 2px solid #eee;
    color: #aaa;
    width: 30px;
    margin: 0 5px;
    transition: .3s ease;
}

.pagination li.active a,
.pagination li:hover a {
    border-bottom-color: rgba(90, 156, 123, 0.3);
    color: var(--main-color);
}

/* ---- pagination end ---- */



/* ---- banner ---- */


/* ---- index banner 滿版(首頁) ---- */

.index-banner-full {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    position: relative;
    overflow: hidden;
}

.index-banner-full .swiper-slide {
    background: transparent;
}

.index-banner-full .swiper-slide .banner-img {
    width: 100%;
}

.index-banner-full .swiper-slide .banner-img img {
    width: 100%;
    height: auto;
    display: block;
}

/* 取消原本的淡入/縮放進場特效。下面 .index-banner 的 scale-up 特異性相同又排在後面，要疊 class 加 !important */
.index-banner.index-banner-full .swiper-slide .banner-img img,
.index-banner.index-banner-full .swiper-slide-active .banner-img img {
    animation: none !important;
    transform: none !important;
}

/* 左右箭頭:綠底白字、正方形 */
.index-banner-full .swiper-button-next,
.index-banner-full .swiper-button-prev,
.index-hot-top .swiper-button-next,
.index-hot-top .swiper-button-prev {
    width: 48px;
    height: 48px;
    margin-top: -24px;
    border-radius: 0;
    background-color: var(--main-color);
    color: #fff;
    opacity: 0.9;
    transition: 0.3s;
}

.index-banner-full .swiper-button-next:hover,
.index-banner-full .swiper-button-prev:hover,
.index-hot-top .swiper-button-next:hover,
.index-hot-top .swiper-button-prev:hover {
    opacity: 1;
    background-color: #4a8568;
}

.index-banner-full .swiper-button-prev {
    left: 30px;
    right: auto;
}

.index-banner-full .swiper-button-next {
    right: 30px;
    left: auto;
}

/* 改用 Font Awesome 的長箭頭(有中間那一槓),不是 swiper 內建的角括號 */
.index-banner-full .swiper-button-next::after,
.index-banner-full .swiper-button-prev::after,
.index-hot-top .swiper-button-next::after,
.index-hot-top .swiper-button-prev::after {
    font-family: 'Font Awesome 6 Pro';
    font-weight: 900;
    font-size: 20px;
    color: #fff;
}

.index-banner-full .swiper-button-prev::after,
.index-hot-top .swiper-button-prev::after {
    content: "\f060";
}

.index-banner-full .swiper-button-next::after,
.index-hot-top .swiper-button-next::after {
    content: "\f061";
}

@media (max-width: 768px) {
    .index-banner-full .swiper-button-next,
    .index-banner-full .swiper-button-prev,
    .index-hot-top .swiper-button-next,
    .index-hot-top .swiper-button-prev {
        width: 36px;
        height: 36px;
        margin-top: -18px;
    }

    .index-banner-full .swiper-button-prev {
        left: 12px;
    }

    .index-banner-full .swiper-button-next {
        right: 12px;
    }

    .index-banner-full .swiper-button-next::after,
    .index-banner-full .swiper-button-prev::after,
    .index-hot-top .swiper-button-next::after,
    .index-hot-top .swiper-button-prev::after {
        font-size: 14px;
    }
}

/* ---- index banner 滿版 end ---- */



.index-banner {
    width: 100%;
    height: 100%;
    margin-top: 0px;
    /* overflow: hidden; */

}

.index-banner .swiper-slide {
    text-align: center;
    font-size: 18px;
    background: #fff;
    /* Center slide text vertically */
    display: flex;
    justify-content: center;
    align-items: center;
}

.index-banner .swiper-pagination {
    width: 10px;
    height: calc(100% - 10px);
    top: 0px;
    bottom: unset;
    right: 0;
    left: unset;
    display: flex;
    justify-content: center;
    flex-direction: column;
}

@media (max-width: 992px) {
    .index-banner .swiper-pagination {
        right: 2px;
    }
}


.index-banner .swiper-pagination-bullet {
    width: 3px;
    height: calc(100% /5);
    border-radius: 0;
    position: relative;
    overflow: hidden;
    transition: 800ms;
    opacity: 1;
    background-color: rgba(238, 238, 238, 0.8);
    margin: 2px var(--swiper-pagination-bullet-horizontal-gap, 4px) !important;


}

.index-banner .swiper-pagination-bullet::before {
    content: "";
    display: block;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    transition: .8s ease;
    background-color: rgba(238, 238, 238, 0.8);
}

.index-banner .swiper-pagination-bullet-active {
    background-color: rgba(238, 238, 238, 0.8);

}

.index-banner .swiper-pagination-bullet-active::before {
    background-color: #bebebe;
    animation: slide-progress 8s cubic-bezier(1,.98,0,0) 0ms 1 forwards;
}

.swiper-paused {
    opacity: 0;
    animation-play-state: paused;
}

.index-banner .swiper-slide .banner-img {
    position: relative;
}

/*.index-banner .swiper-slide .banner-img::after {
    position: absolute;
    content: '';
    display: block;
    width: 100%;
    height: 100%;
    border: solid #fff;
    border-width: 100px 200px;
    top: 0;
    left: 0;

}*/

.index-banner .swiper-slide-active .banner-img {
    position: relative;
    overflow: hidden; /* 確保圖片不超出容器範圍 */
}

.index-banner .swiper-slide-active .banner-img img {
    animation: scale-up 7s ease 0s 1 forwards;
    transform-origin: center; /* 圖片從中心放大 */
}

@keyframes scale-up {
    0% {
        transform: scale(0.7); /* 初始縮小 90% */
    }
    100% {
        transform: scale(1); /* 放大到原始大小 */
    }
}
@media (max-width: 768px) {
    .index-banner .swiper-slide-active .banner-img img {
        animation: scale-up-mobile 7s ease 0s 1 forwards;
    }
}

@keyframes scale-up-mobile {
    0% {
        transform: scale(0.7); /* 更小的初始比例 */
    }
    100% {
        transform: scale(1); /* 放大到原始大小 */
    }
}
/*@media (max-width: 768px) {
    .index-banner .swiper-slide .banner-img::after {
        border-width: 70px 100px;
    }
}*/

/*.index-banner .swiper-slide-active .banner-img::after {
    animation: slide-progress-img 6.5s ease 8ms 1 forwards;
}

@media (max-width: 768px) {
    .index-banner .swiper-slide-active .banner-img::after {
        animation: slide-progress-img-mb 8s ease 3ms 1 forwards;
    }
}*/

.index-banner .swiper-slide .banner-text {
    position: absolute;
    width: 100%;
    bottom: -70px;
    width: 100%;
    opacity: 0;
    font-size: 100px;
    letter-spacing: 5px;
    mix-blend-mode: difference;
    font-weight: 600;
    color: #333;
}

@media (max-width: 768px) {
    .index-banner .swiper-slide .banner-text {
        font-size: 70px;
        bottom: -50px;
        letter-spacing: 2px;
    }
}

@media (max-width: 576px) {
    .index-banner .swiper-slide .banner-text {
        font-size: 50px;
        bottom: -35px;
    }
}

.index-banner .swiper-slide-active .banner-text {
    animation: slide-progress-text 7s ease 0s 1 forwards;
}

@keyframes slide-progress {
    0% {
        transform: translateY(-100%);
        opacity: 0.5;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slide-progress-img {
    0% {
        transform: scale(1);
        border-color: rgba(255, 255, 255, 0); /* 透明 */
    }

    30% {
        transform: scale(1.05);
        border-color: rgba(255, 255, 255, 0.5); /* 半透明白色 */
    }

    60% {
        transform: scale(1.1);
        border-color: rgba(255, 255, 255, 1); /* 完全白色 */
    }

    100% {
        transform: scale(1);
        border-color: rgba(255, 255, 255, 0); /* 回到透明 */
    }
}


@keyframes slide-progress-img-mb {
    0% {
        border: solid #fff;
        border-width: 70px 100px;
    }

    30% {
        border: solid #fff;
        border-width: 70px 100px;
    }

    40% {
        border: solid #fff;
        border-width: 0px 0px;
    }

    80% {
        border: solid #fff;
        border-width: 0px 0px;
    }

    100% {
        border: solid #fff;
        border-width: 70px 100px;
    }
}

@keyframes slide-progress-text {
    0% {
        transform: translateY(-20px);
        opacity: 0;
    }

    30% {
        transform: translateY(-20px);
        opacity: 0;
    }

    50% {
        transform: translateY(0px);
        opacity: 1;
    }

    80% {
        transform: translateY(0px);
        opacity: 1;
    }

    100% {
        transform: translateY(-20px);
        opacity: 0;
    }
}


/* ---- banner end ---- */
.swiper-container {
  height: 100%;
  margin: auto;
  width: 100%;
}


.slide-inner {
  position: relative;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  background-size: cover;
  background-position: center;
}

/* ---- inbanner ---- */
/* 內頁 banner 不再放圖(底圖、遮罩、漸層遮罩全部拿掉)，只留底色；
   標題置中深綠，底下接一段簡述 */
.inbanner {
    min-height: 320px;
    padding: 40px 0;
    background-color: #E4EBE8;
    display: flex;
    align-items: center;
    position: relative;
}

@media (max-width: 768px) {
    .inbanner {
        min-height: 240px;
        padding: 30px 0;
    }
}

.inbanner-text {
    width: 100%;
}

.inbanner-text h1 {
    text-align: center;
    font-weight: bold;
    color: #19593C;
    letter-spacing: 5px;
    margin-bottom: 20px;
}

/* 標題底下的簡述(後台的「簡述」欄位，原本的圖片關鍵字) */
.inbanner-desc {
    text-align: center;
    color: #000;
    font-size: 20px;
    line-height: 1.9;
    letter-spacing: 1.5px;
    /* 後台打的換行要能反映到前台 */
    white-space: pre-line;
    margin-bottom: 15px;
}

.inbanner-text .breadcrumb {
    background-color: transparent;
    padding: 0;
    margin: 0;
    justify-content: center;
}

.inbanner-text .breadcrumb .breadcrumb-item a {
    font-size: 14.5px;
    letter-spacing: 2px;
    color: rgba(53, 53, 53, 0.65);
}

.breadcrumb-item+.breadcrumb-item::before {
    content: '｜';
}

.inbanner-text .breadcrumb .breadcrumb-item.active a {
    color: #19593C;
}

@media (max-width: 576px) {
    .inbanner-text h1 {
        font-size: 30px;
    }

    .inbanner-desc {
        font-size: 16px;
    }

    .inbanner-text .breadcrumb .breadcrumb-item a {
        font-size: 13px;
        letter-spacing: 2px;
    }
}

.breadcrumb-area {
    padding: 10px 0;
}

.pdt-breadcrumb-area {
    background-color: #efefef;
}

/* 下面 .breadcrumb-area .breadcrumb 是 justify-content:end，同權重但在後面，所以這裡要多帶一層類別才蓋得過 */
.breadcrumb-area.pdt-breadcrumb-area .breadcrumb {
    justify-content: start;
}

.pdt-breadcrumb-area .breadcrumb-item+.breadcrumb-item::before {
    content: '>';
}

.case-breadcrumb-area {
    background-color: #f8f8f8;
}

.breadcrumb-margin {
    margin: 0 10%;
}

@media (max-width: 1430px) {
    .breadcrumb-margin {
        margin: 0;
    }
}

.breadcrumb-area .breadcrumb {
    background-color: transparent;
    padding: 0;
    margin: 0;
    justify-content: end;
}

.breadcrumb-area .breadcrumb-item+.breadcrumb-item::before {
    color: rgba(53, 53, 53, 0.5);
}

.breadcrumb-area .breadcrumb .breadcrumb-item a {
    font-size: 14px;
    color: rgba(53, 53, 53, 0.5);
}

@media (max-width: 576px) {
    .breadcrumb-area .breadcrumb .breadcrumb-item.active {
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        height: fit-content;
        -webkit-line-clamp: 1;
        -webkit-box-orient: vertical;
    }
}


.breadcrumb-area .breadcrumb .breadcrumb-item.active a {
    color: #353535;
}

/* ---- inbanner end ---- */


/* ---- category ---- */

.category-bg {
    margin: 50px 0;
}

.category {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: start;
}

.category li {
    display: block;
    /* 項目之間留間距，底線才不會連成一整條 */
    margin-right: 30px;
}

.category li:last-of-type {
    margin-right: 0;
}

.category li a {
    text-align: center;
    border-bottom: 2px solid #ccc;
    letter-spacing: 2px;
    display: block;
    /* 左右不留 padding，底線寬度才會跟文字一樣 */
    padding: 10px 0;
    color: #000;
    font-size: 18px;
}

.category li.active a,
.category li:hover a {
    border-bottom-color: #19593C;
    color: #19593C;
}

.category li.active a {
    font-weight: bold;
}

.category-btn {
    padding: 10px 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #999;
    background-color: rgba(240, 240, 240, 0.3);
}

.category-btn .cb-line {
    margin-right: 10px;
}

.category-btn .cb-line span {
    display: block;
    width: 20px;
    height: 1px;
    background-color: #999;
    transition: .3s ease;
}

.category-btn .cb-line span:nth-of-type(2) {
    margin: 5px 0;
}

.category-btn.active .cb-line span:nth-of-type(2) {
    opacity: 0;
}

.category-btn.active .cb-line span:nth-of-type(1) {
    transform: rotate(45deg) translateY(4px) translateX(4px);
}

.category-btn.active .cb-line span:nth-of-type(3) {
    transform: rotate(-45deg) translateY(-4px) translateX(4px);
}

.category-btn:hover {
    cursor: pointer;
}

@media (max-width: 992px) {
    .category {
        display: none;
    }

    .category li {
        display: block;
        width: 100%;
        /* 手機版是一項一行的選單，不需要左右間距 */
        margin-right: 0;
    }

    .category li a {
        padding: 12px 20px;
    }
}

@media (min-width: 992px) {
    .category {
        display: flex !important;
    }

    /* 設計稿的安裝案例分頁標籤是置中 */
    .category.case-tag {
        justify-content: center;
    }
}

/* ---- category end ---- */







/* ---- index ---- */
.index-video {
    position: relative;
    margin-top: 80px;
    display: flex;
    justify-content: end;
}

.index-video video {
    width: 70%;
}

@media (max-width: 768px) {
    .index-video video {
        width: 100%;
    }
}

.index-video-text {
    position: absolute;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    margin-left: 8%;
}

.index-video-text .top-text {
    font-weight: bold;
    font-size: 80px;
    width: 100%;
    letter-spacing: 25px;
    color: #fff;
    mix-blend-mode: difference;
    margin-bottom: 15px;
}


.index-video-text .top-text::after {
    display: block;
    content: '';
    width: 40%;
    height: 3px;
    background-color: #fff;
}

.index-video-text .bottom-text {
    color: var(--lightgreen-color);
    font-size: 32px;
}

@media (max-width: 1450px) {
    .index-video-text .top-text {
        font-size: 60px;
    }

    .index-video-text .bottom-text {
        font-size: 25px;
    }
}

@media (max-width: 1200px) {
    .index-video-text .top-text {
        font-size: 45px;
    }

    .index-video-text .bottom-text {
        font-size: 20px;
    }
}

@media (max-width: 992px) {
    .index-video-text .top-text {
        font-size: 38px;
    }

    .index-video-text .bottom-text {
        font-size: 18px;
    }
}

@media (max-width: 768px) {
    .index-video {
        display: block;
    }

    .index-video-text {
        margin-top: 30px;
        position: relative;
        margin-left: 0;
    }

    .index-video-text .top-text {
        width: fit-content;
        margin: 10px auto 15px;
    }

    .index-video-text .top-text::after {
        margin: 10px auto;
    }

    .index-video-text .bottom-text {
        text-align: center;
    }
}

@media (max-width: 576px) {
    .index-video-text .top-text {
        font-size: 30px;
    }

    .index-video-text .bottom-text {
        font-size: 16px;
    }
}

.index-blog {
    margin-top: 100px;
    background-color: #E4EBE8;
}

/* 改中文標題並加底色後，原本 margin-top:-140px 的上凸會跑到色塊外，所以拿掉負 margin、字級改小 */
.index-blog-title {
    font-size: 36px;
    font-weight: 600;
    color: #2B593C;
    text-align: center;
    margin-top: 0;
    margin-bottom: 20px;
}

@media (max-width: 992px) {
    .index-blog {
        margin-top: 60px;
    }

    .index-blog-title {
        font-size: 28px;
        font-weight: 600;
        margin-top: 0;
        margin-bottom: 20px;
    }
}

@media (max-width: 576px) {
    .index-blog-title {
        font-size: 24px;
    }
}

/* 標題區是「垂直清單」，只當右邊圖片輪播的 thumbs。Swiper 寫的 inline 寬高與位移要全部蓋掉，
   否則只會看到第一筆 */
.ib-TitleSwiper {
    height: auto !important;
}

.ib-TitleSwiper .swiper-wrapper {
    display: block;
    width: 100% !important;
    height: auto !important;
    transform: none !important;
}

.ib-TitleSwiper .swiper-slide {
    width: 100% !important;
    height: auto !important;
    /* Swiper 依 spaceBetween 寫的 inline margin-right，垂直排列用不到 */
    margin-right: 0 !important;
}

.ib-TitleSwiper .ib-title {
    display: flex;
    padding: 10px 20px;
    background-color: #fff;
    transition: .3s ease;
}

.ib-TitleSwiper .ib-title:hover {
    cursor: pointer;
}

.ib-TitleSwiper .ib-title .date {
    color: #ccc;
    width: 110px;
    min-width: 110px;
    transition: .3s ease;
}

.ib-TitleSwiper .ib-title .text {
    color: #353535;
    transition: .3s ease;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    height: fit-content;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
}

.ib-TitleSwiper .ib-title .link {
    margin-left: 10px;
}

.ib-TitleSwiper .ib-title .link a {
    color: var(--lightgreen-color);
    transition: .3s ease;
}

.ib-TitleSwiper .swiper-slide:not(:last-of-type) .ib-title {
    margin-bottom: 20px;
}

.ib-TitleSwiper .swiper-slide-thumb-active .ib-title {
    background-color: var(--main-color);
}

.ib-TitleSwiper .swiper-slide-thumb-active .ib-title .date,
.ib-TitleSwiper .swiper-slide-thumb-active .ib-title .text {
    color: #fff;
}

.ib-ImgSwiper {
    height: 100%;
}

.ib-ImgSwiper .swiper-slide {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.8);
}

.ib-ImgSwiper .swiper-slide img {
    width: 80%;
    object-fit: contain;
}

.ib-ImgSwiper .swiper-pagination {
    width: 100%;
    bottom: 20px;
    height: 5px;
}

.ib-ImgSwiper .swiper-pagination-bullet {
    border-radius: 0;
    height: 3px;
    width: calc(100% / 8.5);
    background-color: rgba(90, 156, 123, 0.2);
    opacity: 1;
}

.ib-ImgSwiper .swiper-pagination-bullet-active {
    background-color: rgba(90, 156, 123, 0.6);
}

.iq-link {
    padding: 40px 0;
    text-align: center;
    border-bottom: 2px solid #353535;
}

.case-bg .iq-link {
    border-bottom-color: #ccc;
}

.iq-link img {
    transition: .3s ease;
}

.iq-link:hover img {
    opacity: .85;
}

.iq-link .iq-link-t {
    display: block;
    margin: 25px 0;
    font-size: 30px;
    font-weight: 700;
    letter-spacing: 10px;
    transition: .3s ease;
}

.iq-link:hover .iq-link-t {
    color: var(--main-color);
}

.iq-link .iq-desc {
    line-height: 30px;
    font-size: 17px;
    letter-spacing: 6px;
}

@media (max-width: 576px) {
    .iq-link .iq-link-t {
        font-size: 25px;
    }

    .iq-link .iq-desc {
        font-size: 15px;
        letter-spacing: 3px;
    }
}

.ip-title {
    font-size: 36px;
    text-align: center;
    font-weight: 600;
    color: #2B593C;
}

@media (max-width: 992px) {
    .ip-title {
        font-size: 28px;
    }
}

@media (max-width: 576px) {
    .ip-title {
        font-size: 24px;
        font-weight: 700;
    }
}

/* 熱銷商品輪播:箭頭放在 swiper 外側,容器自己當定位基準 */
.index-hot-top {
    position: relative;
}

.index-hot-swiper .swiper-slide {
    height: auto;
}

.index-hot-top .swiper-button-prev {
    left: -24px;
    right: auto;
}

.index-hot-top .swiper-button-next {
    right: -24px;
    left: auto;
}

@media (max-width: 1200px) {
    .index-hot-top .swiper-button-prev {
        left: 0;
    }

    .index-hot-top .swiper-button-next {
        right: 0;
    }
}

.ip-link {
    display: block;
    border-bottom: 1px solid #ccc;
    text-align: center;
    padding: 10px 0;
    color: #353535;
    transition: .3s ease;
}

.ip-price {
    margin-top: 4px;
    color: #E75D00;
    font-size: 15px;
    letter-spacing: 1px;
}

.ip-link:hover {
    background-color: rgba(90, 156, 123, 0.05);
    color: var(--main-color);
    border-color: rgba(90, 156, 123, 0.5);
}

.index-dealer-list {
    background: linear-gradient(0deg, rgba(171, 204, 187, 0.1) 0%, rgba(255, 255, 255, 0) 80%);
}

.comment-dealer-list {
    background: linear-gradient(0deg, rgba(171, 204, 187, 0.1) 0%, rgba(255, 255, 255, 0) 50%);
}


/* ---- 銷售據點(清單/內頁) ---- */

.service-area-tab {
    border-bottom: 0;
    justify-content: center;
    gap: 10px 40px;
    flex-wrap: wrap;
    margin-bottom: 50px;
}

.service-area-tab .nav-item {
    margin: 0;
}

.service-area-tab .nav-link {
    border: 0;
    border-bottom: 2px solid #ccc;
    border-radius: 0;
    padding: 4px 6px;
    color: #000;
    font-size: 20px;
    letter-spacing: 2px;
    background: transparent;
}

.service-area-tab .nav-link:hover {
    color: #18583B;
}

.service-area-tab .nav-link.active {
    color: #18583B;
    border-bottom-color: #18583B;
    background: transparent;
}

.service-row {
    padding: 40px 0;
    border-bottom: 1px solid #e5e5e5;
}

.service-row:last-child {
    border-bottom: 0;
}

.service-img {
    display: block;
    overflow: hidden;
}

.service-img img {
    width: 100%;
    height: auto;
}

.service-name {
    display: block;
    color: #18583B;
    font-size: 24px;
    font-weight: 600;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

a.service-name:hover {
    color: var(--main-color);
}

.service-name i {
    margin-right: 10px;
}

.service-info {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
}

.service-info li {
    color: #333;
    line-height: 2;
    letter-spacing: 1px;
}

.service-addr {
    color: #4a7ebb;
    text-decoration: none;
}

.service-addr:hover {
    color: #4a7ebb;
    text-decoration: underline;
}

/* 四個標籤一律都列出來,據點有的是深綠、沒有的是灰色 */
.service-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.service-tag {
    display: inline-block;
    padding: 6px 16px;
    background-color: #C6C6C6;
    color: #fff;
    font-size: 15px;
    letter-spacing: 1px;
    border-radius: 3px;
}

.service-tag.on {
    background-color: #18583B;
}

.service-empty {
    padding: 40px 0;
    text-align: center;
    color: #999;
}

/* 產品母分類切換 */
.pdt-cats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 40px;
    margin-bottom: 40px;
}

.pdt-cats a {
    font-size: 18px;
    letter-spacing: 1px;
    color: #333;
    padding-bottom: 6px;
    border-bottom: 2px solid transparent;
}

.pdt-cats a:hover {
    color: #18583B;
    border-bottom-color: #18583B;
}

.pdt-cats a.on {
    color: #18583B;
    border-bottom-color: #18583B;
}

.pdt-empty {
    padding: 40px 0;
    text-align: center;
    color: #999;
}

@media (max-width: 767px) {
    .pdt-cats {
        gap: 10px 20px;
    }

    .pdt-cats a {
        font-size: 16px;
    }
}

/* 內頁編輯器內容:標題做成深綠色的區塊標題列,內容給淺灰底 */
.service-dt-content h2,
.service-dt-content h3 {
    background-color: #18583B;
    color: #fff;
    text-align: center;
    font-size: 22px;
    letter-spacing: 3px;
    padding: 14px 10px;
    margin: 40px 0 0;
}

.service-dt-content h2 + p,
.service-dt-content h3 + p,
.service-dt-content h2 + div,
.service-dt-content h3 + div {
    background-color: #f2f2f2;
    padding: 30px 20px;
    margin: 0;
    text-align: center;
    line-height: 2.2;
}

.service-map {
    margin-top: 40px;
}

.service-map iframe {
    width: 100%;
    min-height: 380px;
    border: 0;
}

.page-back-btn {
    display: inline-block;
    padding: 10px 40px;
    background-color: #18583B;
    color: #fff;
    letter-spacing: 2px;
    transition: .3s;
}

.page-back-btn:hover {
    background-color: var(--main-color);
    color: #fff;
}

@media (max-width: 768px) {
    .service-area-tab {
        gap: 10px 20px;
        margin-bottom: 30px;
    }

    .service-area-tab .nav-link {
        font-size: 17px;
    }

    .service-row {
        padding: 25px 0;
    }

    .service-name {
        font-size: 20px;
    }
}

/* ---- 銷售據點 end ---- */

.index-dealer-title {
    font-size: 45px;
    font-weight: 900;
    letter-spacing: 4px;
    color: #353535;
    text-align: center;
}

@media (max-width: 768px) {
    .index-dealer-title {
        font-size: 25px;
    }
}

#dealerAreaTab {
    justify-content: center;
    border-bottom: none;
}

#dealerAreaTab .nav-link {
    font-size: 20px;
    letter-spacing: 3px;
    margin: 5px 5px;
    border: none;
    border-radius: 0px;
    background-color: transparent;
    border-bottom: 3px solid #eee;
    color: #bebebe;
}

@media (max-width: 768px) {
    #dealerAreaTab .nav-item {
        width: calc(100% / 3);
    }

    #dealerAreaTab .nav-link {
        font-size: 16px;
        width: 100%;
        margin: 5px 0;
    }
}

#dealerAreaTab .nav-link.active {
    border-bottom-color: rgba(90, 156, 123, 0.4);
    color: var(--main-color);
    font-weight: 900;

}

#dealerArea {
    padding: 20px 0;
}

#dealerArea .nav-tabs {
    margin: 0 0 20px;
    justify-content: center;
    border-bottom: none;
}

#dealerArea .nav-link {
    border: none;
    padding: 5px 0;
    margin: 5px 10px;
    letter-spacing: 2px;
    border-radius: 0;
    background-color: transparent;
    color: #999;
    font-size: 17px;
    position: relative;
}

#dealerArea .nav-link.active {
    background-color: transparent;
    color: var(--main-color);
}

#dealerArea .nav-link::after {
    display: block;
    content: '';
    width: 10px;
    height: 10px;
    position: absolute;
    top: 100%;
    left: calc(50% - 5px);
    transform: rotate(0deg) scale(0);
    border-right: 1px solid var(--lightgreen-color);
    border-bottom: 1px solid var(--lightgreen-color);
    transition: .3s ease;
}

#dealerArea .nav-link.active::after {
    transform: rotate(45deg) scale(1);
}

@media (max-width: 768px) {
    #dealerArea .nav-link::after {
        top: 80%;
    }
}

#dealerArea .tab-content {
    padding: 15px 0;
}

#dealerArea .tab-content iframe {
    width: 100%;
    height: 260px;
    border: none;
}

.dealer-info-t {
    font-weight: 900;
    font-size: 30px;
    color: var(--main-color);
    width: fit-content;
    margin-right: auto;
    margin-bottom: 20px;
}

.dealer-info li {
    display: flex;
    align-items: center;
    padding: 8px;
    background-color: #fff;
    border-bottom: 1px solid #eee;
    margin-bottom: 15px;
    letter-spacing: 2px;
    color: #353535;
}

.dealer-info li img {
    width: 30px;
    margin-right: 10px;
}

/* ---- index end ---- */

/* ---- pdt ---- */

.pdt-title {
    font-weight: bold;
    font-size: 30px;
    letter-spacing: 5px;
    width: fit-content;
    border-bottom: 1px solid #353535;
    padding: 0 0 5px;
    margin: 0 0 20px;
}

@media (max-width: 768px) {
    .pdt-title {
        font-size: 22px;
    }
}

.filter-box {
    background-color: #f8f8f8;
    padding: 0 20px;
}

.filter-list {
    display: flex;
    align-items: center;
    padding: 15px 0;
}

.filter-list:not(:last-of-type) {
    border-bottom: 1px solid #eee;
}

.filter-list .flt-t {
    color: var(--main-color);
    min-width: 100px;
    letter-spacing: 2px;
    width: 100px;
}

@media (max-width: 992px) {
    .filter-list {
        flex-wrap: wrap;
    }

    .filter-list .flt-t {
        min-width: unset;
        width: 100%;
        margin: 0 10px 15px;
        font-weight: 800;
        font-size: 18px;
    }
}

.filter-list .flt-opt {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.filter-list .flt-opt li {
    display: flex;
    align-items: center;
    margin: 0px 10px;
}

@media (max-width: 992px) {
    .filter-list {
        padding: 15px 0 10px;
    }

    .filter-list .flt-opt li {
        margin: 0 10px 15px;
    }
}

.filter-list .flt-opt li label {
    line-height: 15px;
    display: block;
    letter-spacing: 1.5px;
    transition: .3s ease;
}

.filter-list .flt-opt li label:hover {
    cursor: pointer;
}

.filter-list .flt-opt li input[type='checkbox'] {
    position: relative;
    width: 15px;
    height: 15px;
    margin-right: 8px;
}

.filter-list .flt-opt li input[type='checkbox']::before {
    position: absolute;
    width: 100%;
    height: 100%;
    display: block;
    content: '';
    border: 1px solid #ddd;
    background-color: #fff;
    z-index: 1;
    transition: .3s ease;
}

.filter-list .flt-opt li input[type='checkbox']:checked:before {
    background-color: rgba(90, 156, 123, 1);
    border-color: rgba(90, 156, 123, 0.2);
}

.filter-list .flt-opt li input[type='checkbox']:checked+label {
    color: var(--main-color);
}

.pdt-img,
.video-img  {
    display: block;
    position: relative;
}

.pdt-img::before,
.video-img::before  {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    content: '';
    background-color: rgba(0, 0, 0, 0.4);
    transition: .6s ease;
    z-index: 1;
    transform: rotateY(60deg);
    transform-origin: left;
    opacity: 0;
}

.pdt-box:hover .pdt-img::before,
.pdt-box:hover .video-img::before {
    transform: rotateY(0deg);
    opacity: 1;
}

.pdt-img::after {
    position: absolute;
    top: 3.5%;
    left: 5%;
    width: 90%;
    height: 93%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 3px;
    content: '查看商品';
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: .6s ease .1s;
    transform: rotateY(90deg);
    /* transform-origin: left; */
    z-index: 2;
    opacity: 0;
}
.video-img::after {
    position: absolute;
    top: 3.5%;
    left: 5%;
    width: 90%;
    height: 93%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 3px;
    content: '查看影片';
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: .6s ease .1s;
    transform: rotateY(90deg);
    /* transform-origin: left; */
    z-index: 2;
    opacity: 0;
}



.pdt-box:hover .pdt-img::after,
.pdt-box:hover .video-img::after {
    transform: rotateY(0deg);
    opacity: 1;
    transition: .8s ease .12s;
}

.pdt-desc {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
    color: #353535;
    border-bottom: 1px solid #ccc;
    transition: .4s ease;
}

.pdt-box:hover .pdt-desc {
    color: var(--main-color);
    border-bottom-color: rgba(90, 156, 123, 0.5);
}

.pdt-desc .title {
    font-weight: 600;
}

.pdt-desc .price {
    color: #929292;
    transition: .4s ease;
}

.pdt-box:hover .pdt-desc .price {
    color: rgba(90, 156, 123, 0.6);
}

@media (max-width: 576px) {
    .pdt-desc {
        flex-wrap: wrap;
        text-align: center;
    }

    .pdt-desc .title {
        width: 100%;
    }

    .pdt-desc .price {
        width: 100%;
    }
}

.pdt-top-bg {
    background: linear-gradient(0deg, rgba(171, 204, 187, 0.1) 0%, rgba(171, 204, 187, 0.05) 50%);
}

/* ---- pdt end ---- */


/* ---- pdt-detail ---- */

.anchor-area {
    width: 100%;
    top: 90px;
    position: fixed;
    padding: 5px 0;
    background-color: rgba(53, 53, 53, 0.8);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 12;
}

.anchor-area .anchor-flex {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    margin: 0 10%;
}

@media (max-width: 1430px) {
    .anchor-area .anchor-flex {
        margin: 0;
    }
}

.anchor-area .anchor-flex .anchor-title {
    font-size: 22px;
    font-weight: bold;
    color: #fff;
}

.anchor-area .anchor-flex .anchor_nav ul {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.anchor-area .anchor-flex .anchor_nav ul li a {
    color: #cccccc;
    display: block;
    padding: 5px 0 5px 30px;
    font-size: 15px;
    transition: .3s ease;
}

.anchor-area .anchor-flex .anchor_nav ul li:hover a,
.anchor-area .anchor-flex .anchor_nav ul li.active a {
    color: var(--lightgreen-color);
}


@media (max-width: 992px) {
    .anchor-area {
        padding: 10px 0 5px;
    }

    .anchor-area .anchor-flex {
        flex-wrap: wrap;
    }

    .anchor-area .anchor-flex .anchor-title {
        width: 100%;
        margin-bottom: 0px;
        text-align: center;
    }

    .anchor-area .anchor-flex .anchor_nav {
        width: 100%;
    }

    .anchor-area .anchor-flex .anchor_nav ul {
        justify-content: center;
        flex-wrap: wrap;
        height: 100%;
        /*padding: 5px 0;*/
    }

    .anchor-area .anchor-flex .anchor_nav ul li a {
        padding: 5px 10px;

    }
}

.pdt-dt {
    padding-top: 120px;
}

.cart-num input[type=number]::-webkit-outer-spin-button,
.cart-num input[type=number]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.cart-num input[type=number] {
    -moz-appearance: textfield;
}

.pdt-dt-t {
    font-size: 30px;
    font-weight: 600;
    letter-spacing: 3px;
}

.pdt-dt-price {
    font-size: 20px;
    color: var(--main-color);
    letter-spacing: 2px;
}

.fm-group {
    margin-bottom: 15px;
}

.fm-group label {
    display: block;
    color: #929292;
    margin-bottom: 5px;
}

.fm-group textarea,
.fm-group input,
.fm-group select {
    color: #353535;
    width: 100%;
    font-size: 18px;
    padding: 6px 0 !important;
    border: none;
    background-color: #fff;
    border-bottom: 1px solid #dedede;
    transition: .3s ease;
}

.fm-group textarea::placeholder,
.fm-group input::placeholder {
    color: #ccc;
}

.fm-group input:focus {
    border-bottom: 1px solid rgba(90, 156, 123, 0.6);
}

.fm-group textarea:disabled,
.fm-group input:disabled,
.fm-group select:disabled {
    opacity: 1;
    background-color: #f8f8f8;
    color: #aaa;
    padding: 6px !important;
}

.cart-address select,
.cart-address input {
    margin-bottom: 10px;
}

.cart-num {
    display: flex;
}

.cart-num .cart-btn {
    background-color: var(--main-color);
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 45px;
    font-size: 14px;
    transition: .3s ease;
}

.cart-num .cart-btn:hover {
    cursor: pointer;
}

.cart-num .cart-btn:active {
    background-color: rgba(90, 156, 123, 0.8)
}

.cart-num input {
    text-align: center;
}

button.addCart-btn {
    width: 100%;
    padding: 10px;
    color: #fff;
    background-color: var(--main-color);
    letter-spacing: 3px;
    transition: .3s ease;
}
button.addCart-btn.line {
    background-color: #4CAF50;
}

button.addCart-btn:hover {
    background-color: rgba(90, 156, 123, 0.8);
}
button.addCart-btn.line:hover {
    background-color: rgba(76, 175, 80, 0.8);
}

.pdt-imgFlex {
    display: flex;
    flex-direction: column;
}

.pdt-imgFlex .pdtImg {
    width: 100%;
    height: 500px;
    margin-bottom: 12px;
}

@media (max-width: 768px) {
    .pdt-imgFlex .pdtImg {
        height: 400px;
    }
}

@media (max-width: 576px) {
    .pdt-imgFlex .pdtImg {
        height: 320px;
    }
}

.pdt-imgFlex .pdtImg .swiper-slide {
    background-color: rgba(238, 238, 238, 0.5);
}

.pdt-imgFlex .pdtImg .swiper-slide img {
    object-fit: contain;
    height: 100%;
}

.pdt-imgFlex .pdtImg .swiper-button-next,
.pdt-imgFlex .pdtImg .swiper-button-prev {
    color: var(--main-color)
}

/* 全域的 .swiper-button-next 是 right:-30px(容器外側)，但 .swiper 是 overflow:hidden 會被裁掉，改放內側 */
.pdt-imgFlex .pdtImg .swiper-button-next {
    right: 10px;
}

.pdt-imgFlex .pdtImg .swiper-button-prev {
    left: 10px;
}

.pdt-imgFlex .pdtImg .swiper-button-next::after,
.pdt-imgFlex .pdtImg .swiper-button-prev::after {
    font-size: 20px !important;
}

.pdt-imgFlex .pdtImgThumb {
    width: 100%;
    height: 90px;
}

@media (max-width: 768px) {
    .pdt-imgFlex .pdtImgThumb {
        height: 70px;
    }
}

.pdt-imgFlex .pdtImgThumb .swiper-slide {
    overflow: hidden;
}

.pdt-imgFlex .pdtImgThumb .swiper-slide img {
    object-fit: cover;
    object-position: center;
    opacity: .5;
    transition: .3s ease;
}

.pdt-imgFlex .pdtImgThumb .swiper-slide-thumb-active img {
    opacity: 1;
}

/* 商品說明(content1)搬到右欄，原本是全寬編輯器內容，這裡收斂成欄寬 */
.pdt-dt-desc {
    margin-bottom: 20px;
}

.pdt-dt-desc img {
    max-width: 100%;
    height: auto;
}

.pdt-dt-desc table {
    max-width: 100%;
}

.pdt-dt-type li {
    display: flex;
    margin-bottom: 12px;
}

.pdt-dt-type li .type-t {
    width: 215px;
    display: flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 5px;
    min-width: 215px;
    padding: 6px 5px;
    text-align: center;
    background-color: var(--main-color);
    color: #fff;
}

.pdt-dt-type li .type-desc {
    width: 100%;
    font-size: 15px;
    letter-spacing: 2px;
    padding: 6px 15px;
    background-color: rgba(255, 255, 255, 0.75);
    color: #666;
}

@media (max-width: 768px) {
    .pdt-dt-type li {
        flex-wrap: wrap;
    }

    .pdt-dt-type li .type-t {
        min-width: unset;
        width: 100%;
    }

    .pdt-dt-type li .type-desc {
        padding: 20px 15px;
    }
}

.pdt-dt-box {
    background-color: rgba(255, 255, 255, 0.75);
    height: 100%;
    border-left: 2px solid var(--main-color);
    padding: 2vmin 3vmin;
}

.pdt-dt-box li {
    color: #353535;
    letter-spacing: 2px;
    line-height: 25px;
}

.pdt-dt-box li:not(:last-of-type) {
    margin-bottom: 10px;
}

.pdt-dt-button {
    display: block;
    width: fit-content;
    padding: 1.2vmin 10vmin;
    font-weight: 800;
    letter-spacing: 3px;
    font-size: 18px;
    margin: 0 auto;
    background-color: var(--main-color);
    color: #fff;
}

.pdt-dt-button:hover {
    color: #fff;
    background-color: rgba(90, 156, 123, 0.9);
}

/* ---- pdt-detail end ---- */


/* ---- case ---- */

.case-box-bg-dot {
    position: relative;
}

.case-box-bg {
    z-index: -1;
    position: absolute;
    top: 0;
    left: 0;
    display: block;
    width: 100%;
    height: 100%;
    transition: .3s ease;
    background: no-repeat center;
    background-size: cover;
}

.case-box-bg::after {
    z-index: -1;
    display: block;
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8);
}

.case-box .case-box-img {
    display: block;
    position: relative;
    /* 設計稿的卡片圖是直式，建案那邊覆蓋成正方形 */
    aspect-ratio: 3 / 4;
    background-color: rgba(31, 31, 31, 0.05);
    transition: .3s ease;
    overflow: hidden;
}

.case-box-building .case-box-img {
    aspect-ratio: 1 / 1;
}

.case-box:hover .case-box-img {
    background-color: rgba(90, 156, 123, 0.9);
}

.case-box .case-box-img img {
    object-fit: cover;
    width: 100%;
    height: 100%;
    transition: .5s ease;
}

/* 卡片圖的輪播(舊改填了圖片2、3才會出現) */
.case-card-swiper {
    width: 100%;
    height: 100%;
}

.case-card-swiper .swiper-slide a {
    display: block;
    width: 100%;
    height: 100%;
}

.case-card-swiper .swiper-pagination {
    width: auto;
    left: 15px;
    bottom: 12px;
    text-align: left;
}

.case-card-swiper .swiper-pagination-bullet {
    width: 7px;
    height: 7px;
    background-color: #fff;
    opacity: .5;
    margin: 0 5px 0 0 !important;
}

.case-card-swiper .swiper-pagination-bullet-active {
    opacity: 1;
}

.case-box .case-box-t {
    display: block;
    padding: 15px 0;
    text-align: center;
    letter-spacing: 3px;
    transition: .3s ease;
    color: #353535;
}

.case-box:hover .case-box-t {
    color: var(--main-color);
}

/* 卡片下方的編輯器區(建案設計稿裡在案例清單底下，用一條線隔開) */
.case-editor .container {
    border-top: 1px solid #ddd;
    padding-top: 60px;
}

/* ---- case end ---- */


/* ---- case-detail ---- */

/* 多圖輪播。舊改是中間一大張、左右各露出一張(容器滿版)；建案是單張置中 */
.case-gallery {
    position: relative;
}

.case-gallery .swiper-slide {
    aspect-ratio: 3 / 2;
    background-color: rgba(31, 31, 31, 0.05);
}

.case-gallery .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 露出的鄰圖要溢出 swiper 容器，再由外層裁掉，才不會撐出頁面 */
.case-gallery-peek {
    overflow: hidden;
}

.case-gallery-peek .swiper {
    overflow: visible;
}

.case-gallery-peek .swiper-slide {
    width: 52%;
}

@media (max-width: 768px) {
    .case-gallery-peek .swiper-slide {
        width: 82%;
    }
}

/* 白底圓形箭頭 */
.case-gallery .swiper-button-next,
.case-gallery .swiper-button-prev {
    width: 44px;
    height: 44px;
    margin-top: -22px;
    border-radius: 50%;
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    color: #353535;
}

.case-gallery .swiper-button-next::after,
.case-gallery .swiper-button-prev::after {
    font-size: 16px !important;
    font-weight: bold;
}

.case-gallery .swiper-button-prev {
    left: 25%;
}

.case-gallery .swiper-button-next {
    right: 25%;
}

.case-gallery:not(.case-gallery-peek) .swiper-button-prev {
    left: 15px;
}

.case-gallery:not(.case-gallery-peek) .swiper-button-next {
    right: 15px;
}

@media (max-width: 768px) {
    .case-gallery-peek .swiper-button-prev {
        left: 12px;
    }

    .case-gallery-peek .swiper-button-next {
        right: 12px;
    }
}

/* Before & After + 編輯器(建案是編輯器 + 多圖)，設計稿是同一塊淺灰底 */
.case-ba {
    background-color: #f0f0f0;
}

.case-ba-title {
    text-align: center;
    /* 設計稿這裡是襯線體 */
    font-family: 'Times New Roman', 'Noto Serif TC', serif;
    font-size: 42px;
    font-weight: bold;
    color: #19593C;
    margin-bottom: 40px;
}

@media (max-width: 768px) {
    .case-ba-title {
        font-size: 30px;
    }
}

.case-ba-box {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background-color: rgba(31, 31, 31, 0.05);
}

.case-ba-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 建案內頁標題下方那張左右滿版的大圖 */
.case-bn img {
    width: 100%;
    display: block;
}

.case-rec-title {
    font-weight: bold;
    font-size: 30px;
    letter-spacing: 5px;
    color: #19593C;
    margin: 0 0 25px;
}

@media (max-width: 768px) {
    .case-rec-title {
        font-size: 22px;
    }
}

/* ---- case-detail end ---- */

/* ---- qa ---- */
.qa-box {
    margin-bottom: 15px;
    /* 底色改由問題列/答案列各自給 */
    background-color: transparent;
    transition: .3s ease;
}

.qa-box:hover {
    cursor: pointer;
}

.qa-title {
    background-color: #E4EBE8;
    border-left: 5px solid #19593C;
    font-size: 18px;
    padding: 15px 20px;
    color: #19593C;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: .3s ease;
    font-weight: bold;
}

@media (max-width: 576px) {
    .qa-title {
        font-size: 16px;
    }
}

.qa-title::after {
    content: '+';
    min-width: 35px;
    width: 35px;
    height: 25px;
    font-size: 30px;
    font-weight: 300;
    display: flex;
    align-items: center;
    justify-content: end;
    transition: .3s ease;
}

.qa-ans {
    position: relative;
    background-color: #F2F2F2;
    /* 右邊留給收合用的 × */
    padding: 20px 55px 20px 20px;
    line-height: 30px;
    letter-spacing: 2px;
    color: #000;
    border-left: 5px solid #E4EBE8;
}

.qa-ans::after {
    content: '×';
    position: absolute;
    top: 16px;
    right: 20px;
    font-size: 26px;
    line-height: 1;
    font-weight: 300;
    color: #19593C;
}

/* ---- qa end ---- */


/* ---- blog ---- */

.blog-box {
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
    margin-bottom: 20px;
}

.blog-box-img {
    width: 100%;
    height: 230px;
    display: block;
    background-color: #e7e7e7;
    transition: .3s ease;
}

.blog-box:hover .blog-box-img {
    background-color: rgba(90, 156, 123, 0.2);
}

@media (max-width: 992px) {
    .blog-box-img {
        height: 40vmin;
    }
}

.blog-box-img img {
    object-fit: contain;
    width: 100%;
    height: 100%;
}

@media (max-width: 576px) {
    .blog-box-img {
        display: flex;
        justify-content: center;
        height: 100%;
    }

    .blog-box-img img {
        width: 90%;
    }
}

.blog-box-date {
    color: #929292;
    width: fit-content;
    padding-bottom: 3px;
    margin-bottom: 15px;
    border-bottom: 1px solid #ccc;
}

.blog-box-t {
    color: #353535;
    font-size: 20px;
    font-weight: 600;
    overflow: hidden;
    display: -webkit-box;
    text-overflow: ellipsis;
    height: fit-content;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    margin: 0 0 15px;
    transition: .3s ease;
}

.blog-box:hover .blog-box-t {
    color: var(--main-color);
}

.blog-box-desc {
    color: #555;
    font-size: 15px;
    letter-spacing: 2px;
    overflow: hidden;
    display: -webkit-box;
    text-overflow: ellipsis;
    height: fit-content;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    margin: 0 0 30px;
    transition: .3s ease;
}

.blog-box:hover .blog-box-desc {
    color: #999;
}

.blog-btn-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.blog-btn-flex .blog-box-badge {
    display: block;
    font-size: 15px;
    padding: 5px 12px;
    background-color: #cbcbcb;
    color: #fff;
    transition: .3s ease;
}

.blog-box:hover .blog-btn-flex .blog-box-badge {
    background-color: var(--lightgreen-color);
}

.blog-btn-flex .blog-box-more {
    display: block;
    min-width: 150px;
    min-width: 150px;
    text-align: right;
    height: 100%;
    color: #353535;
    letter-spacing: 2px;
    font-size: 15px;
    transition: .3s ease;
}

.blog-box:hover .blog-btn-flex .blog-box-more {
    transform: translateX(5px);
    color: var(--main-color);
}

.blog-side-sticky {
    position: sticky;
    top: 120px
}

.blog-side {
    margin-bottom: 35px;
}

.blog-side-t {
    color: #666;
    font-weight: 900;
    font-size: 20px;
    margin-bottom: 15px;
    letter-spacing: 3px;
}

.blog-side-list li a {
    color: #aaa;
    letter-spacing: 2px;
    margin-bottom: 15px;
    border-bottom: 1px dashed #eee;
    overflow: hidden;
    display: -webkit-box;
    text-overflow: ellipsis;
    height: fit-content;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    transition: .3s ease;
}

.blog-side-list li:hover a {
    color: rgba(90, 156, 123, 0.7);
}

.blog-title {
    font-size: 40px;
    font-weight: 800;
    color: #353535;
    transition: .3s ease;
}

@media (max-width: 992px) {
    .blog-title {
        font-size: 30px;
    }
}

@media (max-width: 768px) {
    .blog-title {
        font-size: 22px;
    }
}

.blog-dt-flex {
    display: flex;
    align-items: center;
    margin: 0 0 15px;
}

.blog-date {
    color: #929292;
    border-bottom: 1px solid #ccc;
    width: fit-content;
    padding-bottom: 3px;
}

.blog-badge {
    background-color: var(--lightgreen-color);
    color: #fff;
    font-size: 15px;
    padding: 3px 12px;
    margin-right: 15px;
}

.blog-back-btn {
    display: block;
    width: fit-content;
    margin-left: auto;
    color: #fff;
    background-color: var(--lightgreen-color);
    padding: 5px 15px;
}

.blog-back-btn:hover {
    color: #fff;
    background-color: rgba(171, 204, 187, 0.85);
}

.blog-hashtag {
    display: flex;
    flex-wrap: wrap;
}
.blog-hashtag .bh-tag {
    display: flex;
    align-items: center;
    font-size: 15px;
    background-color: rgba(90, 156, 123, 0.1);
    padding: 3px 6px;
    border-radius: 3px;
    margin-right: 10px;
    margin-bottom: 5px;
    color: #888;
    letter-spacing: 2px;
}
.blog-hashtag .bh-tag::before {
    display: block;
    content: '#';
    font-weight: 300;
}


.blog-share-t {
    font-weight: 900;
    color: #353535;
    margin-bottom: 5px;
    font-size: 18px;
}

.blog-share {
    display: flex;
}
.blog-share .bs-button {
    display: block;
    padding: 5px 20px;
    color: #fff;
    font-size: 15px;
}
.blog-share .bs-button.bs-fb {
    background-color: #4267B2;
}
.blog-share .bs-button.bs-line {
    background-color: #06c755;
}
/* ---- blog end ---- */

/* ---- order ----- */

.order-title {
    font-size: 40px;
    font-weight: 800;
    color: #353535;
    letter-spacing: 3px;
    transition: .3s ease;
    text-align: center;
}

@media (max-width: 992px) {
    .order-title {
        font-size: 30px;
    }
}

.order-subtitle {
    margin: 15px 0;
    color: var(--main-color);
    letter-spacing: 1px;
    text-align: center;
}

.order-search-box {
    background-color: rgba(204, 204, 204, 0.15);
    padding: 3vmin 4vmin;
}

.order-search-box.comment-box {
    background-color: rgba(255, 255, 255, 0.7);
}

.order-search-box .fm-group {
    margin-bottom: 0;
}

.order-search-box .fm-group label {
    color: #353535;
}

.order-search-box textarea,
.order-search-box input {
    background-color: transparent;
    border-bottom: 1px solid #aaa;
}

.recaptcha-area img {
    display: block;
    width: 290px;
    margin: 20px auto 20px auto;
}

.order-search-btn {
    display: block;
    width: 100%;
    background-color: var(--main-color);
    color: #fff;
    padding: 8px;
    letter-spacing: 3px;
    transition: .3s ease;
    text-align: center;
}

.order-search-btn:hover {
    background-color: rgba(90, 156, 123, 0.85);
}

.order-search-btn.comment-btn {
    width: 150px;
}

/* ---- order end ----- */

/* ---- comment ----- */

.comment-list li {
    display: flex;
    align-items: center;
    padding: 15px 0px;
    border-bottom: 1px solid #eee;
}

.comment-list li .cmt-t {
    width: 150px;
    color: #353535;
    font-weight: 900;
    font-size: 18px;
    min-width: 150px;
}

.comment-list li .cmt-desc {
    letter-spacing: 2px;
    color: #666;
    word-break: break-all;
}

@media (max-width: 576px) {
    .comment-list li {
        flex-wrap: wrap;
    }

    .comment-list li .cmt-t {
        min-width: unset;
        width: 100%;
        text-align: center;
        margin-bottom: 5px;
    }

    .comment-list li .cmt-desc {
        text-align: center;
        width: 100%;
    }
}

.comment-list li .cmt-desc a {
    color: var(--main-color);
}

.comment-list li .cmt-desc a:hover {
    color: rgba(90, 156, 123, 0.7);
}

.comment-map iframe {
    border: none;
    width: 100%;
    height: 390px;
}

/* ---- comment end ----- */


/* ---- search ----- */

.search-flex {
    display: flex;
    align-items: center;
}

.search-flex input {
    width: 100%;
    border: none;
    border-bottom: 1px solid #ccc;
    padding: 15px 0 3px;
    font-size: 18px;
    color: #353535;
    letter-spacing: 1px;
}
.search-flex.blog-search input {
    border-bottom: none;
    background-color: #f5f5f5;
    padding: 9px;
}

.search-flex input::placeholder {
    color: #ccc;
    letter-spacing: 1px;
}

.search-flex button {
    width: 150px;
    min-width: 150px;
    height: 45px;
    background-color: var(--main-color);
    color: #fff;
    letter-spacing: 3px;
    text-align: center;
}
.search-flex.blog-search button {
    width: 50px;
    min-width: 50px;
}
@media (max-width: 992px) {
    .search-flex button {
        width: 50px;
        min-width: 50px;
    }
}

/* ---- search end ----- */


/* ---- cart ----- */


.cart-area,
.cart-info-box {
    background-color: #fff;
    padding: 30px 15px;
}

@media (max-width: 768px) {

    .cart-area,
    .cart-info-box {
        padding: 20px 15px;
    }
}

.cart-title {
    color: var(--main-color);
    font-weight: 900;
    letter-spacing: 2px;
    font-size: 30px;
    width: fit-content;
    border-bottom: 1px solid #dedede;
    padding-bottom: 3px;
    margin: 0;
}

@media (max-width: 1200px) {
    .cart-title {
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .cart-title {
        color: var(--main-color);
        font-weight: 900;
        letter-spacing: 2px;
        font-size: 25px;
    }
}

.cart-process {
    counter-reset: cart-process;
    justify-content: start;
    display: flex;
}

@media (max-width: 1200px) {
    .cart-process {
        justify-content: center;
    }
}

.cart-process li {
    display: flex;
    align-items: center;
    text-align: center;
    counter-increment: cart-process;
}

.cart-process li::before {
    display: block;
    margin-right: 5px;
    color: #ccc;
    font-weight: 600;
    content: '0' counter(cart-process)
}

.cart-process li:not(:last-of-type):after {
    display: block;
    content: '';
    width: 40px;
    margin: 0 15px 0 10px;
    height: 2px;
    background-color: #ddd;
}

.cart-process li a {
    letter-spacing: 2px;
    font-size: 15.5px;
    color: #aaa;
}

@media (max-width: 768px) {
    .cart-process li {
        margin: 0 10px;
    }

    .cart-process li:not(:last-of-type):after {
        display: none;
    }
}

@media (max-width: 568px) {
    .cart-process li {
        flex-wrap: wrap;
        font-size: 15px;
        margin: 0 5px;
        justify-content: center;
    }

    .cart-process li::before {
        width: 100%;
    }

    .cart-process li a {
        font-size: 15px;
    }
}


.cart-process li.active::before {
    color: var(--main-color);
}

.cart-process li.active::after {
    background-color: rgba(90, 156, 123, 0.2);
}

.cart-process li.active a {
    color: var(--main-color);
    font-weight: 900;
}

.cart-process li.inactive::before {
    color: rgba(90, 156, 123, 0.5);
}

.cart-process li.inactive::after {
    background-color: rgba(90, 156, 123, 0.2);
}

.cart-process li.inactive a {
    color: rgba(90, 156, 123, 0.7);
    font-weight: 900;
}



.cart-table {
    width: 100%;
}

.cart-table thead {
    border-bottom: 1px solid #eee;
    text-align: center;
}

.cart-table thead th {
    padding: 10px;
    font-size: 18px;
    vertical-align: middle;
}

.cart-table tbody td {
    padding: 10px;
    text-align: center;
    vertical-align: middle;
}

.cart-table tbody tr {
    border-bottom: 1px solid #f3f3f3;
    transition: .3s ease;
}

@media (min-width: 1200px) {
    .cart-table tbody tr:hover {
        background-color: rgba(171, 204, 187, 0.08);
    }
}

@media (max-width: 1200px) and (min-width: 768px) {
    .cart-table tr {
        display: flex;
        flex-wrap: wrap;
    }

    .cart-table td {
        width: 50%
    }

    .cart-table td.cart-num-td {
        width: 100%
    }
}

@media (max-width: 1200px) {
    .cart-table thead {
        display: none;
    }

    .cart-table tbody tr {
        border-bottom-color: #eee;
        margin-bottom: 40px;
    }

    .cart-table tbody td {
        text-align: left;
        display: block;
    }

    .cart-table td::before {
        display: block;
        font-weight: 900;
        font-size: 17px;
        margin-bottom: 5px;
        color: #666;
        content: attr(data-title);
    }
}

.cart-table .cart-pdt-box .cart-pdt-img {
    display: block;
    width: 80px;
    margin: 0 auto;
}

.cart-table .cart-pdt-box .cart-pdt-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 5px;
}

@media (max-width: 1200px) and (min-width: 768px) {
    .cart-table .cart-pdt-box .cart-pdt-img {
        width: 50%;
    }
}

@media (max-width: 768px) {
    .cart-table .cart-pdt-box .cart-pdt-img {
        width: 150px;
    }
}


.cart-table .cart-pdt-box .cart-pdt-t {
    display: block;
    width: fit-content;
    margin: 5px auto;
    color: #666;
    border-bottom: 1px dashed rgba(90, 156, 123, 0.5);
    font-weight: 700;
    transition: .3s ease;
}

.cart-table .cart-pdt-box .cart-pdt-t:hover {
    color: var(--main-color);
}

.cart-table .cart-num {
    width: 100%;
}

.cart-table .cart-num .cart-btn {
    width: 30px;
    min-width: 30px;
}

.cart-table .cart-num input {
    border: none;
    background-color: #f8f8f8;
    width: 100%;
}

.cart-table .cart-num input:disabled {
    background-color: #f8f8f8;
    color: #999;
    padding: 6px;
    opacity: 1;
}

.cart-opt-t {
    font-size: 15px;
    color: #999;
    text-align: left;
}

.cart-opt {
    position: relative;
}

.cart-opt:not(:last-of-type) {
    margin-bottom: 10px;
}

.cart-opt .cart-opt-dt {
    font-weight: 700;
    border: 1px solid #f3f3f3;
    background-color: #fdfdfd;
    padding: 5px 10px;
    color: #353535;
    margin: 3px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cart-opt .cart-opt-dt2 {
    font-weight: 400;
    border: 1px solid #f3f3f3;
    background-color: #f8f8f8;
    padding: 5px 10px;
    color: #999;
    margin: 3px 0;
}

.cart-opt .cart-opt-dt:hover {
    cursor: pointer;
}

.cart-opt .cart-opt-dt::after {
    content: '\f078';
    width: 25px;
    text-align: right;
    min-width: 25px;
    font-size: 13px;
    color: #ccc;
    font-family: 'Font Awesome 6 Pro';
}

.cart-opt .cart-opt-list {
    position: absolute;
    top: 100%;
    left: 0;
    display: block;
    width: 100%;
    height: auto;
    background-color: #fdfdfd;
    border: 1px solid #eee;
    border-top: none;
    box-shadow: 0 0 10px -5px rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.cart-opt ul li {
    display: block;
    color: #aaa;
    text-align: left;
    transition: .3s ease;
    padding: 5px 10px;
}

.cart-opt ul li:hover,
.cart-opt ul li.active {
    cursor: pointer;
    background-color: rgba(90, 156, 123, 0.1);
    color: var(--main-color);
}

.cart-opt .cart-opt-list .cart-opt-btn {
    display: block;
    margin: 10px auto;
    width: 90%;
    font-size: 15px;
    padding: 5px;
    letter-spacing: 2px;
    background-color: var(--main-color);
    color: #fff;
    transition: .3s ease;
}

.cart-opt .cart-opt-list .cart-opt-btn:hover {
    background-color: rgba(90, 156, 123, 0.9);
}

.cart-table .cart-delete {
    color: #db3333;
}

.cart-table .cart-delete:hover {
    cursor: pointer;
}

@media (max-width: 1200px) {
    .cart-table .cart-delete {
        width: 100%;
        text-align: center;
    }
}



@media (min-width: 992px) {
    .cart-side-sticky {
        position: sticky;
        top: 190px
    }
}

.cart-side-box {
    background-color: #fff;
    padding: 20px 15px;
    margin-bottom: 1rem;
}

.cart-side-box .csb-t {
    font-size: 18px;
    font-weight: 700;
    color: #353535;
    text-align: center;
    margin-bottom: 10px;
}

.input-btn {
    display: flex;
    flex-wrap: wrap;
}

.input-btn input {
    border: 1px solid #eee;
    padding: 5px 10px !important;
}

.input-btn button {
    width: 100%;
    margin-top: 5px;
    background-color: var(--main-color);
    color: #fff;
    padding: 5px;
    letter-spacing: 2px;
}

.notice-text {
    font-size: 14px;
    letter-spacing: 1px;
    color: #db3333;
}

.notice-text2 {
    font-size: 14px;
    letter-spacing: 1px;
    color: rgba(90, 156, 123, 0.8);
}

.notice-text a {
    color: #db3333;
    border-bottom: 1px solid #db3333;
}

.notice-text a:hover {
    opacity: .7;
}

.total-list li {
    border-bottom: 1px solid #eee;
    padding: 10px 0 5px;
}

.total-list .tl-t {
    color: #999;
}

.total-list .tl-desc {
    text-align: right;
    color: #353535;
}

.total-list .tl-desc.minus {
    color: #db3333;
}

.total-list li.total .tl-desc {
    font-size: 20px;
    font-weight: 700;
}

.cart-step-btn {
    background-color: var(--main-color);
    color: #fff;
    padding: 10px 16px;
    letter-spacing: 2px;
}

.cart-step-btn:hover {
    color: #fff;
    background-color: rgba(90, 156, 123, 0.9);
}

@media (max-width: 576px) {
    .cart-step-btn {
        padding: 5px 10px;
        font-size: 15px;
    }
}

.cart-info-box {
    height: 100%;
}

.cart-info-box .cib-t {
    text-align: center;
    font-weight: 900;
    color: #353535;
    letter-spacing: 2px;
    font-size: 18px;
    margin-bottom: 10px;
}

.cart-info-checkbox {
    display: flex;
    align-items: center;
}

.cart-info-checkbox input[type='checkbox'] {
    position: relative;
    width: 15px;
    height: 15px;
    margin-right: 8px;
}

.cart-info-checkbox input[type='checkbox']::before {
    position: absolute;
    width: 100%;
    height: 100%;
    display: block;
    content: '';
    border: 1px solid #ddd;
    background-color: #fff;
    z-index: 1;
    transition: .3s ease;
}

.cart-info-checkbox input[type='checkbox']:checked:before {
    background-color: rgba(90, 156, 123, 1);
    border-color: rgba(90, 156, 123, 0.2);
}

.cart-info-checkbox input[type='checkbox']:checked+label {
    color: var(--main-color);
}



/* ---- cart end ----- */


/* ---- footer ---- */


footer {
    position: absolute;
    bottom: 0;
    right: 0;
    left: 0;
    background-color: #19593C;
    color: rgba(255, 255, 255, 0.85);
    font-size: 14.5px;
    padding: 20px 0px 45px;
    transition: .3s ease;
    letter-spacing: 3px;
}

footer a {
    font-size: 14.5px;
    /* 全域 a 是 #333，深綠底上看不到；footer 內的連結一律轉白 */
    color: rgba(255, 255, 255, 0.85);
}

footer a:hover,
footer a:focus {
    color: #fff;
}

@media (max-width: 992px) {
    footer {
        padding: 20px 0 100px;
    }
}

/* 公司名/客服/商務合作三個標題同一個樣式(設計稿都是白色粗體) */
footer .f-title,
footer .f-service .f-service-title,
footer .f-biz-title {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 2px;
    margin-bottom: 18px;
}

/* 左邊 logo 與公司資訊並排。logo 現在掛的是彩色版，換成白色版直接替換 img 即可 */
footer .f-com {
    display: flex;
    align-items: flex-start;
}

footer .f-com .f-logo {
    width: 90px;
    min-width: 90px;
    margin-right: 25px;
}

footer .f-com .f-logo img {
    width: 100%;
}

footer .f-info li {
    display: flex;
    align-items: center;
}

footer .f-info li:not(:last-of-type) {
    margin-bottom: 8px;
}

footer .f-info li a {
    color: rgba(255, 255, 255, 0.85);
    letter-spacing: 2px;
}

footer .f-info li .f-info-icon {
    margin-right: 10px;
    min-width: 18px;
    display: flex;
    justify-content: center;
    color: rgba(255, 255, 255, 0.85);
    font-size: 16px;
}

footer .f-service,
footer .f-service a {
    letter-spacing: 3px;
}

/* 客服資訊一列一項(原本電話/LINE 是左右橫排) */
footer .f-service ul {
    display: block;
}

footer .f-service ul li {
    display: flex;
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.85);
    align-items: center;
}

/* 每一列前面的小圖示，比照左邊 f-info 的做法 */
footer .f-service ul li .fsc-icon {
    margin-right: 10px;
    min-width: 18px;
    display: flex;
    justify-content: center;
    color: rgba(255, 255, 255, 0.85);
    font-size: 16px;
}

/* tel/mail/line.svg 是白線圖示，用固定寬度跟旁邊的 FA 圖示對齊 */
footer .f-info li .f-info-icon img,
footer .f-service ul li .fsc-icon img {
    width: 18px;
    height: auto;
    display: block;
}

footer .f-service ul li .fsc-ct {
    letter-spacing: 2px;
}

/* 商務合作專區的項目 */
footer .f-biz ul li {
    margin-bottom: 8px;
}

footer .f-biz-title a,
footer .f-biz ul li a {
    color: #fff;
}

footer .f-biz ul li a {
    color: rgba(255, 255, 255, 0.85);
    font-size: 16px;
    letter-spacing: 2px;
}

/* 社群連結：兩欄兩列，圓底是 sns-*.svg 圖檔本身帶的 */
footer .sns-link {
    display: grid;
    grid-template-columns: repeat(2, 40px);
    gap: 12px;
    justify-content: end;
}

footer .sns-link a {
    width: 40px;
    height: 40px;
    display: block;
    transition: .3s ease;
}

footer .sns-link a:hover {
    opacity: .75;
}

footer .sns-link a img {
    width: 100%;
    height: auto;
    display: block;
}

/* 最下面一行：copyright 與條款連結並排置中 */
footer .f-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    margin-top: 45px;
}

footer .f-bottom .copyright {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 1px;
    margin-right: 35px;
}

footer .f-link {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

footer .f-link li:not(:last-of-type) {
    margin-right: 25px;
}

footer .f-link li a {
    color: rgba(255, 255, 255, 0.75);
    font-size: 13.5px;
}

/* _Layout2 的舊版 footer 還在用 f-endBlock，樣式留著 */
footer .f-endBlock {
    height: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: end;
    align-items: end;
}

footer .f-endBlock>div {
    width: 100%;
}

@media (max-width: 1199px) {
    /* xl 以下會換行成兩欄，補上下間距 */
    footer .f-biz,
    footer .sns-link {
        margin-top: 30px;
    }

    footer .sns-link {
        justify-content: start;
    }
}

@media (max-width: 768px) {
    footer .f-com {
        flex-direction: column;
        align-items: center;
    }

    footer .f-com .f-logo {
        margin: 0 0 20px;
    }

    footer .f-title,
    footer .f-service .f-service-title,
    footer .f-biz-title {
        text-align: center;
    }

    footer .f-info {
        margin-bottom: 30px;
    }

    footer .f-info li,
    footer .f-service ul li {
        justify-content: center;
    }

    footer .sns-link {
        justify-content: center;
    }

    footer .f-bottom {
        flex-direction: column;
        margin-top: 35px;
    }

    footer .f-bottom .copyright {
        margin-right: 0;
        margin-bottom: 12px;
        text-align: center;
    }
}

/* ---- footer end ---- */



/*----tab ----*/
.nav-tabs {
    border-bottom: none;
}

.nav-tabs .nav-link {
    padding: 6px 20px;
    border: none;
    border-radius: 0;
    color: #666;
    background-color: #ececec;
    letter-spacing: 3px
}

.nav-tabs .nav-link:first-of-type {
    border-radius: 8px 0 0 0;
}

.nav-tabs .nav-link:last-of-type {
    border-radius: 0 8px 0 0;
}

.nav-tabs .nav-link:first-of-type:last-of-type {
    border-radius: 8px 8px 0 0;
}

@media (max-width: 576px) {
    .nav-tabs .nav-link {
        padding: 6px 12px;
        font-size: 15px;
    }
}

.nav-tabs .nav-link:not(:last-of-type) {
    border-right: 1px solid #ccc;
}

.nav-tabs .nav-item.show .nav-link,
.nav-tabs .nav-link.active {
    border-right: none;
    background-color: var(--main-color);
    color: #fff;
}
/*---end--*/

.swiper-top {
  position: relative;
  width: 100%;
  margin: auto;
}
.swiper {
    width: 100%;
    height: 100%;
}
#index-pdt-t6-swiper .swiper-slide {
    text-align: center;
    font-size: 18px;
    background: transparent;
    display: flex;
    justify-content: center;
    align-items: center;
}

#index-pdt-t6-swiper .swiper-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.swiper-button-next,
.swiper-rtl .swiper-button-prev {
    right: -30px;
}

.swiper-button-prev,
.swiper-rtl .swiper-button-next {
    left: -30px;
}
@media(max-width: 576px) {
.swiper-button-next,
.swiper-rtl .swiper-button-prev {
    right: -5px;
}

.swiper-button-prev,
.swiper-rtl .swiper-button-next {
    left: -5px;
}
}
.swiper-button-next::after,
.swiper-button-prev::after {
    font-size: 20px;
    color: #999;
}

#index-pdt-t6-swiper .swiper-slide {
    padding: 20px 0px;
}

@media(max-width: 992px) {
    #index-pdt-t6-swiper .swiper {
        padding: 0px 15px;
    }
}

#index-pdt-t6-swiper .case-box {
    position: relative;
    overflow: hidden;
    transition: .3s ease;
    box-shadow: 0px 0px 15px -5px rgba(0, 0, 0, 0.15);
}

#index-pdt-t6-swiper .case-box:hover {
    transform: translateY(-15px);
    transition: .3s ease;
}

.video-box{
    position: relative;
    overflow: hidden;
    transition: .3s ease;
    box-shadow: 0px 0px 15px -5px rgba(0, 0, 0, 0.15);
    margin: 20px 0 10px;
}


.video-box:hover {
    transform: translateY(-10px);
    transition: .3s ease;
}

.video-box h4{
    display: block;
    padding: 10px 0;
    border-bottom: 1px solid #353535;
    text-align: center;
    letter-spacing: 3px;
    transition: .3s ease;
    color: #353535;
    font-size: 16px;
}

.video-box:hover h4{
    color: var(--main-color);
}

/* keep editor content (images / embedded video) inside the viewport on small screens */
.pdt-dt-bg .tab-content img,
.pdt-dt-page img {
    max-width: 100%;
    height: auto;
}

.pdt-dt-bg .tab-content iframe,
.pdt-dt-page iframe {
    max-width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
}

/* ---- 下載專區 ---- */

.dl-flip-section {
    padding-bottom: 40px;
}

.dl-flip {
    position: relative;
    width: 100%;
    padding-top: 66%;
    background-color: #d9d9d9;
    overflow: hidden;
}

.dl-flip iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.dl-flip-name {
    margin-top: 20px;
    text-align: center;
    font-size: 16px;
    letter-spacing: 2px;
    color: #353535;
}

/* 上面有翻閱區時才要那條分隔線 */
.dl-flip-section + .dl-section {
    padding-top: 40px;
    border-top: 1px solid #e5e5e5;
}

.dl-title {
    font-size: 30px;
    font-weight: bold;
    letter-spacing: 5px;
    text-align: center;
    color: #18583B;
    margin-bottom: 40px;
}

.dl-item {
    display: flex;
    align-items: center;
    gap: 15px;
    background-color: #E8F0EA;
    border-left: 6px solid #18583B;
    border-radius: 4px;
    padding: 20px 25px;
    margin-bottom: 15px;
    transition: .3s ease;
}

.dl-item:hover {
    background-color: #d8e6dd;
    transform: translateX(5px);
}

.dl-item-name {
    flex: 1;
    font-size: 18px;
    letter-spacing: 2px;
    color: #353535;
}

.dl-item-size {
    font-size: 14px;
    color: #777;
}

.dl-item-icon {
    font-size: 22px;
    color: #18583B;
}

.dl-empty {
    padding: 40px 0;
    text-align: center;
    color: #999;
}

@media (max-width: 768px) {
    .dl-flip {
        padding-top: 75%;
    }

    .dl-title {
        font-size: 22px;
        letter-spacing: 3px;
        margin-bottom: 25px;
    }

    .dl-item {
        padding: 15px 18px;
        gap: 10px;
    }

    .dl-item-name {
        font-size: 16px;
    }
}

/* ---- 下載專區 end ---- */
