@charset "utf-8";
/* CSS Document */

html,
body {
    height: 100%;
    font-family: 'Noto Sans TC', "Helvetica Neue", Helvetica, "Microsoft YaHei", "微软雅黑", sans-serif;
    font-size: 62.5%;
}

* {
    box-sizing: border-box;
}

a {
    color: #ca4f0f;
    text-decoration: none;
    outline: none;
    -webkit-transition: all 0.4s;
    -o-transition: all 0.4s;
    transition: all 0.4s;
}

a:hover {
    color: #a5a5a5;
    text-decoration: underline;
    text-underline-offset: 5px;
}

.btn {
    display: flex;
    justify-content: center;
    align-items: center;
}

.btn a {
    display: block;
    font-size: 1.5rem;
    color: #fff;
    font-weight: 500;
    background-color: #ca4f0f;
    padding: 13px 10px;
    text-align: center;
    overflow: inherit;
    border-radius: 12px;
    text-decoration: none;
}

.btn a:hover {
    color: #000;
    background-color: #ccc;
    text-decoration: none;
}

i {
    margin-right: 3px;
}

.captcha i {
    margin-right: 0px;
}

.modal-header i {
    font-size: 2rem;
}

.md_transition {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: transform .6s cubic-bezier(.39, .575, .565, 1) 0.6s;
    z-index: 999999;
}

body:not(.is_fade) .md_transition {
    transform: translateY(-200%);
}

.md_transition::before {
    background: -webkit-gradient(linear, left bottom, left top, from(hsla(0, 0%, 100%, 0)), color-stop(33.33333%, #fff), color-stop(66.66667%, #fff), to(hsla(0, 0%, 100%, 0)));
    background: -o-linear-gradient(bottom, hsla(0, 0%, 100%, 0) 0, #fff 33.33333%, #fff 66.66667%, hsla(0, 0%, 100%, 0) 100%);
    background: linear-gradient(0deg, hsla(0, 0%, 100%, 0), #fff 33.33333%, #fff 66.66667%, hsla(0, 0%, 100%, 0));
    content: "";
    display: block;
    width: 100%;
    height: 300%;
    position: absolute;
    left: 0;
    top: -100%;
}

.wrap {
    min-height: 100%;
    height: 100%;
    *display: table;
    /* For IE7 Hack */
    *height: 100%;
    /* For IE7 Hack */
}

.main {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    flex-wrap: wrap;
    min-height: 100%;
    height: 100%;
    overflow: auto;
    padding-bottom: 60px;
}

/* must be same height as the footer */
.wrap_left {
    width: 64%;
    height: 100%;
}

.login_image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    height: 100%;
}

.login_image img {
    min-width: 100%;
    min-height: 100%;
    object-fit: cover;
}

.login_text {
    position: absolute;
    top: 20vh;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    font-size: 7.2rem;
    font-weight: 300;
    color: #fff;
    text-align: center;
}

.login_text span {
    display: block;
    white-space: nowrap;
}

.img-sec-title {
    font-size: 3rem;
    font-weight: 500;
    color: #fff;
    letter-spacing: 5px;
}

.wrap_right {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 36%;
    height: 100%;
    overflow-y: auto;
    background-color: #f5f5f5;
    box-shadow: 0px 6px 16px 0px rgba(0, 0, 0, 0.24);
}

.login_wrap {
    max-width: 410px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.12);
}

.login-head {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #ca4f0f;
    padding: 10px;
}

.travelmap_logo {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 66px;
    height: 62px;
    margin-right: 5px;
}

.travelmap_logo img {
    min-height: 100%;
    min-width: 100%;
    object-fit: contain;
}

.system_title {
    position: relative;
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    flex-wrap: wrap;
    flex-direction: column;
    font-size: 1.8rem;
    color: #2589a7;
    font-weight: 600;
    text-align: center;
    padding-left: 5px;
}

.system_title:before {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    content: '';
    width: 5px;
    height: 100%;
    background-color: #fff;
}

.system_title span {
    display: block;
    position: relative;
    text-indent: 10px;
    color: #fff;
    line-height: 1;
}

.system-main-title {
    font-size: 2rem;
    color: #2589a7;
    font-weight: 500;
    text-align: center;
    margin-bottom: 10px;
}

.system-sec-title {
    font-size: 1.3rem;
    color: #2589a7;
    font-weight: 400;
    text-align: center;
}

/* .system_title span::before,
.system_title span::after {
    position: absolute;
    top: 50%;
    content: '';
    width: 1.5em;
    height: 1px;
    background-color: #2589a7;
} */

.system_title span::before {
    left: 100%;
}

.system_title span::after {
    right: 100%;
}

.input_box {
    width: 100%;
    padding: 30px 20px;
    border: 1px solid #C4C4C4;
    background-color: #ffffff;
    border-top: 0px;
    border-bottom-left-radius: 24px;
    border-bottom-right-radius: 24px;
}

.input_box ul {}

.input_box ul li {
    width: 100%;
    margin-bottom: 20px;
}

.input_box ul li:last-child {
    margin-bottom: 0;
}

.input_box ul li input {
    width: 100%;
    height: 46px;
    font-size: 1.5rem;
    border: 1px solid #aaa;
    background-color: #fff;
    padding: 10px;
    outline: none;
    border-radius: 12px;
    margin-right: 5px;
}

.input_box ul li input:focus {
    border: 2px solid #ca4f0f;
    padding: 9px;
}

.input_box ul li input.input-captcha {
    width: calc(100% - 142px);
}

.captcha {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-wrap: wrap;
}

.captcha > img {
    width: auto;
    height: 46px;
    margin-right: 5px;
}

.captcha button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    padding: 0;
    border: 0;
    border-radius: 3px;
    background: transparent;
    cursor: pointer;
}

.captcha button img {
    width: 20px;
    height: 20px;
    margin-right: 0;
}

.captcha a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    /*text-indent: -9999px;
    background-color: #6a8b60;
    background-image: url("../images/refresh.png");
    background-position: center;
    background-repeat: no-repeat;
    background-size: 18px;*/
    border-radius: 3px;
}

