body {
    padding: 0;
    margin: 0;
    background-color: #F1F0EE;
}
ul, li {
    list-style-type: none;
    padding: 0;
    margin: 0;
}
@media (max-width: 991.98px) {  }
@media (max-width: 767.98px) {  } 
@media (max-width: 575.98px) {  }
.text-align-justify {
    text-align: justify;
}
.fz-12 {
    font-size: 0.75rem;
}
.fz-14 {
    font-size: 0.875rem;
}
.fz-16 {
    font-size: 1rem;
}
.fz-18 {
    font-size: 1.125rem;
}
.fz-20 {
    font-size: 1.25rem;
}
.fz-24 {
    font-size: 1.5rem;
}
.fz-40 {
    font-size: 2.5rem;
}

.bg-F5 {
    background-color: #F5F5F5;
}
.bg-PearlBush50 {
    background-color: #F8F6F4;
}
.text-PearlBush900 {
    color: #53413B;
}
.text-PearlBush800 {
    color: #655047;
}
.text-PearlBush700 {
    color: #7B6053;
}
.text-PearlBush600 {
    color: #937463;
}
.text-PearlBush400 {
    color: #B09A87;
}
.text-describe {
    color: #454545;
}
.text-PearlBush950 {
    color: #2C211E;
}
.text-black700 {
    color: #525252;
}

.boredr-b-PearlBush300 {
    border-bottom: 1px solid #C8BAA9;
}
.boredr-r-PearlBush300 {
    border-right: 1px solid #C8BAA9;
}
@media (max-width: 767.98px) {
    .boredr-r-PearlBush300 {
        border-right: 0;
    }
}

.Title-56-40 {
    font-size: 3.5rem;
}
.Title-48-32 {
    font-size: 3rem;
}
.Title-32-20 {
    font-size: 2rem;
}
.Title-32-18 {
    font-size: 2rem;
}
.Title-24-18 {
    font-size: 1.5rem;
}
.Title-56-40-32 {
    font-size: 3.5rem;
}
.Title-40-32-20 {
    font-size: 2.5rem;
}
@media (max-width: 991.98px) {
    .Title-56-40 {
        font-size: 2.5rem;
    }
    .Title-48-32 {
        font-size: 2rem;
    }
    .Title-32-20 {
        font-size: 1.25rem;
    }
    .Title-32-18 {
        font-size: 1.125rem;
    }
    .Title-24-18 {
        font-size: 1.125rem;
    }
    .Title-56-40-32 {
        font-size: 2.5rem;
    }
    .Title-40-32-20 {
        font-size: 2rem;
    }
}
@media (max-width: 767.98px) {
    .Title-56-40-32 {
        font-size: 2rem;
    }
    .Title-40-32-20 {
        font-size: 1.25rem;
    }
}



.PortalBox {
    padding: 1rem;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}
.JyBg {
    background-image: url(../images/index_bg_1.jpg);
}
.DxBg {
    background-image: url(../images/index_bg_2.jpg);
}
.PortalContent {
    width: 50%;
    height: calc(100vh - 2rem);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
}
.PortalContent {
    position: relative;
    overflow: hidden;
    text-decoration: none;
}
.PortalBg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform .5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 0;
}
.PortalContent:hover .PortalBg {
    transform: scale(1.1);
}
.Wire-Top, .EntryContent, .EntryContent-Dx {
    position: relative;
    z-index: 1;
}
.Wire-Top {
    display: flex;
    height: 4rem;
    border-bottom: 1px solid #C8BAA9;;
}
.Wirt-left {
    margin-left: 4rem;
    border-left: 1px solid #C8BAA9;
    flex: 1;
}
.Wirt-left-Dx {
    /* margin-left: 4rem; */
    border-left: 1px solid #C8BAA9;
    flex: 1;
}
.EntryContent {
    margin-left: 4rem;
    border-left: 1px solid #C8BAA9;
    position: relative;
    flex: 1;
}
.EntryContent-Dx {
    /* margin-left: 4rem; */
    border-left: 1px solid #C8BAA9;
    position: relative;
    flex: 1;
}
@media (max-width: 767.98px) {
    .Wirt-left-Dx {
        margin-left: 4rem;
    }
    .EntryContent-Dx {
        margin-left: 4rem;
    }
}
@media (max-width: 575.98px) {
    .Wirt-left-Dx {
        margin-left: 1rem;
    }
    .EntryContent-Dx {
        margin-left: 1rem;
    }
}
.EntryLogo {
    padding: 2rem;
}
.EntryH1 {
    font-size: 1.25rem;
    font-weight: 300;
    margin: 0;
    padding: 0;
}
.EntryH4 {
    font-size: 1rem;
    font-weight: 200;
    letter-spacing: 1.4px;
    margin: 0;
    padding: 0;
}
.EntryBtn {
    position: absolute;
    bottom: 4rem;
    right: 4rem;
    text-decoration: none;
}

