/* 底部紋理背景模擬 */
.bg03 {
    background-position: right top;
    background-image: url(../images/bg03.png) !important;
    background-repeat: no-repeat;


}
.footerbox{
    background-color: #3c5443;
    color: #b8a58b;
}
.footerlink a{
    padding: 0 8px;
    display: inline-block;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
}
.footerlink a:hover{
    padding: 0 8px;
    transform: translateY(-8px);
}
.footerlink a img{
    max-width: 60px;
    vertical-align: middle;
    transition: transform 0.3s ease;
}


/* =========================================
   日日實績區塊 (Our Work) 專用樣式
========================================= */

/* 文字間距輔助類別 */
.letter-spacing-wide {
    letter-spacing: 0.5rem;
}
.letter-spacing-normal {
    letter-spacing: 0.2rem;
}
.letter-spacing-sm {
    letter-spacing: 0.08rem;
}

/* 文字對齊修正 */
.text-justify {
    text-align: justify;
    text-justify: inter-ideograph;
}

/* 直式排版 (Mobile-first 思維：預設橫式，桌機才轉直式) */
.vertical-text-desktop {
    writing-mode: horizontal-tb;
    text-align: center;
}

@media (min-width: 992px) {
    .vertical-text-desktop {
        writing-mode: vertical-rl;
        text-orientation: mixed;
        text-align: left;
    }
}

/* =========================================
   客製化 Bootstrap Tabs (4顆按鈕外觀)
========================================= */
.custom-work-tabs {
    border-bottom: 1px solid rgba(226, 223, 216, 0.4); /* 底部細分隔線 */
}

/* 為了讓手機板按鈕太多的時候可以橫向滑動，不被擠成兩行 */
@media (max-width: 767px) {
    .custom-work-tabs {
        justify-content: flex-start !important;
        padding-bottom: 10px;
    }
    .custom-work-tabs::-webkit-scrollbar {
        height: 4px;
    }
    .custom-work-tabs::-webkit-scrollbar-thumb {
        background: rgba(255,255,255,0.2);
        border-radius: 4px;
    }
}

.custom-work-tabs .nav-link {
    color: var(--text-color);
    font-size: 0.85rem;
    letter-spacing: 0.1rem;
    opacity: 0.5;
    padding: 1rem 1.5rem;
    transition: all 0.3s ease;
    white-space: nowrap; /* 確保中日文與英文不斷行 */
    text-align: left;
}

.custom-work-tabs .nav-link:hover {
    opacity: 0.8;
}

/* 啟動狀態的按鈕 */
.custom-work-tabs .nav-link.active {
    color: #ffffff !important;
    opacity: 1;
    font-weight: 400;
}

/* 按鈕下方的英文子標題 */
.custom-work-tabs .tab-en {
    font-family: 'Noto Sans TC', sans-serif;
    font-size: 0.75rem;
    color: var(--footer-bg); /* 利用您原本定義的沙色 */
    display: block;
    margin-top: 0.3rem;
}

/* 啟動時英文跟著變色 */
.custom-work-tabs .nav-link.active .tab-en {
    color: #ffffff;
}