.captcha a img {
    width: 20px;
    height: 20px;
}

.login_btn a {
    padding: 16px 20px;
}

.forgot_pw {
    text-align: center;
}

.forgot_pw a {
    font-size: 1.4rem;
}

.password_wrap {
    position: relative;
}

.field-icon {
    margin-left: -26px;
    position: relative;
    z-index: 2;
}

a.field-icon {
    position: absolute;
    top: 50%;
    right: 15px;
    margin-top: -15px;
    width: 30px;
    height: 30px;
    background-image: url(../images/login/view.svg);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
    cursor: pointer;
}

a.field-icon-slash {
    position: absolute;
    top: 50%;
    right: 15px;
    margin-top: -15px;
    width: 30px;
    height: 30px;
    background-image: url(../images/login/hidden.svg);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
    cursor: pointer;
}

.phone-number {
    font-size: 1.4rem;
    color: #666;
    font-weight: 500;
    text-align: center;
    margin-bottom: 5px;
}

.security-tips {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.4rem;
    color: #666;
    font-weight: 500;
    text-align: center;
}

.security-tips img {
    width: 25px;
    height: 25px;
    vertical-align: middle;
}

.news {
    position: absolute;
    bottom: 20px;
    right: 20px;
}

.news a {
    display: block;
    position: relative;
    background-color: #555555;
    color: #fff;
    padding: 10px 20px;
}

.news_items {
    position: absolute;
    right: -9px;
    top: -9px;
    min-width: 18px;
    line-height: 18px;
    font-size: 1.2rem;
    color: #fff;
    text-align: center;
    background-color: #dc4d3d;
    -webkit-border-radius: 9px;
    -moz-border-radius: 9px;
    border-radius: 9px;
    padding: 0px 5px 1px 5px;
    box-sizing: border-box;
}

