.ml-document-archive {
    --ml-document-blue: #046eb8;
    --ml-document-wrap: 1440px;
    --ml-document-font: "Poppins", "Noto Sans TC", "Noto Sans JP", Helvetica, Arial, "微軟正黑體", sans-serif;
    font-family: var(--ml-document-font);
}

.ml-document-archive *,
.ml-document-archive *::before,
.ml-document-archive *::after {
    box-sizing: border-box;
}

.ml-document-archive a {
    color: #000;
    text-decoration: none;
    transition: all 0.4s ease;
}

.ml-document-bannerArea {
    clear: both;
    overflow: hidden;
    position: relative;
    z-index: 1;
    margin: 0;
    padding: 0;
}

.ml-document-bannerArea .wrap {
    max-width: 100%;
    padding: 0;
    margin: 0 auto;
}

.ml-document-bannerArea .bannerBox {
    position: relative;
}

.ml-document-bannerArea #banner {
    margin: 0;
    padding: 0;
    list-style: none;
}

.ml-document-bannerArea #banner > li {
    position: relative;
}

.ml-document-bannerArea #banner > li > img {
    display: block;
    width: 100%;
    object-fit: cover;
    backface-visibility: hidden;
}

@media (max-width: 1900px) {
    .ml-document-bannerArea #banner > li > img {
        height: 450px;
    }
}

@media (max-width: 720px) {
    .ml-document-bannerArea #banner > li > img {
        height: 400px;
    }
}

@media (max-width: 540px) {
    .ml-document-bannerArea #banner > li > img {
        height: 360px;
    }
}

.ml-document-bannerArea #banner::after {
    content: "";
    width: 100%;
    position: absolute;
    height: 130px;
    -webkit-mask: no-repeat url("/wp-content/uploads/2025/09/insMask.png") center bottom/100% auto;
    mask: no-repeat url("/wp-content/uploads/2025/09/insMask.png") center bottom/100% auto;
    background:
        repeat-y url("/wp-content/uploads/2026/03/line4.png") left 36px top,
        repeat-y url("/wp-content/uploads/2026/03/line4.png") right 36px top,
        no-repeat url("/wp-content/uploads/2025/09/insMask.png") center bottom/100% auto;
    bottom: 0;
    left: 0;
    pointer-events: none;
}

@media (max-width: 1200px) {
    .ml-document-bannerArea #banner::after {
        background:
            repeat-y url("/wp-content/uploads/2026/03/line4.png") left 20px top,
            repeat-y url("/wp-content/uploads/2026/03/line4.png") right 20px top,
            no-repeat url("/wp-content/uploads/2025/09/insMask.png") center bottom/100% auto;
        height: 100px;
    }
}

@media (max-width: 720px) {
    .ml-document-bannerArea #banner::after {
        height: 80px;
    }
}

@media (min-width: 1921px) {
    .ml-document-bannerArea #banner::after {
        -webkit-mask: no-repeat url("/wp-content/uploads/2025/09/insMask.png") center/100% 100%;
        mask: no-repeat url("/wp-content/uploads/2025/09/insMask.png") center/100% 100%;
        background:
            repeat-y url("/wp-content/uploads/2026/03/line4.png") left 36px top,
            repeat-y url("/wp-content/uploads/2026/03/line4.png") right 36px top,
            no-repeat url("/wp-content/uploads/2025/09/insMask.png") center bottom/100% 100%;
    }
}

.ml-document-bannerArea .titleBox {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: auto;
    max-width: calc(100% - 40px);
    padding: 0;
}

.ml-document-bannerArea .titleBox em {
    margin: 0;
    font-size: 50px;
    line-height: normal;
    color: #fff;
    font-weight: 500;
    text-transform: uppercase;
    text-align: center;
    font-style: normal;
}

.ml-document-bannerArea .bannerUnitTitle {
    margin: 0;
    padding: 0 0 5px;
    font-size: 20px;
    line-height: 1.45;
    font-weight: 400;
    color: #fff;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
}

.ml-document-bannerArea .bannerUnitTitle::after {
    content: "";
    width: 26px;
    height: 3px;
    background-color: #fff;
    position: absolute;
    left: 0;
    bottom: -2px;
}

.ml-document-bannerArea .bread {
    position: static;
    margin-bottom: 0;
    padding: 30px 0 20px;
}

.ml-document-bannerArea .bread .wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    padding: 0;
}

.ml-document-bannerArea .bread a,
.ml-document-bannerArea .bread span {
    display: inline-block;
    font-size: 14px;
    line-height: 1;
    letter-spacing: 0.5px;
    color: #fff;
    text-transform: uppercase;
}

.ml-document-bannerArea .bread a::after,
.ml-document-bannerArea .bread span::after {
    content: "/";
    font-size: 13px;
    color: #fff;
    padding: 0 9px;
}

.ml-document-bannerArea .bread a:last-child::after,
.ml-document-bannerArea .bread span:last-child::after {
    content: normal;
}

@media (max-width: 1200px) {
    .ml-document-bannerArea .bread {
        display: none;
    }
}

.ml-document-mainArea {
    background:
        repeat-y url("/wp-content/uploads/2026/03/line4.png") left 36px top,
        repeat-y url("/wp-content/uploads/2026/03/line4.png") right 36px top,
        repeat-y url("/wp-content/uploads/2026/03/line4.png") center top,
        repeat url("/wp-content/uploads/2025/11/Bg.png") center border-box;
    padding: 80px 0 60px;
}

.ml-document-wrap {
    width: min(100%, var(--ml-document-wrap));
    margin: 0 auto;
    padding: 0 20px;
}