@media (max-width: 767.98px) {  
    .PortalBox {
        flex-direction: column;
    }
    .PortalContent {
        width: 100%;
        height: calc((100vh - 2rem) / 2);
    }
} 
@media (max-width: 575.98px) {  
    .Wire-Top {
        height: 1rem;
    }
    .Wirt-left {
        margin-left: 1rem;
    }
    .EntryContent {
        margin-left: 1rem;
    }
    .EntryLogo {
        padding: 1rem;
    }
    .EntryBtn {
        position: absolute;
        bottom: 2rem;
        right: 1rem;
    }
}

.header {
    position: relative;
    padding: 18px 20px;
    border-bottom: 1px solid #DED6CC;
}

.nav-list li{
    list-style-type: none;
}
.nav-list li a {
    display: inline-block;
    text-decoration: none;
    padding: 6px 20px;
    color: #323232;
}
.btn-PearlBush300 {
    display: inline-block;
    text-decoration: none;
    padding: 6px 16px;
    color: #fff;
    background-color: #C8BAA9;
    border-radius: 10px;
}
.btn-PearlBush300:hover {
    color: #fff;
    background-color: #C8BAA9;
}
.btn-PearlBush900 {
    display: inline-block;
    text-decoration: none;
    padding: 6px 8px;
    color: #A1A1A1;
}
.btn-PearlBush900.active {
    color: #53413B;
}
.btn-PearlBush900.active:hover {
    color: #53413B;
}
.btn-PearlBush900:hover {
    color: #A1A1A1;
}
@media (max-width: 1042px) {
    .btn-PearlBush300 {
        padding: 6px 12px;
    }
    .btn-PearlBush900 {
        padding: 6px 6px;
    }
    .nav-list li a {
        padding: 6px 10px;
    }
}
@media (max-width: 992px) {
    .nav-list li a {
        padding: 6px 6px;
    }
}
@media (max-width: 858px) {
    .btn-PearlBush300 {
        padding: 6px 8px;
        font-size: 14px;
    }
    .btn-PearlBush900 {
        padding: 6px 4px;
        font-size: 14px;
    }
    .nav-list li a {
        padding: 6px 4px;
        font-size: 14px;
    }
}
.nav-list li a:hover {
    color: #323232;
}
.Mbmenu {
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
}

.swiperBox {
    padding: 1rem 1rem 0 1rem;
    position: relative;
}
.HomeLineBox {
    margin: 1rem;
    height: calc(100% - 1rem);
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    /* background-color: #000; */
    z-index: 999;
}
.HomeLineTop {
    height: 3rem;
    border-bottom: 1px solid #C8BAA9;
}
.HomeLineTopLeft {
    width: 3rem;
    height: 100%;
    border-right: 1px solid #C8BAA9;
    flex: 0 0 auto;
}
.HomeLineMiddle {
    width: 1px;
    height: 100%;
    background-color: #C8BAA9;
}
.HomeLineTopRight {
    width: 3rem;
    height: 100%;
    border-left: 1px solid #C8BAA9;
    flex: 0 0 auto;
}
.HomeLineContentBox {
    height: calc(100% - 6rem);
    margin: 0 auto;
}
.HomeLineContent {
    height: 100%;
}
.HomeLineBottom {
    height: 3rem;
    border-top: 1px solid #C8BAA9;
}
.ScrollToExplore {
    text-decoration: none;
    color: #fff;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.ScrollToExplore:hover {
    color: #fff;
}
.ScrollToExplore .text01 {
    font-weight: 200;
}
.ScrollToExplore .text02 {
    font-size: 20px;
}