footer {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    position: relative;
    margin-top: -60px;
    min-height: 60px;
    font-size: 1.3rem;
    font-weight: 400;
    clear: both;
    background-color: #202020;
    padding: 5px 30px;
    background-image: repeating-linear-gradient(0deg, transparent 0 3px, rgb(255 255 255 / 2%) 3px 4px), repeating-linear-gradient(90deg, transparent 0 3px, rgb(255 255 255 / 2%) 3px 4px);
    background-repeat: repeat;
    background-position: left top;
    z-index: 1;
}

footer a {
    color: #ffffff;
    margin-right: 5px;
}

.copyright {
    font-size: 1.3rem;
    color: #ffffff;
    font-weight: 400;
    line-height: 1.7;
}

.bg_close {
    position: absolute;
    height: 100%;
    width: 100%;
    left: 0px;
    top: 0px;
}

.message-modal-box {
    width: 450px;
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    align-content: center;
    background-color: #fff;
    box-shadow: 0px 6px 16px 0px rgb(0 0 0 / 12%);
    z-index: 9999;
    margin-top: 50px;
    border-radius: 24px;
    /*border: 1px solid #d7d7d7;
    padding: 20px 50px;
    -webkit-border-radius: 16px;
    -moz-border-radius: 16px;
    border-radius: 16px;*/
}

.book-modal-box .w3-btn,
span.w3-close.w3-button,
button.w3-close.w3-button {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: transparent;
    width: 30px;
    height: 30px;
    font-size: 1.9rem;
    color: #000;
    line-height: 0.9;
    font-weight: 600;
    text-align: center;
    -webkit-border-radius: 15px;
    -moz-border-radius: 15px;
    border-radius: 999px;
    padding: 7px;
    transition: all 0.4s;
    -o-transition: all 0.4s;
    -moz-transition: all 0.4s;
    -webkit-transition: all 0.4s;
    background-color: #eee;
        right: 8px;
    top: 8px;
}

span.w3-close.w3-button:hover,
button.w3-close.w3-button:hover {
    color: #fff;
    background-color: #333;
}

.modal-header {
    width: 100%;
    height: 45px;
    background-color: #ca4f0f;
    border-top-left-radius: 22px;
    border-top-right-radius: 22px;
}

h2 {
    width: 100%;
    height: 45px;
    line-height: 45px;
    text-align: center;
    font-size: 2rem;
    color: #fff;
    font-weight: 600;
    letter-spacing: 2px;
    margin-right: -2px;
}

h2.announcemet:before {
    margin: -5px 5px 0 0;
    content: " ";
    display: inline-block;
    width: 21px;
    height: 21px;
    background: url("../images/notice.svg");
    background-repeat: no-repeat;
    background-size: contain;
    vertical-align: middle;
}

h2.forgot_password:before {
    margin: -5px 5px 0 0;
    content: " ";
    display: inline-block;
    width: 21px;
    height: 21px;
    background: url("../images/notice.svg");
    background-repeat: no-repeat;
    background-size: contain;
    vertical-align: middle;
}

.modal-body {}

.message-unread {
    width: 100%;
    height: 60px;
    line-height: 60px;
    border-bottom: 1px solid #c5c5c5;
    text-align: center;
    font-size: 1.3rem;
    font-weight: 300;
    color: #333;
}
.message-title{
    width: 100%;
    height: 50px;
    line-height: 50px;
    /* border-bottom: 1px solid #c5c5c5; */
    text-align: center;
        font-size: 1.8rem;
    font-weight: 600;
    color: #333;
}
.message-read {
    width: 100%;
    /* height: 60px;
    line-height: 60px; */
    border-bottom: 1px solid #c5c5c5;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 400;
    color: #333;
    padding-bottom: 10px;
}

.message-count {
    color: #E00003;
    padding: 0 5px;
}

.message-items {
    padding: 30px;
}

.message-items ul {}

.message-items ul li {
    display: flex;
    justify-content: flex-start;
    flex-wrap: wrap;
    width: 100%;
    min-height: 50px;
    background-color: #fff;
    border-bottom: 1px solid #ddd;
}

