.objectA {
    height: 250px; /* 固定高度 */
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid #ddd; /* 可選的邊框 */
    border-radius: 10px; /* 可選的圓角 */
    background-color: #f9f9f9; /* 背景色 */
    overflow: hidden;
}

.objectA img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain; /* 讓圖片完整顯示，長寬比不變 */
    display: block;
}
.slideshow-container {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide.active {
    opacity: 1;
    z-index: 1;
}

.indicators {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.dot {
    display: inline-block;
    height: 12px;
    width: 12px;
    margin: 0 6px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s;
}

.dot.active {
    background-color: #fff;
}
#intro {
    width: 100%;
    position: relative;
    overflow: hidden;
}



/* 手機版（寬度小於768px）改為完整顯示圖片比例 */
.slide {
    width: 100%;
    height: 80vh; /* 例如滿版的 80% 高度，可依需求調整 */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* 手機版 */
@media (max-width: 768px) {
    .slide {
        aspect-ratio: 4 / 3; /* 根據圖片實際比例調整，例如 16/9 或 3/2 */
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
        background-color: #000;
        height: auto;
        padding: 0; /* 確保不再使用 padding-bottom 增加額外高度 */
    }
}