/* 產品/作品詳情頁圖片輪播樣式 */
.image-gallery {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    height: 100%;
}

.product-image-swiper,
.portfolio-image-swiper {
    width: 100%;
    height: 400px;
    border-radius: 0;  /* 移除圓角 */
    overflow: hidden;
    box-shadow: none;  /* 移除陰影 */
}

.swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
}

.swiper-slide img {
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
       object-fit: cover;
    cursor: pointer;
    transition: transform 0.3s ease;
    border-radius: 0;  /* 移除圓角 */
}

.swiper-slide img:hover {
    transform: scale(1.05);
}

/* 統一導航按鈕樣式 - 符合專案綠色主題 */
.swiper-button-next,
.swiper-button-prev {
    color: #2e7d32 !important;
    background: rgba(255, 255, 255, 0.95);
    width: 48px !important;
    height: 48px !important;
    border-radius: 50%;
    border: 2px solid rgba(46, 125, 50, 0.1);
    box-shadow: none;  /* 移除陰影 */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0.8;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background: #2e7d32;
    color: #ffffff !important;
    border-color: #2e7d32;
    transform: scale(1.1) translateY(-2px);
    box-shadow: none;  /* 移除懸停陰影 */
    opacity: 1;
}

.swiper-button-next::after,
.swiper-button-prev::after {
    font-size: 16px !important;
    font-weight: 600;
}

/* 統一分頁器樣式 - 符合專案綠色主題 */
.swiper-pagination {
    bottom: 15px !important;
}

.swiper-pagination-bullet {
    background: rgba(255, 255, 255, 0.7) !important;
    opacity: 1 !important;
    width: 10px !important;
    height: 10px !important;
    border: 2px solid rgba(46, 125, 50, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin: 0 4px !important;
}

.swiper-pagination-bullet-active {
    background: #2e7d32 !important;
    border-color: rgba(255, 255, 255, 0.9);
    transform: scale(1.3);
    box-shadow: none;  /* 移除陰影 */
}

/* 單圖顯示樣式 */
.single-image {
    width: 100%;
    max-width: 600px;
    height: 400px;
    border-radius: 0;  /* 移除圓角 */
    overflow: hidden;
    box-shadow: none;  /* 移除陰影 */
    margin: 0 auto;
}

.single-image img {
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
       object-fit: cover;
    cursor: pointer;
    transition: transform 0.3s ease;
    border-radius: 0;  /* 移除圓角 */
}

.single-image img:hover {
    transform: scale(1.05);
}

/* 響應式設計 */
@media (max-width: 768px) {
    .product-image-swiper,
    .portfolio-image-swiper,
    .single-image {
        height: 300px;
        border-radius: 0;  /* 移除圓角 */
    }
    
    .swiper-button-next,
    .swiper-button-prev {
        width: 42px !important;
        height: 42px !important;
        border-width: 1px;
    }
    
    .swiper-button-next::after,
    .swiper-button-prev::after {
        font-size: 14px !important;
    }
    
    .swiper-pagination-bullet {
        width: 8px !important;
        height: 8px !important;
        margin: 0 3px !important;
    }
    
    .swiper-pagination {
        bottom: 12px !important;
    }
}