.message-items ul li a {
    position: relative;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-grow: 1;
    width: calc(100% - 33px);
    font-size: 1.4rem;
    color: #4b4b4b;
    font-weight: 400;
    padding: 0 0 0 10px;
}

.message-items ul li:hover {
    background-color: #eee;
}

.message-items ul li.unread {
    background-color: #fef0f0;
}

.message-items ul li.unread:hover {
    background-color: #eee;
}

.message-links {
    min-height: 50px;
}

.message-date {
    margin-right: 10px;
    font-size: 1.3rem;
}

.message-content {
    /*max-width: 180px;*/
    width: calc(100% - 70px);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.5;
    flex-grow: 1;
}

.news-page-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 30px;
    /*margin-top: 30px;*/
    border-top: 1px solid #ddd;
}

.close-panel a {
    display: block;
    border: 1px solid #ca4f0f;
    padding: 10px 20px;
    font-size: 1.3rem;
    color: #ca4f0f;
    text-decoration: none;
    border-radius: 12px;
}

.close-panel a:hover {
    color: #fff;
    border: 1px solid #ca4f0f;
    background-color: #ca4f0f;
}

/*.close-panel a:before{
    margin: -3px 7px 0 0;
    content: " ";
    display: inline-block;
    width: 14px;
    height: 14px;
    background: url("../images/close.png"); 
    background-repeat: no-repeat;
    background-size: contain;
    vertical-align: middle;
}*/
.page-view {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow: hidden;
}

.page-view a {
    display: block;
    width: 30px;
    padding: 10px;
    border-right: 1px solid #ddd;
    color: #333;
    background-color: #fff;
}

.page-view a:hover {
    color: #fff;
    background-color: #ca4f0f;
}

.page-view a.is-disabled,
.page-view a.is-disabled:hover {
    color: #b7b7b7;
    background-color: #f3f3f3;
    pointer-events: none;
}

.page-view a:nth-last-child(1) {
    border-right: 0px solid #ddd;
}

a.page-view-first {
    /*text-indent: -9999px;
    background-image: url("../images/arrow-first.png");
    background-position: center;
    background-repeat: no-repeat;*/
    background-size: 10px;
    -webkit-border-top-left-radius: 5px;
    -webkit-border-bottom-left-radius: 5px;
    -moz-border-radius-topleft: 5px;
    -moz-border-radius-bottomleft: 5px;
    border-top-left-radius: 5px;
    border-bottom-left-radius: 5px;
}

a.page-view-first:hover {
    /*background-image: url("../images/arrow-first-o.png");*/
}

a.page-view-previous {
    /*text-indent: -9999px;
    background-image: url("../images/arrow-previous.png");
    background-position: center;
    background-repeat: no-repeat;
    background-size: 10px;*/
}

a.page-view-previous:hover {
    /*background-image: url("../images/arrow-previous-o.png");*/
}

a.page-view-next {
    /*text-indent: -9999px;
    background-image: url("../images/arrow-next.png");
    background-position: center;
    background-repeat: no-repeat;
    background-size: 10px;*/
}

a.page-view-next:hover {
    /*background-image: url("../images/arrow-next-o.png");*/
}

a.page-view-last {
    /*text-indent: -9999px;
    background-image: url("../images/arrow-last.png");
    background-position: center;
    background-repeat: no-repeat;
    background-size: 10px;*/
    -webkit-border-top-right-radius: 5px;
    -webkit-border-bottom-right-radius: 5px;
    -moz-border-radius-topright: 5px;
    -moz-border-radius-bottomright: 5px;
    border-top-right-radius: 5px;
    border-bottom-right-radius: 5px;
}

a.page-view-last:hover {
    /*background-image: url("../images/arrow-last-o.png");*/
}

.news-content {
    display: block;
}

.message-container {
    padding: 30px;
}

.message-container p,
.message-contanier div {
    line-height: 1.7;
    font-size: 1.4rem;
    color: #333;
    font-weight: 400;
    margin-bottom: 20px;
}

.message-wrap {
    display: none;
}

.message-wrap.is-active {
    display: block;
}