@media (max-width: 991.98px) {
    .HomeLineTop {
        height: 1rem;
        border-bottom: 1px solid #C8BAA9;
    }
    .HomeLineTopLeft {
        width: 1rem;
    }
    .HomeLineTopRight {
        width: 1rem;
    }
    .HomeLineBottom {
        height: 1rem;
    }
    .HomeLineBox {
        margin: 1rem;
        height: calc(100vh - 3rem);
    }
}
@media (max-width: 575.98px) {
    .swiperBox {
        padding: .5rem .5rem 0 .5rem;
    }
    .HomeLineTop {
        height: .5rem;
        border-bottom: 1px solid #C8BAA9;
    }
    .HomeLineTopLeft {
        width: .5rem;
    }
    .HomeLineTopRight {
        width: .5rem;
    }
    .HomeLineBottom {
        height: .5rem;
    }
    .HomeLineBox {
        margin: .5rem;
        height: calc(100vh - 2rem);
    }
}

.BorderBottom {
    border-bottom: 1px solid #C8BAA9;
}

.DesignPhilosophyBG {
    background-image: url(../images/bg-3.svg);
    background-repeat: no-repeat;
    background-position: 4rem top;
    background-size: 46.7%;
}
@media (max-width: 991.98px) {  }
@media (max-width: 767.98px) {
    .DesignPhilosophyBG {
        background-position: 2rem top;
        background-size: 91.5%;
    }
} 
@media (max-width: 575.98px) {
    .DesignPhilosophyBG {
        background-position: 1rem top;
        background-size: 92%;
    }
}


.DesignPhilosophyBox {
    min-height: 640px;
}
.DesignPhilosophyLeft {
    width: 4rem;
    padding: 5rem 0;
    border-right: 1px solid #C8BAA9;
    flex: 0 0 auto;
}
.DesignPhilosophyContent {
    width: calc(100% - 8rem);
    padding: 5rem 2rem;
    flex: 0 0 auto;
}
.DesignPhilosophyContentText {
    padding-right: 4rem;
}
.DesignPhilosophyContentText p {
    text-align: justify;
}
.DesignPhilosophyContentImg {
    padding: 0 2rem;
}
.DesignPhilosophyContentImg div {
    position: relative;
    width: calc((100% - 12px) / 3);
    height: 480px;
    margin: 0 2px;
    border-radius: 4px;
    overflow: hidden;
    /* background-color: #fff; */
}

.DesignPhilosophyContentImg div img {
    width: auto;
    height: 100%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

@media (max-width: 991.98px) {
    .DesignPhilosophyLeft {
        width: 2rem;
        padding: 0;
    }
    .DesignPhilosophyContent {
        width: calc(100% - 4rem);
        padding: 5rem 2rem;
    }
    .DesignPhilosophyContent {
        padding: 4rem 0 4rem 2rem ;
    }
    .DesignPhilosophyContentText {
        padding-right: 0;
    }
    .DesignPhilosophyContentImg {
        padding: 0;
    }
    .DesignPhilosophyContentImg div {
        width: 100%;
        max-height: 240px;
        margin: 0 2px;
    }
    .DesignPhilosophyContentImg div img {
        width: 100%;
        height: auto;
    }
}

@media (max-width: 575.98px) {
    .DesignPhilosophyContent {
        width: calc(100% - 1rem);
        padding: 5rem 2rem;
        background-repeat: no-repeat;
        background-position: left top;
        background-size: 48.4%;
    }
    .DesignPhilosophyLeft {
        width: 1rem;
        padding: 2.5rem 0;
    }
    .DesignPhilosophyContent {
        padding: 2.5rem 1rem;
    }
    .DesignPhilosophyContentImg div {
        width: 100%;
        max-height: 375px;
    }
    .DesignPhilosophyContentImg div img {
        width: auto;
        height: 100%;
    }
}


/* Swiper 小圖變輪播 */
.swiper {
    width: 100%;
    height: 100%;
}
/* 拖曳時的游標樣式 */
.swiper .swiper-wrapper{
    transform-origin: top center;
}
.swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    border-radius: 4px;
    overflow: hidden;
}
.swiper-slide .Item {
    width: 100%;
    height: 90px;
}
.swiper-slide img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

/* 關閉按鈕 */
.close-btn {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    cursor: pointer;
    z-index: 1001;
}

