.overlay-emergency {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    justify-content: center;
    align-items: center;
    z-index: 9999;
}
.popup-box {
    background-color: white;
    width: 90%;
    max-width: 800px;
    max-height: 90%;
    overflow-y: auto;
    padding: 20px;
    border-radius: 5px;
    position: relative;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.popup-box h2 {
    text-align: center;
    border-bottom: 1px solid #c3c3c3;
    padding: 20px 0px 20px 0px;
    margin: 20px 0;
}
.popup-box p {
    padding: 20px 0px;
    line-height: 1.8;

}
.popup-box ul {
    list-style: decimal;
    margin-left: 35px;
    line-height: 1.5;
}
.popup-box.show {
    opacity: 1;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 2.2rem;
    color: #888;
    cursor: pointer;
}
/* 調整滾動條樣式 */
.popup-box::-webkit-scrollbar {
    width: 8px;
}

.popup-box::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 7px;
}
.popup-box::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 7px;
}
.popup-box::-webkit-scrollbar-thumb:hover {
    background: #555;
}
@media screen and (max-width: 768px) {
    .overlay-emergency {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.7);
        justify-content: center;
        align-items: center;
        z-index: 9999;
    }

    .popup-box {
        width: 95%;
        height: 50%;
        max-height: 90%;
        padding: 10px;
    }

    .popup-box h2 {
        font-size: 1.2rem;
        padding: 20px 15px 10px 15px;
    }

    .popup-box p {
        font-size: 1rem;
        padding: 10px 0;
    }

    .close-btn {
        font-size: 2.5rem;
        top: 7px;
        right: 11px;
    }

    /* 調整小屏幕上的滾動條樣式 */
    .popup-box::-webkit-scrollbar {
        width: 10px;
    }

    .popup-box::-webkit-scrollbar-thumb {
        background: #444;
    }

    .popup-box::-webkit-scrollbar-thumb:hover {
        background: #222;
    }

}