.download-paper-items {}

.download-paper {
    display: flex;
    justify-content: left;
    align-items: center;
    padding-right: 10px;
}

.download-paper i {
    font-size: 1.8rem;
}

.message-items ul li .download-paper a {
    display: block;
    width: 23px;
    height: 18px;
    font-size: 1.3rem;
    text-decoration: none;
    color: #ca4f0f;
    margin: 0px;
    padding: 0px;
    /*text-indent: -9999px;
    background-image: url("../images/download.png");
    background-position: center;
    background-repeat: no-repeat;
    background-size: 15px;*/
}

.download-paper a {
    display: block;
    font-size: 1.4rem;
    text-decoration: underline;
}

.message-container .download-paper a {
    /*padding-left: 20px;
    background-image: url("../images/download.png");
    background-position: left center;
    background-repeat: no-repeat;
    background-size: 15px;*/
}

/*.download-paper a:before{
    margin: -3px 3px 0 0;
    content: " ";
    display: inline-block;
    width: 15px;
    height: 15px;
    background: url("../images/download.png"); 
    background-repeat: no-repeat;
    background-size: contain;
    vertical-align: middle;
}
.download-paper a:hover:before{
    background: url("../images/download-o.png");
    background-size: contain;
}*/
.br-break {
    display: none;
}

.password_box {
    padding: 30px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

/* 切板以 .btn 內的連結呈現忘記密碼視窗的「重新產生驗證碼」：橘底白色圖示的 30×30 圓角方塊。
   正式站以 button 實作可操作元件，因此在相同結構下沿用切板的外觀值。 */
.password_box .captcha .btn button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    padding: 0;
    border: 0;
    border-radius: 3px;
    background-color: #ca4f0f;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
}

.password_box .captcha .btn button:hover {
    color: #000;
    background-color: #ccc;
}

.password_box ul {
    width: 300px;
}

.password_box ul li {
    width: 100%;
    margin-bottom: 10px;
}

.password_box ul li input {
    /*width: 100%;
    font-size: 1.5rem;
    border: 1px solid #CCC;
    background-color: #fff;
    padding: 10px;
    outline: none;*/
    width: 100%;
    font-size: 1.5rem;
    border: 1px solid #aaa;
    background-color: #fff;
    padding: 10px;
    outline: none;
    border-radius: 3px;
}

.password_box ul li input:focus {
    border: 2px solid #6a8b60;
    padding: 9px;
}
.forgot_pw {
    text-align: center;
}
@media screen and (max-width: 1366px) {
    .main {
        padding-bottom: 50px;
    }

    .wrap_left {
        width: 60%;
    }

    .wrap_right {
        width: 40%;
        align-items: flex-start;
        padding-top: 20px;
    }

    

    .login_text {
        font-size: 6.5rem;
    }

    .img-sec-title {
        font-size: 2.8rem;
    }

    footer {
        margin-top: -50px;
        min-height: 50px;
    }
}

@media screen and (max-width: 1180px) {
    .wrap_right {
        padding-top: 0px;
        align-items: center;
    }

    .login_text {
        font-size: 5.5rem;
    }

    .img-sec-title {
        font-size: 2.5rem;
    }
}

@media screen and (max-width: 1024px) {
    .wrap_left {
        width: 55%;
    }

    .wrap_right {
        width: 45%;
    }

    .login_text {
        font-size: 4.5rem;
    }

    .img-sec-title {
        font-size: 2.2rem;
    }
}

@media screen and (max-width: 820px) {
    .main {
        display: block;
        position: relative;
    }

    .wrap_left {
        position: absolute;
        left: 0px;
        top: 0px;
        width: 100%;
        z-index: 1;
    }

    .wrap_right {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        z-index: 2;
        justify-content: center;
        background-color: transparent;
        padding-bottom: 50px;
    }

    .input_box {
        width: 100%;
        margin: 0 auto;
        background-color: #fff;
    }

    .login_text {
        top: 10vh
    }

    /* .login_text{
        font-size: 3.5rem;
    }
    .img-sec-title{
        font-size: 1.8rem;
    } */
}

