* {
    padding: 0px;
    /*內邊距 */
    margin: 0px;
    /*外邊距*/
    border: 0px;
    /*邊框*/
}

.slideshow-container {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.slideshow-container::-webkit-scrollbar {
    display: none;
}

.slide-track {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    transition: all 0.4s ease-in-out;
    display: none;
    will-change: transform;
    overflow: hidden;
}

@keyframes slideLeft {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0);
    }
}

@keyframes slideRight {
    from {
        transform: translateX(-100%);
    }
    to {
        transform: translateX(0);
    }
}

.slide.next {
    display: block;
    transform: translateX(100%);
    z-index: 1;
}

.slide.active {
    display: block;
    transform: translateX(0);
    z-index: 1;
}

.slide.prev {
    display: block;
    transform: translateX(-100%);
    z-index: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    display: block;
}

.slide-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) !important;
    text-align: center;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    z-index: 3;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 20px;
    border-radius: 10px;
    width: 80%;
    max-width: 600px;
    pointer-events: auto;
}


.slide-text h2 {
    font-size: 40px;
    margin-bottom: 20px;
}

.slide-text p {
    font-size: 20px;
    margin-bottom: 15px;
}

.slide-text a {
    pointer-events: auto;
    display: inline-block;
    padding: 10px 20px;
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.slide-text a:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

.prev,
.next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: 50px;
    height: 50px;
    transform: translateY(-50%);
    margin-top: -25px;
    color: white;
    font-weight: bold;
    font-size: 24px;
    transition: all 0.3s ease;
    border-radius: 5px;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.prev {
    left: 0;
}

.next {
    right: 0;
}

.prev:hover,
.next:hover {
    background-color: rgba(145, 145, 145, 0.8);
    transform: translateY(-50%) scale(1.1);
}

.dots {
    position: absolute;
    bottom: 20px;
    width: 100%;
    text-align: center;
    z-index: 2;
}

.dot {
    cursor: pointer;
    height: 12px;
    width: 12px;
    margin: 0 5px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.6s ease;
}

.dot.active,
.dot:hover {
    background-color: white;
}

.welcome {
    position: relative;
    width: 100%;
    height: 100vh;
}

.slogan {
    background-color: #000000;
    color: white;
    height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 30px;
    line-height: 1.8em;
    margin-top: -4px;
}

.shop {
    display: flex;
}

.info {
    width: 50%;
    background-color: #302f2f;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 50px 20px;
}

.info h2 {
    font-size: 45px;
    margin-bottom: 30px;
    color: #cacaca;
}

.info p {
    font-size: 25px;
    text-align: center;
    line-height: 2em;
    color: #afafaf;
}

.info a {
    font-size: 20px;
    color: white;
    text-decoration: none;
    border: 1px solid #d3c2a7;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 20px;
}

.info a:hover {
    background-color: #d1d1d1;
    color: #000000;
}

.shop img {
    width: 50%;
    height: auto;
    object-fit: cover;
}

.product {
    display: flex;
    background-color: #141414;
    justify-content: space-between;
    align-items: center;
    padding: 60px 20px;
}

.product div {
    width: 30%;
    text-align: center;
    margin: 0 10px;
}

.product img {
    width: 100%;
    max-width: 350px;
    height: 250px;
    border-radius: 10px;
    object-fit: cover; 
}

.product h3 {
    color: rgb(192, 192, 192);
    font-size: 25px;
    margin: 20px 0;
}

.product p {
    color: rgb(145, 145, 145);
    font-size: 15px;
    line-height: 1.6em;
}

footer {
    background-color: #000000;
    color: rgb(153, 147, 147);
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 14px;
}

/* 響應式設計與法 */
@media screen and (max-width: 768px) {

    .slide-text h2 {
        font-size: 30px;
    }

    .slide-text p {
        font-size: 18px;
    }

    .slide-text a {
        font-size: 13px;
        padding: 8px 10px;
    }

    .shop {
        flex-direction: column-reverse;
    }

    .shop img {
        width: 100%;
    }

    .info {
        width: 100%;
        padding: 50px 0;
    }

    .info h2 {
        font-size: 30px;
        color: #cacaca;
    }

    .info p {
        font-size: 18px;
        color: #afafaf;
    }

    .product {
        flex-direction: column;
        padding: 60px 0;
    }

    .product div {
        width: 90%;
        margin-bottom: 50px;
    }
}