body {
    width: 100%;
    background-size: cover;
    /* 確保背景圖片覆蓋整個視窗 */
    background-repeat: no-repeat;
    background-attachment: fixed;
    overflow-x: hidden;
}




#mainmenu {
    width: 100%;
}

html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
}


@media (max-width: 768px) {


    body {
        overflow-x: hidden;
    }
}

@media (max-width: 576px) {


    body {
        overflow-x: hidden;
    }
}



.about-title {
    font-weight: bolder;
}

/* 響應式調整 */
@media (max-width: 992px) {


    .collapse {
        width: 100%;
    }




}

@media (max-width: 768px) {


    .carousel-text {
        font-size: 18px;
        /* 平板縮小 */
    }

    .carousel-desc {
        font-size: 16px;
    }

    .carousel-text {
        font-size: 1.2rem;
    }

    .carousel-desc {
        font-size: 0.9rem;
    }

    .about-text {
        font-size: 1rem;
        padding-top: 20px;
    }

    .about-title {
        font-size: 30px;
    }




}

@media (max-width: 576px) {


    .carousel-text {
        font-size: 16px;
        /* 手機更小 */
        text-align: center;
    }

    .carousel-desc {
        font-size: 14px;
        text-align: center;
    }

    .carousel-text {
        font-size: 1rem;
    }

    .carousel-desc {
        font-size: 0.8rem;
    }

    .about-text {
        font-size: 0.9rem;
        padding-top: 15px;
    }

    .about-title {
        font-size: 25px;
    }




}


/* 讓輪播的圖片填滿螢幕寬度 */
.carousel {
    width: 100%;
}

/* 讓圖片不會被壓縮，保持高寬比 */
.carousel img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* 文字大小適應不同裝置 */
.carousel-text {
    font-size: 24px;
    margin-bottom: 10px;
}

.carousel-desc {
    font-size: 18px;
}

/* RWD 設定 */



#content {
    width: 100%;
    background-color: #ffffff;
    height: auto;
    /* margin-bottom: 100px; */
    margin-top: 0;
}



h2 {
    text-align: center;
    position: relative;
    font-size: 2em;
    margin: 20px 0;
}

h2::before,
h2::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 35%;
    border-top: 2px solid black;
}

h2::before {
    left: 0;
}

h2::after {
    right: 0;
}


#footer {
    background-color: #292955;
    ;
    color: #fff;
    margin-top: auto;
    height: 2rem;
    width: 100%;
}

h3 {
    font-size: 20px;
    font-weight: bolder;
    text-align: start;
}

.pt {
    font-size: 16px;
    text-align: start;
    padding-top: 5px;
}





.ccr {

    text-align: right;
    /* 文字對齊右邊 */
    text-shadow: 1px 1px 10px black;
    padding-bottom: 150px;
}

.ccl {
    text-align: left;
    /* 文字對齊右邊 */
    text-shadow: 1px 1px 10px black;
    padding-bottom: 150px;
}

.about {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    width: 90%;
    height: 675px;
    margin: 2rem auto;
    text-align: start;
    /* 讓文字內容對齊左側 */
    background-image: url(../../images/guest/about.png);
    font-size: 24px;
    position: relative;
    display: flex;
    flex-direction: column;
    /* 使內容垂直排列 */
    justify-content: center;
    /* 垂直居中 */
    align-items: flex-start;
    /* 水平左對齊 */
    padding-left: 3%;
}

.about-text,
.about-title {
    position: relative;
    z-index: 2;
    color: #000;
}

.about-title {
    margin-bottom: 20px;
    /* 調整標題和文字之間的間距 */
}

.about-text {
    max-width: 600px;
    /* 限制文字區塊寬度 */
}



@media (max-width: 1024px) {
    .about {
        height: 550px;
        font-size: 22px;
        text-align: center;
        padding-left: 0;
        justify-content: center;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .about {
        height: 450px;
        font-size: 20px;
        padding: 0;
        margin: 0;
    }

    .about::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(255, 255, 255, 0.5);
        /* 背景變淡但不影響文字 */
        z-index: 1;
    }

    .about-text {
        font-size: 1rem;
        padding-top: 20px;
    }

    .about-title {
        font-size: 30px;
    }

    .pbg {
        background-image: none;
    }
}

@media (max-width: 576px) {
    .about {
        height: 350px;
        font-size: 18px;
    }

    .about::before {
        background: rgba(255, 255, 255, 0.7);
        /* 更淡的背景 */
    }

    .about-text {
        font-size: 0.9rem;
        padding-top: 15px;
    }

    .about-title {
        font-size: 25px;
    }

    .pbg {
        background-image: none;
        width: 100%;
        margin: 0;
    }
}

#cds {
    font-family: Arial, sans-serif;
    background-image: url(../../images/guest/bg.png);
    color: #333;
    padding: 20px 0;
    width: 100%;
}

.card1 {
    background-color: #f0feff;
    border: none;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    padding: 20px;
    height: 400px;
    width: 300px;

}

.card1 h3 {
    color: #7e2540;
    text-align: center;
}

.card1 hr {
    border-top: 2px solid #f5c142;
    width: 40px;
    margin: 10px auto;
}

.card1 img {
    width: 160px;
    height: 160px;
    margin-bottom: 20px;
}

#price {
    width: 100%;

    /* margin-bottom: 5rem; */
    margin-top: 5rem;
}

.card {
    padding-top: 2rem;
}

h5 {
    color: purple;
    font-size: 1rem;
    font-weight: bolder;
}

.pr1 {
    font-size: 3rem;
}

.pr2 {
    font-size: 0.8rem;
}

h2 {
    text-align: center;
    position: relative;
    font-size: 3rem;
    margin: 20px 0;
    white-space: nowrap;
    /* 防止換行 */
}

h2::before,
h2::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 35%;
    border-top: 2px solid black;
}

h2::before {
    left: 3%;
}

h2::after {
    right: 3%;
}

/* 在小螢幕上調整線條長度，避免過短或過長 */
@media (max-width: 768px) {
    h2 {
        font-size: 2rem;
    }

    h2::before,
    h2::after {
        width: 30%;
    }

    .card1 {
        width: 100%;
        margin: 0;
    }
}

@media (max-width: 480px) {
    h2 {
        font-size: 1.5rem;
    }

    h2::before,
    h2::after {
        width: 20%;
    }

    .card {
        margin: 0;
    }
}

.pw {
    text-align: center;
    font-size: 1.2rem;
    font-weight: bolder;
    color: #666;
}

.pbg {
    background-image: url(../../images/guest/pbg.png);
    width: 100%;
}

.ct1 {
    text-align: start;
}

.material-symbols-outlined {
    color: #6e0072;
    font-variation-settings:
        'FILL' 0,
        'wght' 400,
        'GRAD' 0,
        'opsz'

}



.navbar-toggler-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath stroke='white' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

@media (max-width: 575px) {
    .cd1 {
        padding: 0;
        width: 100%;
    }
}

.cd1.hidden {
    opacity: 0;
    transform: translateX(50px);
    transition: all 1s ease;
}

.cd1.show {
    opacity: 1;
    transform: translateX(0);
}

.card.hidden {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease;
}

.card.show {
    opacity: 1;
    transform: translateY(0);
}