﻿/*css/carousel.css*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --brand-red: #d32f2f;
    --white: #ffffff;
}

/*body {*/
    /*background: #000;*/
/*}*/

/* 輪播容器 */
.carousel {
    position: relative;
    width: 100%;
    height: 90vh;
    overflow: hidden;
    background: #000;
}

.carousel-inner {
    position: relative;
    width: 100%;
    height: 100%;
}

/* 幻燈片 */
.carousel-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    pointer-events: none;
}

    .carousel-item.active {
        opacity: 1;
        pointer-events: auto;
        z-index: 1;
    }

/* 圖片連結 */
.slide-link {
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    cursor: pointer;
}

    .slide-link img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        pointer-events: none;
    }

/* 遮罩層（保留結構） */
.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    pointer-events: none;
}

/* 內容區塊（保留結構） */
.slide-content {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    z-index: 3;
    pointer-events: none;
}

.slide-content-inner {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: 0 60px;
}

/* 指示器 */
.dots {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 30px;
    display: flex;
    gap: 8px;
    z-index: 10;
}

.dot {
    width: 40px;
    height: 3px;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    border: none;
    padding: 3px;
    transition: all 0.4s ease;
}

    .dot:hover {
        background: rgba(255, 255, 255, 0.7);
    }

    .dot.active {
        background: #ffffff;
        width: 70px;
    }

/* 響應式 - 平板 */
@media (max-width: 1024px) {
    .slide-content-inner {
        padding: 0 40px;
    }
}

/* 響應式 */
@media (max-width: 768px) {
    .dots {
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        bottom: 20px;
    }

    .dot {
        width: 24px;
    }

        .dot.active {
            width: 40px;
        }
}
/* 減少動效 */
@media (prefers-reduced-motion: reduce) {
    .carousel-item,
    .dot {
        transition: none;
    }
}


