/* Showcase主區塊：去除黑色背景，使用透明文字區貼圖底部 */
.section-showcase {
    padding: 2rem 1rem;
    color: #222;
    /* 改為深灰文字色以配合無黑底 */
}

/* 標題：居中並留較小間距 */
.section-title {
    font-size: 2rem;
    margin-bottom: 1rem;
    text-align: center;
}

/* 分頁按鈕列：彩色背景 + 固定寬度 + RWD適應 */
.tab-bar {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.tab-button {
    width: 230px;
    padding: 0.6rem 1rem;
    font-size: 1.5rem;
    font-weight: 600;
    border: none;
    border-radius: 125px;
    color: white;
    cursor: pointer;
    background: linear-gradient(45deg, #17727e, #4ecdc4, #182de9, #96ceb4, #5f4e15);
    background: linear-gradient(45deg, #17727e, #4ecdc4, #182de9, #96ceb4, #5f4e15);
    background: linear-gradient(45deg, #b87333, #dcb17b, #b87333, #dcb17b);
    background-size: 300% 300%;
    animation: gradientShift 3s ease infinite;
    transition: all 0.3s ease;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.2);
    text-align: center;
}

.tab-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
}

.tab-button.active {
    background: linear-gradient(45deg, #990a8d, #d10000, #7735ce, #d10000);
    background: linear-gradient(135deg, #9b111e, #e0115f, #9b111e, #e0115f);
    animation: gradientShift 3s ease infinite;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    transform: translateY(-2px);
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Showcase容器：橫向滾動，減少整體高度 */
.showcase-container {
    height: calc(100vh - 300px);
    /* 明顯降低整體高度 */
    overflow-x: auto;
    overflow-y: hidden;
    padding: 1.5rem 0;
}

/* 橫向排列表：貼齊底線顯示 */
.showcase-list {
    display: flex;
    gap: 1.5rem;
    padding: 0 1.5rem;
    min-width: fit-content;
    height: 100%;
}

/* 每個項目容器：縮小比例，維持2列桌面與1列手機 */
.showcase-item {
    flex-shrink: 0;
    width: calc(50% - 0.75rem);
    height: 100%;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
    transition: transform 0.3s ease;
}

.showcase-item:hover {
    transform: translateY(-4px);
}

.fullscreen-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    cursor: zoom-out;
}

.fullscreen-image {
    max-width: 100vw;
    max-height: 100vh;
    object-fit: contain;
}


/* 手機版RWD單列寬度 */
@media (max-width: 768px) {
    .showcase-item {
        width: calc(100vw - 4rem);
    }

    .showcase-container {
        height: calc(100vh - 140px);
    }
}

/* 圖片區：佔據全高，文字overlay底部疊圖上 */
.showcase-image {
    width: 100%;
    height: 100%;
    position: relative;
}

.showcase-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.showcase-item:hover .showcase-image img {
    transform: scale(1.05);
}

/* 文字Overlay：貼齊底部，移除黑色漸層背景 */
.showcase-text {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: 0.8rem 1rem;
    background: rgba(255, 255, 255, 0.75);
    /* 半透明白底提高可讀性 */
    backdrop-filter: blur(4px);
    /* 模糊背景避免干擾 */
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

/* 主標題樣式：加深字色與陰影以凸顯 */
.showcase-text h3 {
    font-size: 2rem;
    font-weight: 700;
    color: #111;
    margin: 0 0 0.3rem;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.6);
}

/* 副文字樣式：深灰文字 */
.showcase-text p {
    font-size: 1.2rem;
    color: #333;
    margin: 0;
    line-height: 1.4;
}

/* 自訂橫向滾動條樣式 */
.showcase-container::-webkit-scrollbar {
    height: 8px;
}

.showcase-container::-webkit-scrollbar-track {
    background: rgba(200, 200, 200, 0.2);
    border-radius: 4px;
}

.showcase-container::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, #667eea, #764ba2);
    background: linear-gradient(135deg, #9b111e, #e0115f, #9b111e, #e0115f);
    border-radius: 4px;
}

.showcase-container::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(45deg, #764ba2, #667eea);
}

/* 取消Fade效果相關樣式 */
.showcase-fade {
    display: none;
}