@media screen and (max-width: 768px) {}

@media screen and (max-width: 600px) {
    .main {
        padding-bottom: 60px;
    }

    footer {
        margin-top: -60px;
        min-height: 60px;
    }

    .login_wrap {
        width: 90%;
    }

    .br-break {
        display: block;
    }

    .login_text {
        display: none;
        top: 3vh;
        font-size: 4rem;
    }

    .login-head {
        flex-direction: column;
    }

    .travelmap_logo {
        margin-bottom: 10px;
    }

    .img-sec-title {
        font-size: 1.5rem;
    }

    .message-modal-box {
        width: 96%;
    }

    .message-items {
        padding: 10px;
    }

    .news-page-wrap {
        padding: 30px 10px;
    }

    .message-container {
        padding: 30px 10px;
    }

    .wrap_right {
        padding-bottom: 60px;
    }

    .system-main-title {
        font-size: 2.2rem;
    }

    .system-sec-title {
        font-size: 1.4rem;
    }

}

/* SSR modal parity with approved login reference */
.login-page .wrap_right {
    align-items: safe center;
}

.login-page [hidden] {
    display: none !important;
}

/*
  共用的 site.css 將頁尾設為 z-index: 4；登入頁「公告資訊」按鈕所在的 .wrap_right 為 z-index: 2，
  手機與平板寬度下按鈕與頁尾重疊時會被蓋住而點不到。設計稿登入頁頁尾為 z-index: 1，在此還原。
*/
.login-page .site-footer {
    position: relative;
    z-index: 1;
    flex-wrap: wrap;
    font-size: 1.3rem;
}

.login-page a:focus-visible,
.login-page button:focus-visible {
    outline: 2px solid #ca4f0f;
    outline-offset: 3px;
}

/* 登入表單訊息維持在卡片內部、置中於送出按鈕下方，避免落在卡片外的左下角。 */
.login-page .input_box .login-status {
    margin-top: 16px;
    margin-bottom: 0;
    font-size: 1.4rem;
    line-height: 1.5;
    text-align: center;
}

.login-page .modal {
    z-index: 9998;
    align-items: flex-start;
    justify-content: center;
    padding: 50px 10px 10px;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.login-page .modal__backdrop {
    position: fixed;
}

.login-page .announcement-modal,
.login-page .recovery-modal {
    width: min(100%, 450px);
    border-radius: 24px;
    background-color: #fff;
    box-shadow: 0px 6px 16px 0px rgb(0 0 0 / 20%);
    overflow: hidden;
    flex-shrink: 0;
    animation: animatetop 0.4s;
}

@media (prefers-reduced-motion: reduce) {
    .login-page .announcement-modal,
    .login-page .recovery-modal {
        animation: none;
    }
}

.login-page .announcement-modal > header,
.login-page .recovery-modal > header {
    width: 100%;
    height: 45px;
    background-color: #ca4f0f;
    border-top-left-radius: 22px;
    border-top-right-radius: 22px;
}

.login-page .announcement-modal h2,
.login-page .recovery-modal h2 {
    width: 100%;
    height: 45px;
    line-height: 45px;
    text-align: center;
    font-size: 2rem;
    color: #fff;
    font-weight: 600;
    letter-spacing: 2px;
    margin-right: -2px;
}

.login-page .modal__x {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #fff;
    width: 30px;
    height: 30px;
    font-size: 1.9rem;
    color: #000;
    line-height: 0.9;
    font-weight: 600;
    text-align: center;
    border-radius: 999px;
    padding: 7px;
    right: 8px;
    top: 8px;
}

.login-page .announcement-heading {
    display: block;
    width: 100%;
    border-bottom: 1px solid #c5c5c5;
    padding: 0;
}

.login-page .announcement-items time {
    flex-shrink: 0;
    font-size: 1.3rem;
}

.login-page .announcement-items span {
    min-width: 0;
    font-size: 1.4rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    overflow-wrap: anywhere;
}

.login-page .announcement-message-title {
    width: 100%;
    min-height: 50px;
    line-height: 1.5;
    padding: 10px;
    overflow-wrap: anywhere;
    text-align: center;
    font-size: 1.8rem;
    font-weight: 600;
    color: #333;
}

.login-page .announcement-message-read {
    display: block;
    width: 100%;
    border-bottom: 0;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 400;
    color: #333;
    padding: 0 0 10px;
}

.login-page .announcement-content {
    padding: 30px;
    min-height: 0;
    font-size: 1.4rem;
    color: #333;
    line-height: 1.7;
}

.login-page .announcement-list.announcement-list--empty .announcement-state,
.login-page .announcement-list.announcement-list--loading .announcement-state,
.login-page .announcement-list.announcement-list--failed .announcement-state {
    display: flex !important;
    align-items: center;
    justify-content: center;
    min-height: 96px;
    margin: 0;
    border-bottom: 1px solid #ddd;
    padding: 24px 16px;
    background: #fff;
    color: #555;
    text-align: center;
    font-size: 1.6rem;
    font-weight: 500;
    line-height: 1.5;
    white-space: normal;
    word-break: break-word;
}

.login-page .announcement-state--empty {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    min-height: 96px;
    letter-spacing: 0;
    color: #555 !important;
    background: #fff;
    line-height: 1.5;
    text-shadow: none;
}

.login-page .announcement-state--empty:empty::before {
    content: "目前沒有公告資訊";
    color: #555;
    font-size: 1.6rem;
    font-weight: 500;
    line-height: 1.5;
}

.login-page .announcement-list.announcement-list--failed #announcement-failed {
    min-height: 110px;
    font-size: 1.6rem !important;
    font-weight: 500;
    color: #555 !important;
    background: #fafafa;
    white-space: normal;
    padding: 24px 16px;
    text-align: center;
}