.ml-document-titleBox.hidden {
    display: none;
}

.ml-document-contentBox {
    width: 100%;
}

.ml-document-classRowBox {
    position: relative;
    z-index: 3;
    margin-bottom: 30px;
    padding: 0 0 20px;
}

.ml-document-classLink {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    width: auto;
    margin: 0;
    padding: 0;
    list-style: none;
    border-radius: 0;
    overflow: visible;
}

.ml-document-classLink li {
    flex: 0 0 auto;
    position: relative;
    margin-right: 15px;
    margin-bottom: 10px;
}

.ml-document-classLink a {
    display: block;
    padding: 10px 15px;
    background-color: #fff;
    border: 1px solid rgba(4, 110, 184, 0.23);
    color: #000;
    font-size: 14px;
    line-height: 20px;
    font-weight: 400;
    letter-spacing: 1px;
    text-align: center;
    position: relative;
}

.ml-document-classLink a::after {
    content: normal;
}

.ml-document-classLink a:hover,
.ml-document-classLink a.current {
    background-color: #046eb8;
    color: #fff;
}

.ml-document-mClassLink {
    display: none;
    position: relative;
    z-index: 3;
    margin: 0;
}

.ml-document-mClassLink .main {
    position: relative;
    display: block;
    width: 100%;
    padding: 10px 30px 10px 10px;
    border: 0;
    background: #046eb8;
    color: #fff;
    font: inherit;
    font-size: 16px;
    line-height: 24px;
    letter-spacing: 1px;
    text-align: left;
    cursor: pointer;
}

.ml-document-mClassLink .main::after {
    content: "";
    position: absolute;
    right: 15px;
    top: 50%;
    width: 8px;
    height: 8px;
    border: solid currentColor;
    border-width: 0 1.5px 1.5px 0;
    transform: translateY(-70%) rotate(45deg);
    transition: transform 0.3s ease;
}

.ml-document-mClassLink.open .main::after {
    transform: translateY(-30%) rotate(-135deg);
}

.ml-document-mClassLink .mClassList {
    display: none;
    position: absolute;
    left: 0;
    top: calc(100% - 1px);
    z-index: 1;
    width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
    background: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.ml-document-mClassLink.open .mClassList {
    display: block;
}

.ml-document-mClassLink .mClassList a {
    display: block;
    position: relative;
    z-index: 1;
    padding: 14px 20px;
    font-size: 14px;
    line-height: normal;
    background-color: #fff;
    color: #000;
}

.ml-document-mClassLink .mClassList li + li {
    border-top: 1px solid #f2f2f2;
}

.ml-document-mClassLink .mClassList a.current {
    color: #046eb8;
}

.ml-document-tabContent {
    width: 100%;
}

.documentList {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -10px;
    padding: 0;
    list-style: none;
}

.documentList li {
    width: 25%;
    padding: 0 10px;
    margin-bottom: 36px;
}

.documentList li .item {
    display: flex;
    flex-direction: column;
}

.documentList li .Img {
    width: 100%;
    aspect-ratio: 4 / 3;
    min-height: 40px;
}

.documentList li .Img a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.documentList li .Img a img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transition: transform 0.5s ease;
}

.documentList li .Img:hover a img {
    transform: scale(1.1);
}

.documentList li:hover h3 a {
    color: #046eb8;
}

.documentList h3 {
    display: flex;
    justify-content: center;
    height: 50px;
    margin: 0;
    text-align: center;
}

.documentList h3 a {
    display: block;
    position: relative;
    padding: 15px 0 10px;
    color: #000;
    font-size: 20px;
    line-height: 1.2;
    font-weight: 700;
    cursor: pointer;
    overflow: visible;
}

.documentList p {
    margin: 0;
    font-size: 16px;
    line-height: 1.8;
    color: #474747;
    max-height: 70px;
    overflow: hidden;
}

.ml-document-empty {
    padding: 80px 0 110px;
    text-align: center;
}

.ml-document-empty h2 {
    margin: 0 0 12px;
    font-size: 28px;
    line-height: 1.4;
    color: #2f2f2f;
}

.ml-document-empty p {
    margin: 0;
    font-size: 16px;
    line-height: 1.8;
    color: #5f5f5f;
}

@media (max-width: 1300px) {
    .documentList li {
        width: 33.33%;
    }
}

@media (max-width: 1200px) {
    .ml-document-mainArea {
        background:
            repeat-y url("/wp-content/uploads/2026/03/line4.png") left 20px top,
            repeat-y url("/wp-content/uploads/2026/03/line4.png") right 20px top,
            repeat-y url("/wp-content/uploads/2026/03/line4.png") center top,
            repeat url("/wp-content/uploads/2025/11/Bg.png") center border-box;
        padding: 50px 0 40px;
    }

    .ml-document-classLink {
        display: none;
    }

    .ml-document-mClassLink {
        display: block;
    }

    .ml-document-bannerArea .titleBox em {
        font-size: 42px;
    }
}

@media (max-width: 840px) {
    .documentList li {
        width: 50%;
    }
}

@media (max-width: 720px) {
    .ml-document-mainArea {
        padding-bottom: 30px;
    }
}

@media (max-width: 480px) {
    .ml-document-bannerArea .titleBox em {
        font-size: 42px;
    }

    .ml-document-bannerArea .bannerUnitTitle {
        font-size: 16px;
    }

    .documentList li {
        width: 100%;
    }

    .documentList h3 a {
        height: auto;
        min-height: 50px;
    }
}