/* 自定義樣式：原地放大顯示，非全螢幕覆蓋 */
.section {
    position: relative;
    padding: 20px;
}
.inline-gallery {
    position: relative;
    width: 405px;
    cursor: pointer;
    transition: width 0.5s cubic-bezier(0.25, 1, 0.5, 1); /* 平滑寬度過渡 */
    z-index: 10;
    margin: 0 auto;
}
@media (max-width: 575.98px) {
    .inline-gallery {
    width: 100%;
}
}
.inline-gallery:not(.expanded) {
    overflow: hidden;
}
.inline-gallery.expanded {
    width: 100%; /* 展開後寬度 */
    cursor: default;
    z-index: 100;
}
.inline-gallery.expanded .swiper-slide {
    cursor: grab;
}
.inline-gallery.expanded .swiper-slide:active {
    cursor: grabbing;
}
.inline-gallery .close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 40px;
    cursor: pointer;
    z-index: 20;
    color: #333;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}
/* 展開時才顯示關閉按鈕 */
.inline-gallery.expanded .close-btn {
    opacity: 1;
    pointer-events: auto;
}
.ItemTextAll {
    width: 200px;
}
/* 縮圖時顯示 ItemText，放大後隱藏 */
.ItemText {
    opacity: 1;
}
.inline-gallery.expanded .ItemText {
    opacity: 0;
    pointer-events: none;
}
/* 覆蓋 master.css 的設定，讓圖片靠左上對齊，達成縮小時左上角固定的效果 */
.swiper-slide {
    justify-content: flex-start;
    align-items: flex-start;
}
/* 展開後樣式：高度固定，寬度自適應 */
.inline-gallery.expanded .swiper-slide {
    width: auto !important;
    height: 520px !important;
}
.inline-gallery.expanded .swiper-slide img {
    height: 100%;
    width: auto;
    max-width: none; /* 解除最大寬度限制，讓圖片依比例撐開 */
}
/* 文字區塊在展開時的固定寬度 */
.inline-gallery.expanded .swiper-slide:first-child {
    width: 100px;
}
.w-text-container {
    width: 280px;
}
.w-text-container p {
    text-align: justify;
    padding-right: 1.5rem;
}

.SwiperImg {
    width: 100%;
    height: 100%;
    border-radius: 4px;
    overflow: hidden;
    
}
.SwiperImg img {
    border-radius: 4px;
}

/* 縮圖時滑鼠滑過圖片放大效果 */
.inline-gallery:not(.expanded) .swiper-slide {
    overflow: visible; /* 允許陰影顯示 */
}
.inline-gallery:not(.expanded) .swiper-slide img {
    transition: transform 0.5s ease;
}
.inline-gallery:not(.expanded) .swiper-slide:hover img {
    transform: scale(1.15);
}
/* Swiper 小圖變輪播 */

.swiper.bannerSwiper {
    height: calc(100vh - 7rem);
}
.swiper.bannerSwiper .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.GoToDXSPACE {
    display: inline-block;
    text-decoration: none;
    color: #937463;
    font-weight: bold;
}

.OtherServicesBox {
    width: 100%;
    overflow: hidden;
}
.OtherServicesBox div {
    width: 40%;
    margin: 0 4px;
    flex: 0 0 auto;
}

.OtherServicesBox div img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow:0px 12px 20px rgba(0, 0, 0, 0.08);
}
.OtherServicesBox .BoxTop {
    margin-top: 10%;
}
.HomeDXSPACEBox {
    width: 100%;
    height: auto;
    overflow: hidden;
    flex: 0 0 auto;
}
.HomeDXSPACEText {
    width: 460px;
}
.OtherServicesBox {
    width: calc(100% - 460px);
}

@media (max-width: 1300px) {  
    .HomeDXSPACEText {
        width: 360px;
    }
    .OtherServicesBox {
        width: calc(100% - 360px);
    }
}
@media (max-width: 991.98px) {
    .HomeDXSPACEText {
        width: 100%;
    }
    .OtherServicesBox {
        width: 100%;
    }
    .HomeDXSPACEAll {
        padding-right: 0;
    }
}
@media (max-width: 767.98px) {
    .OtherServicesBox div {
        width: 44%;
    }
} 
@media (max-width: 575.98px) {
    .OtherServicesBox div {
        width: 80%;
        margin-top: 8px;
    }
    .OtherServicesBox .BoxTop {
        margin-top: 8px;
        margin-left: 14%;
    }
    
}

.footer {
    padding: 4rem 4rem;
    background-color: #DED6CC;
}
.PrivacyBtn {
    color: #000;
}
.footerNav a {
    display: inline-block;
    margin: 0 1rem;
    text-decoration: none;
    color: #454545;
}
.dis575 {
    display: none;
}