.login-page .announcement-state[hidden],
.login-page .announcement-unread[hidden],
.login-page .announcement-items[hidden] {
    display: none !important;
}

.login-page .announcement-list.announcement-list--empty .announcement-unread {
    display: none;
}

.login-page .announcement-list.announcement-list--failed .announcement-unread {
    display: none;
}

.login-page .announcement-content p {
    margin: 0 0 20px;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.login-page .announcement-content a {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 0;
    font-size: 1.4rem;
    color: #ca4f0f;
    text-decoration: underline;
}

.login-page .announcement-modal > .news-page-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 30px;
    border-top: 1px solid #ddd;
    min-height: 0;
}

.login-page .announcement-list.announcement-list--empty > .news-page-wrap,
.login-page .announcement-list.announcement-list--loading > .news-page-wrap,
.login-page .announcement-list.announcement-list--failed > .news-page-wrap {
    background: #fff;
    border-top: 1px solid #ddd;
    min-height: 0;
    padding: 30px;
    align-items: center;
}

.login-page .announcement-list.announcement-list--empty .announcement-pages {
    display: none;
}

.login-page .announcement-list.announcement-list--failed .announcement-pages {
    display: none;
}

.login-page .announcement-list.announcement-list--empty > .news-page-wrap {
    justify-content: center;
}

.login-page .announcement-list.announcement-list--failed > .news-page-wrap {
    justify-content: center;
}

.login-page .announcement-modal > header {
    display: block !important;
    position: relative;
    z-index: 2;
    height: 45px;
    background-color: #ca4f0f !important;
    border-top-left-radius: 22px;
    border-top-right-radius: 22px;
}

.login-page .announcement-modal > header h2 {
    color: #fff !important;
}

.login-page .modal__close {
    display: block;
    border: 1px solid #ca4f0f;
    padding: 10px 20px;
    font-size: 1.3rem;
    color: #ca4f0f;
    text-decoration: none;
    border-radius: 12px;
    background-color: #fff;
    line-height: 1.2;
}

.login-page .announcement-pages {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow: hidden;
}

.login-page .announcement-pages button {
    display: block;
    min-width: 30px;
    height: 100%;
    padding: 10px;
    border: 0;
    border-right: 1px solid #ddd;
    color: #333;
    background-color: #fff;
    font-size: 1.4rem;
    line-height: 1;
}

