/* 全局樣式 */
body {
    font-family: 'Arial', sans-serif;
    color: #333;
}

/* 頂部資訊樣式 */
.top-info {
    font-size: 0.85rem;
}

/* 導航欄樣式 */
.navbar {
    padding: 0.5rem 1rem;
}

.navbar-brand img {
    max-height: 40px;
}

/* 滑塊樣式 */
.main-slider {
    height: auto;
    overflow: hidden;
}

.slider-image img {
    object-fit: cover;
    width: 100%;
    max-height: 600px;
}

.slider-overlay {
    background-color: rgba(0, 0, 0, 0.3);
}

/* 產品卡片樣式 */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.card img {
    height: 250px;
    object-fit: cover;
}

/* 圖庫項目樣式 */
.gallery-item {
    cursor: pointer;
    overflow: hidden;
    border-radius: 4px;
}

.gallery-item img {
    transition: transform 0.5s ease;
}

.gallery-overlay {
    transition: opacity 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1 !important;
}

/* 頁尾樣式 */
footer a {
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: #4CAF50 !important;
}

/* 響應式調整 */
@media (max-width: 767.98px) {
    .slider-overlay h2 {
        font-size: 1.5rem;
    }
    
    .slider-overlay p {
        font-size: 1rem;
    }
}

@media (max-width: 575.98px) {
    .slider-overlay h2 {
        font-size: 1.25rem;
    }
    
    .slider-overlay p {
        font-size: 0.875rem;
    }
}

/* 輪播樣式 */
.carousel-item {
    height: 400px;
}

.carousel-item img {
    object-fit: cover;
    height: 100%;
    width: 100%;
}

/* 修改：將圖文框位置固定在中間偏下位置 */
.carousel-caption {
    bottom: 30%;
    left: 0;
    right: 0;
    width: 100%;
    margin: 0 auto;
    padding: 0;
}

.carousel-indicators {
    margin-bottom: 1rem;
}

.carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 5px;
}

.carousel-control-prev,
.carousel-control-next {
    width: 5%;
    opacity: 0.7;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 1;
}

/* 輪播動畫延遲 */
.carousel-item img {
    animation: fadeIn 3s ease-out;
}

.carousel-item.active .animate__animated {
    animation-delay: 0.5s;
    animation-duration: 2s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* 響應式調整 */
@media (max-width: 767.98px) {
    .carousel-item {
        height: 350px;
    }
    
    .carousel-caption .bg-success {
        padding: 15px !important;
    }
    
    .carousel-caption h2 {
        font-size: 1.5rem;
    }
    
    .carousel-caption p {
        font-size: 1rem;
    }
}

@media (max-width: 575.98px) {
    .carousel-item {
        height: 250px;
    }
    
    .carousel-caption .bg-success {
        padding: 10px !important;
    }
    
    .carousel-caption h2 {
        font-size: 1.25rem;
        margin-bottom: 0.5rem !important;
    }
    
    .carousel-caption p {
        font-size: 0.875rem;
    }
}