@media (max-width: 799px) {
    .footerNav a {
        margin: 0 .3rem;
    }
}

@media (max-width: 767.98px) {
    .footer {
        padding: 4rem 2rem;
    }
    .footerNav a {
        margin: 0 .3rem;
    }
}

@media (max-width: 575.98px) {
    .footer {
        padding: 4rem 1rem;
    }
    .dis575 {
        display: block;
    }
    .footerNav a {
        margin: .3rem .5rem;
    }
    .footerNav {
        text-align: center;;
    }
}

.FloatingBtn {
    position: fixed;
    bottom: 19rem;
    right: 2rem;
    z-index: 9999;
}

.scrollToBox {
    width: 64px;
    height: 64px;
    background-color: #DED6CC;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow:0px 4px 8px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}
.scrollToBox.show {
    opacity: 1;
    pointer-events: auto;
}

.GoToDXSPACEBtn {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}
.GoToDXSPACEBtn.show {
    opacity: 1;
    pointer-events: auto;
}

.GoToDXSPACEBtn a {
    display: inline-block;
    text-decoration: none;
    padding: 12px;
    /* color: #655047; */
    color: #fff;
    writing-mode: vertical-lr;
    border-radius: 4px;
    background-color: rgba(90, 70, 62, .8);
    box-shadow:0px 4px 6px rgba(0, 0, 0, 0.1);
}

@media (max-width: 575.98px) {
    .FloatingBtn {
        bottom: 30rem;
        right: 1rem;
    }
    .scrollToBox {
        width: 40px;
        height: 40px;
        /* right: 1rem;
        bottom: 29.5rem; */
        font-size: 12px;
    }
    .scrollToBox img {
        margin-top: -4px;
    }
    .scrollToBox span {
        margin-top: -7px;
    }
    .GoToDXSPACEBtn a {
        width: 40px;
        padding: 8px;
    }
}

.NavContainer {
    display: block;
}
.NavFooter {
    display: block;
}
.NavFooterMb {
    display: none;
}
@media (max-width: 991.98px) {
    .NavContainer {
        display: none;
        position: absolute;
        padding-top: 1rem;
        top: 5rem;
        left: 0;
        width: 100%;
        z-index: 9999;
        background-color: #F1F0EE;
    }
    .NavContainer ul {
        flex-direction: column;
        text-align: center;
    }
    .NavFooter {
        display: none;
    }
    .NavFooterMb {
        display: block;
    }
    .nav-list li a {
        font-size: 16px;
        margin: .5rem 0;
    }
    .NavFooterMb {
        margin-top: 1rem;
        background-color: #F8F6F4;
        padding: 1.2rem 2rem;
        box-shadow:0px 4px 6px rgba(0, 0, 0, 0.08);
    }
    .btn-PearlBush300 {
        padding: 6px 20px;
        font-size: 16px;
    }
    .btn-PearlBush900 {
        padding: 6px 4px;
        font-size: 16px;
    }
}

.AboutJoyceBox {
    padding: 4rem 0;
}
.LatesNewsBox {
    padding: 4rem 0;
}
.AboutJoyceImg {
    max-width: 343px;
    height: auto;
}
.AboutJoyceImg img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow:0px 12px 20px rgba(0, 0, 0, 0.1);
}

.AboutJoyceContent {
    /* max-width: 456px; */
    border-left: 1px solid #C8BAA9;
    padding: 2rem 0 2rem 1rem;
    text-align: justify;
}

@media (max-width: 991.98px) {
    .LatesNewsBox {
        padding: 3rem 0 2rem 0;
    }
    .AboutJoyceBox {
        padding: 3rem 0;
    }
} 
@media (max-width: 767.98px) {
    .AboutJoyceImg {
        max-width: 100%;
    }
    .AboutJoyceContent {
        max-width: 100%;
        border-left: 1px solid #C8BAA9;
        padding: 0rem 0 0rem 1rem;
    }
}

:root {
    --bg-page: #F8F6F4;
    --bg-carder: #F8F6F4;
    --text-primary: #5d4a41;
    --text-secondary: #8c7365;
    --border-color: #d9d0c7;
    --side-width: 47px; /* 行動端側邊欄寬度縮小一點 */
    --transition-speed: 0.6s;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent; /* 移除手機點擊陰影 */
}

