/* 首頁彈窗 */
.announcement-overlay {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,.5);
    transition: opacity .5s;
    visibility: visible;
    z-index: 99999999;
}

.announcement-area {
    width: 100%;
    position: fixed;
    top: 45%;
    left: 50%;
    transform: translateY(-50%) translateX(-50%);
    transition: all 5s ease-in-out;
}

    .announcement-area img {
        width: 90%;
    }

.announcement-overlay .announcement-area .announcement-close {
    position: absolute;
    bottom: -15%;
    left: 50%;
    transform: translateY(-50%) translateX(-50%);
    width: 11%;
    transition: all 200ms;
}

.announcement-sicust .announcement-close {
    position: absolute;
    top: -19em;
    right: 4%;
    width: 11%;
    transition: all 200ms;
}

.announcement-content {
    /*color: #fff;*/
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1rem;
    line-height: 1.25rem;
}

    .announcement-content .bg {
        width: 75%;
        /*height: 460px;*/
        background: url(../images/main/announcement-bg.png);
        background-size: 100% 100%;
    }

.swiper-pagination-clickable .swiper-pagination-bullet {
    background-color: #a61300;
}

.announcement-content .swiper-slide > div {
    height: 45vh;
    padding: 0.2em 1.2em 0em 0.3em;
    width: 100%;
    margin: 4rem 0.5rem;
    overflow: hidden;
    overflow-y: scroll;
    position: relative;
    line-height: 1.5em;
    font-family: Microsoft JhengHei;
}

    .announcement-content .swiper-slide > div > p {
        font-size: 1.2em;
    }

.swiper-pagination-fraction, .swiper-pagination-custom, .swiper-container-horizontal > .swiper-pagination-bullets {
    bottom: 5%;
}

.purple {
    color: #8e44ad;
}

.blue {
    color: #3498db;
}

.yellow {
    color: #ffc107;
}

@media screen and (min-width: 320px) and (max-width: 359px) {
    .swiper-pagination-fraction, .swiper-pagination-custom, .swiper-container-horizontal > .swiper-pagination-bullets {
        bottom: 5%;
    }

    .announcement-content .swiper-slide > div {
        height: 40vh;
    }
}

@media screen and (min-width: 375px) and (max-width:399px) {
    .swiper-pagination-fraction, .swiper-pagination-custom, .swiper-container-horizontal > .swiper-pagination-bullets {
        bottom: 10%;
    }
}

@media screen and (min-width: 766px) and (max-width:1023px) {
    .announcement-overlay .announcement-area .announcement-close {
        bottom: -20%;
        left: 51%;
    }

    .announcement-area img {
        width: 80%;
    }

    .announcement-content .swiper-slide > div {
        padding: 3rem 1.2em 0em 0.3em;
        height: 60vh;
        font-size: 20px;
    }
}

@media screen and (min-width: 1024px) {
    .announcement-overlay .announcement-area .announcement-close {
        bottom: -20%;
        left: 51%;
    }

    .announcement-content .swiper-slide > div {
        padding: 3rem 1.2em 0em 0.3em;
        height: 60vh;
        font-size: 28px;
    }
}

@media screen and (max-width: 321px) {
    .announcement-sicust .announcement-close {
        top: -15em;
        right: 0.9em;
    }
}

@media screen and (min-width:360px) and (max-width:374px) {
    .announcement-sicust .announcement-close {
        top: -16.5em;
        right: 3%;
    }
}

@media screen and (min-width: 375px) and (max-width:380px) {
    .announcement-sicust .announcement-close {
        top: -17.5em;
        right: 3%;
    }
}

@media screen and (min-width: 375px) and (max-width:380px) and (min-height:810px) and (max-height:813px) {
    .announcement-sicust .announcement-close {
        top: -21.5em;
        right: 3%;
    }
}

@media screen and (min-width: 381px) and (max-width:399px) {
    .announcement-sicust .announcement-close {
        top: -18em;
        right: 3%;
    }
}

@media screen and (min-width: 766px) and (max-width:1022px) {
    .announcement-sicust .announcement-close {
        top: -28em;
        right: 1em;
    }
}

@media screen and (min-width: 1024px) {
    .announcement-sicust .announcement-close {
        top: -36em;
        right: 2em;
    }
}

@media screen and (min-width: 409px) and (max-width:413px) and (min-height:820px) and (max-height:825px) {
    .announcement-sicust .announcement-close {
        top: -21.5em;
        right: 3%;
    }
}