.login-page .announcement-pages button:last-child {
    border-right: 0;
}

.login-page .announcement-pages button:disabled {
    color: #b7b7b7;
    background-color: #f3f3f3;
}

.login-page .recovery-modal__body {
    padding: 30px 30px 28px;
}

.login-page .recovery-modal__body .recovery-help {
    display: none;
}

.login-page .recovery-modal__body section[data-recovery-request-panel] {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* 以下規則只作用於 .recovery-modal 版型；設計切板的忘記密碼視窗（.message-modal-box 內的
   .password_box）沿用切板既有的 .password_box 與 .captcha 規則，不被這裡的框線與標籤設定覆蓋。 */
.login-page .recovery-modal .recovery-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    width: 300px;
    max-width: 100%;
    margin: 0 auto;
}

.login-page .recovery-modal .recovery-form label:not(.sr-only) {
    display: block;
    align-self: flex-start;
    font-size: 1.4rem;
}

.login-page .recovery-modal .recovery-form input,
.login-page .recovery-modal .recovery-form .password-field {
    width: 100%;
    max-width: 100%;
}

.login-page .recovery-modal .recovery-form input {
    border-radius: 3px;
    border: 2px solid #ca4f0f;
    padding: 9px 10px;
    height: 46px;
    font-size: 1.6rem !important;
    color: #333;
}

.login-page .recovery-modal .recovery-form input::placeholder {
    font-size: 1.6rem !important;
    color: #999;
}

.login-page .recovery-form .login-submit {
    margin-top: 0;
    padding: 16px 20px;
    font-size: 1.5rem;
}

@media screen and (max-width: 600px) {
    .login-page .announcement-modal,
    .login-page .recovery-modal {
        width: 96%;
    }

    .login-page .announcement-modal > .news-page-wrap {
        padding: 30px 10px;
    }

    .login-page .announcement-items {
        padding: 10px;
    }

    .login-page .announcement-content {
        padding: 30px 10px;
    }
}
/* ══════════════════════════════════
   Loading Modal
   與 index.css 同一組定義，取自設計師切板。
   登入頁不載入 index.css，處理中遮罩要在此頁生效就必須在這裡也有一份；
   兩份內容完全相同，外觀不會因頁面而不同。
══════════════════════════════════ */
.loading-modal {
    width: 500px;
    max-width: 96vw;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, .12);
    margin: 160px auto;
}

.loading-body {
    padding: 60px 40px;
    text-align: center;
    background-color: #fff;
    border-radius: 12px;
}

/* Spinner */
@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-spinner {
    width: 52px;
    height: 52px;
    border: 5px solid #e0e0e0;
    border-top-color: #555;
    border-radius: 50%;
    animation: spin .8s linear infinite;
    margin: 0 auto 24px;
}

.loading-title {
    font-size: 2rem;
    font-weight: 700;
    color: #222;
    margin-bottom: 16px;
}

.loading-desc {
    font-size: 1.4rem;
    color: #666;
    line-height: 2;
}

/* 訂票規則視窗在內容超過可用高度時的版面。
   視窗是縱向 flex 且設有 max-height 與 overflow: hidden，
   標題列與底部捲動提示若未關閉收縮，會被撐滿的內容區擠壓，
   最後被裁切成只剩一半（提示按鈕即出現上半截被切掉的情形）。
   兩者都是固定區塊，不參與剩餘空間的分配。 */
.rules-modal > .atm-header,
.rules-modal > .rules-scroll-hint,
.rules-modal > .rules-footer {
    flex-shrink: 0;
}

/* 處理中遮罩必須蓋在所有既有視窗之上。
   遮罩元件常駐於頁面，對話框則是開啟時才掛載，在文件中的位置因此比遮罩更後面；
   兩者的 z-index 若相同，後掛載的對話框會蓋住遮罩，遮罩看起來像被壓在底下。 */
[data-vue-busy-overlay] {
    z-index: 10050;
}