/* 外層容器：在手機上允許內容溢出或微調寬度 */
.accordion-container {
    display: flex;
    width: 100%;
    height: 400px;
    /* background: var(--bg-carder); */
    border: 1px solid var(--border-color);
    overflow: hidden;
    /* box-shadow: 0 10px 30px rgba(0,0,0,0.05); */
}

/* 單個卡片項目 */
.carder {
    display: flex;
    flex: 0 0 var(--side-width); 
    cursor: pointer;
    transition: flex var(--transition-speed) cubic-bezier(0.25, 1, 0.5, 1);
    border-right: 1px solid var(--border-color);
    overflow: hidden;
    background-color: #F8F6F4;
}

.carder:last-child {
    border-right: none;
}

.carder.active {
    flex: 1; /* 佔滿剩餘空間 */
    background-color: #EEEBE9;
    min-width: 200px; /* 確保展開後至少有足夠寬度顯示文字 */
}

/* 側邊欄 */
.side-bar {
    width: var(--side-width);
    min-width: var(--side-width);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
}

.num {
    /* font-size: 18px; */
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: 15px;
}

.line {
    width: 1px;
    height: 20px;
    background-color: var(--border-color);
    margin-bottom: 15px;
}

.vertical-text {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    color: #A0846F;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 11px;
    flex-grow: 1;
}

.icon {
    font-size: 18px;
    margin-top: 15px;
}

/* 主要內容區 */
.main-content {
    padding: 30px;
    opacity: 0;
    transform: translateX(10px);
    transition: opacity 0.3s ease, transform 0.4s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* overflow: hidden; 防止文字溢出 */
    width: 100%;
}

.bg-1 {
    background-image: url(../images/Columnbg01.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: -96px center;
}
.bg-2 {
    background-image: url(../images/Columnbg02.jpg);
    background-repeat: no-repeat;
    background-size: 100% 100%;
    background-position: center;
}
.bg-3 {
    background-image: url(../images/Columnbg03.jpg);
    background-repeat: no-repeat;
    background-size: 100% 100%;
    background-position: center;
}

.carder.active .main-content {
    opacity: 1;
    transform: translateX(0);
}

.main-content h2 {
    font-size: 24px;
    color: var(--text-secondary);
    margin-bottom: 5px;
    white-space: nowrap;
}

.main-content h3 {
    font-size: 18px;
    margin-bottom: 15px;
}

.main-content p {
    line-height: 1.6;
    font-size: 14px;
    color: #777;
    max-width: 720px;
    /* 防止行動端文字過長導致撐破佈局 */
    display: -webkit-box;
    -webkit-line-clamp: 6; 
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 桌面版微調 (螢幕寬度 > 768px) */
@media (min-width: 769px) {
    :root { --side-width: 90px; }
    .accordion-container { height: 320px; }
    /* .main-content { padding: 50px 60px; } */
    .main-content h2 { font-size: 36px; }
    .main-content h3 { font-size: 22px; }
    .vertical-text { font-size: 13px; }
    
}

@media (max-width: 767.98px) {
    .icon img {
        width: 26px; 
        height: auto;
    }
    .main-content p { 
        max-width: 100%;
        font-size: 15px;
        text-align: justify;
        -webkit-line-clamp: unset; 
    }
}

.MilestonesBox {
    border-left: 1px solid #C8BAA9;
    padding-left: 2rem;
}

.MilestonesContent li {
    list-style-type: disc;
    margin-left: 1.2rem;
    line-height: 24px;
    color: #525252;
}

.BackToHomeBtn {
    display: inline-block;
    text-decoration: none;
    color: #000;
    padding: 1rem;
    border-bottom: 1px solid #000;
}

.BackToHomeBtn:hover {
    color: #000;
}

@media (max-width: 767.98px) {
    .MilestonesBox {
        padding-left: 1rem;
    }
}

.MethodologyTitle p {
    width: 796px;
    margin: 0 auto;
}

@media (max-width: 991.98px) {
    .MethodologyTitle p {
        width: 100%;
    }
}

.TECHNOLOGYBox {
    background-color: #F8F6F4;
    padding: 1.5rem;
}

.TECHNOLOGYImg img {
    max-width: 100%;
    height: auto;
}

@media (max-width: 991.98px) {
    .TECHNOLOGYImg img {
        width: 100%;
        height: auto;
    }
}

.ImgBox {
    width: 100%;
    height: auto;
}
.ImgBox img {
    width: 100%;
    height: auto;
}

.WorkfloeBox {
    padding: 2.5rem;
    margin-top: 2rem;
    border-bottom: 1px solid #C8BAA9;
}
.WorkfloeBox:hover {
    background-color: #fff;
}

.WorkfloeBox .WorkfloeNumber {
    width: 35%;
    font-size: 100px;
    font-weight: bold;
    color: #DED6CC;
    margin: 0;
    padding: 0;
    display: flex;
    padding-left: 4rem;
    flex: 0 0 auto;
}
.WorkfloeContent {
    padding-right: 3rem;
}
.WorkfloeContent h3 {
    font-size: 40px;
    font-weight: bolder;
    color: #A0846F;
}
.WorkfloeContent h4 {
    font-size: 32px;
}
.WorkfloeContent p {
    color: #454545;
    text-align: justify;
}

@media (max-width: 767.98px) {
    .WorkfloeBox {
        padding: 2rem 1rem;
        margin-top: 2rem;
        border-bottom: 1px solid #C8BAA9;
    }
    .WorkfloeBox .WorkfloeNumber {
        width: 100%;
        font-size: 56px;
        padding-left: 0;
    }
    .WorkfloeContent h3 {
        font-size: 24px;
    }
    .WorkfloeContent h4 {
        font-size: 20px;
    }
    .WorkfloeContent {
        padding-right: 0;
    }
}

.NewsBox {
    width: 630px;
}

.NewsListBtn a {
    display: inline-block;
    width: 60px;
    text-decoration: none;
    text-align: center;
    padding: .3rem 0;
    margin: 0 .2rem;
    color: #000;
}
.NewsListBtn a:hover {
    color: #7B6053;
}
.NewsListBtn a.active {
    color: #7B6053;
    border-bottom: 1px solid #7B6053;
}
.NewsListBtn a.active:hover {
    color: #7B6053;
    border-bottom: 1px solid #7B6053;
}

@media (max-width: 991.98px) {
    .NewsBox {
        width: 100%;
    }
}

.NewsImgBox {
    height: 0;
    padding-bottom: 67%;
    position: relative;
}
.NewsImgBox .NewsImg {
    height: 100%;
    left: 0;
    position: absolute;
    top: 0;
    width: 100%;
    border-radius: 4px;
    overflow: hidden;
    background-color: #fff;
    box-shadow:0px 12px 20px rgba(0, 0, 0, 0.1);
}
.NewsImgBox .NewsImg img {
    width: 100%;
    height: auto;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}
.NewsItemBox {
    border-bottom: 1px solid #C8BAA9;
    padding-bottom: 1.5rem;
}
.NewsItemBox span {
    display: inline-block;
    font-size: 14px;
    color: #937463;
}
.NewsItemBox h3 a {
    text-decoration: none;
    color: #000;
    font-size: 20px;
    font-weight: bolder;
}
.PageNav a {
    display: inline-block;
    text-decoration: none;
    color: #828282;
    padding: .3rem .2rem;
    margin: 0 .2rem;
}
.PageNav a:hover {
    color: #655047;
}
.PageNav a.active {
    color: #655047;
    border-bottom: 2px solid #655047;
}

.NewsTopImgAll {
    padding: 1rem;
}


.NewsTopImg {
    position: relative;
    width: 100%;
    height: 460px;
    border-radius: 4px;
    overflow: hidden;
}
.NewsTopImg img {
    width: auto;
    height: 100%;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
} 

.LabelBox {
    background-color: #DED6CC;
    color: #655047;
    padding: .3rem .8rem;
}
.NewsPage h1 {
    line-height: 70px;
    margin: 0;
}
.NewsPageSlogan {
    border-left: 2px solid #454545;
    padding-left: 1rem;
    margin-top: 4rem;
}
.NewsPageSlogan p {
    margin: 0;
    padding: .1rem 0;
}
.NewsPageContent p {
    margin-bottom: 1.5rem;
}
.NewsPageBottom a {
    text-decoration: none;
    padding: .3rem 1rem;
    border: 1px solid #937463;
    color: #937463;
    border-radius: 8px;
}
@media (max-width: 991.98px) {
    .NewsPage h1 {
        line-height: 60px;
    }
}
@media (max-width: 767.98px) {
    .NewsPage h1 {
        line-height: 40px;
    }
}

.NewsPageBox {
    padding-bottom: 48%;
}
@media (max-width: 991.98px) {
    .NewsPageBox {
        padding-bottom: 67%;
    }
    .PortfolioLeft {
        display: none;
    }
}

/* .MethodologyTitle {
    padding: 0;
} */

.PortfolioBg {
    background-image: url(../images/Headingbg.png);
    background-repeat: no-repeat;
    background-position: 2% 20%; 
}

.PortfolioItem {
    max-width: 880px;
    margin: 0 auto;
}

.PortfolioImgBox {
    height: 0;
    padding-bottom: 57%;
    position: relative;
}
.PortfolioImgBox .PortfolioImg {
    height: 100%;
    left: 0;
    position: absolute;
    top: 0;
    width: 100%;
    border-radius: 4px;
    overflow: hidden;
    box-shadow:0px 12px 20px rgba(0, 0, 0, 0.1);
}
.PortfolioImgBox .PortfolioImg img {
    width: 100%;
    height: auto;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

@media (max-width: 991.98px) {
    .PortfolioImgBox {
        padding-bottom: 48%;
    }
}

@media (max-width: 767.98px) {
    .PortfolioImgBox {
        padding-bottom: 57%;
    }
}

.PortfolioPageTopImg {
    position: relative;
    width: 100%;
    height: auto;
    overflow: hidden;
}

.PortfolioPageTopImg img {
    width: 100%;
    height: auto;
}
.PortfolioPageTitle {
    padding: 4rem 0 2rem 0;
}

.line-left, .line-right {
    width: 2px;
    height: 40px;
    background-color: #DED6CC;
}

.info-item {
    margin-left: -2px;
}

.label {
    color: #828282;
    font-weight: 300;
    text-align: center;
}

.value {
    color: #454545;
    text-align: center;
    margin-top: 6px;
}

@media (max-width: 767.98px) {
    .info-item {
        width: 100%;
    }
}

.NarrowImg {
    height: 100%;
}
.NarrowImg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.viewBtn {
    text-decoration: none;
    color: #fff;
    background-color: #C8BAA9;
    padding: 4px 20px;
    border-radius: 8px;
}
.viewBtn:hover {
    color: #fff;
}

.AwardsContent {
    padding: 4rem 0 5rem 0;
}

@media (max-width: 767.98px) {
    .viewBtn {
        padding: 4px 8px 6px 8px;
        border-radius: 8px;
    }
}
.ProvacyBox {
    padding: 5rem 1rem;
}
.ProvacyBox ul li {
    list-style-type: disc;
    margin-left: 1.2rem;
}

.ContactTitle span {
    display: inline-block;
}

.ContactInput {
    border-bottom: 1px solid #B09A87;
    padding-bottom: 4px;
    transition: border-color 0.3s;
}
.ContactInput:focus-within {
    border-bottom: 1px solid #53413B;
}
.ContactInput input {
    display: block;
    width: 100%;
    height: 42px;
    padding: 0.3rem .5rem;
    border: 0;
    background: none;
}
.ContactInput input:focus {
    border: 0;
    outline: none;
}

.ContactInput select {
    display: block;
    width: 100%;
    height: 42px;
    padding: 0.3rem .5rem;
    border: 0;
    background: none;
}
.ContactInput select:focus {
    border: 0;
    outline: none;
}
.ContactInput textarea {
    display: block;
    width: 100%;
    height: 42px;
    padding: 0.3rem .5rem;
    border: 0;
    background: none;
}
.ContactInput textarea:focus {
    border: 0;
    outline: none;
}

.Contact_DXBox {
    background-color: #EFEEEB;
    padding: 1rem;
}

.ContactBg {
    width: 100%;
    height: 376px;
    background-image: url(../images/contactBg.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}
.ContactBg p {
    letter-spacing: 1px;
}
.ContactBg a {
    text-decoration: none;
    color: #fff;
    border-bottom: 1px solid #fff;
    padding: 1rem 1.5rem;
}
.ContactBg a:hover {
    color: #fff
}

@media (max-width: 991.98px) {
    .ContactBg {
        background-image: url(../images/contactBgmd.jpg);
    }
}
@media (max-width: 767.98px) {
    .ContactBg {
        background-image: url(../images/contactBgsm.jpg);
    }
} 
