﻿*,
html,
body {
    margin: 0;
    padding: 0;
    font-family: 'Noto Sans TC', sans-serif;
    box-sizing: border-box;
}

.highlight {
    background: #FB8700F2 !important;
    color: #000 !important;
}

.header {
    padding: 1.5rem 2.5rem;

}

.nav {
    padding: 0.5rem 0 0.5rem 2.5rem;
    background-color: #2861B8;
}

.nav .left {
    width: 80%;
    display: inline-block;
}

.nav .left a {
    display: inline-block;
    padding: 0.5rem 0.5rem;
    font-size: 1.25rem;
    text-decoration: none;
    color: #fff;
    font-weight: bold;
    background: linear-gradient(to right, #95C6EAF2, #7091CDE6);
    margin: 0.25rem 0.125rem;
    border-radius: 56px;
    position: relative;
}

.nav .left a:hover {
    background: linear-gradient(to right, #FBCC3DF2, #FB8700F2);
    color: #fff;
}


.nav .right {
    width: 20%;
    margin-left: -0.5rem;
    padding-right: 0.5rem;
    text-align: right;
    display: inline-block;
    position: relative;
}

.nav .right .search {
    width: 100%;
    padding: 12px 36px 12px 12px;
    border-radius: 30px;
    font-size: 1.25rem;
    border: none;

}

.nav .right img {
    top: 15px;
    right: 20px;
    position: absolute;
    cursor: pointer;
}

.nav .right .resultList {
    width: 100%;
    max-height: 300px;
    top: 55px;
    position: absolute;
    text-align: left;
    background: #fff;
    list-style: none;
    overflow-x: hidden;
    overflow-y: auto;
    display: none;
}

.nav .right .resultList.open {
    display: block;
}

.nav .right .resultList li {
    padding: 4px 6px;
    cursor: pointer;
}

.nav .right .resultList li:hover {
    background: #FB8700F2;
}

.navMenu {
    display: none;
}

.kv {
    margin-bottom: 5%;
}

.kv img {
    width: 100%;
}

.contBlock {
    padding: 1% 0;
}

.contBlock:nth-child(even) {
    background: #F0F8FF;
}

.title_img {
    display: block;
    margin: 0 auto;
}

footer {
    background: #1A2F6E;
    display: flex;
    color: white;
    align-items: center;
    justify-content: space-evenly;
    padding: 14px 0;
}

footer div {
    display: flex;
    align-items: center;
}

footer div img {
    margin-right: 14px
}

footer .footer_info {
    display: block;
}

footer .phone {
    display: none;
}

footer .phone a {
    text-decoration: underline;
    display: inline-block;
    color: #fff;
}

.contBox {
    max-width: 75%;
    margin: 3rem auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.contBox div,
.contBox a {
    width: 20%;
    border-radius: 8px;
    margin: 2% 0% 2% 6%;
    box-shadow: 1px 3px 5px 1px rgba(0, 0, 0, 0.2);
    display: block;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}

/* .contBox div:nth-child(4n+1),
.contBox a:nth-child(4n+1) {
    margin-left: 0;
} */

.four-per-row .page-items:nth-child(4n+1) {
  margin-left: 0;
}

.three-per-row .page-items:nth-child(3n+1) {
  margin-left: 0;
}

.contBox div p,
.contBox a p {
    height: 90px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.contBox div p span,
.contBox a p span {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    text-overflow: ellipsis;
}

.contBox div img,
.contBox a img {
    width: 100%;
    height: 120px;
    /* 圖片高度固定 */
    object-fit: cover;
    /* 裁剪圖片使其適應容器 */
    border-top: 1px solid #ddd;
}

.contBlock:nth-child(odd) .contBox p {
    background: #F0F8FF;
}

.contBox p {
    margin: 0;
    padding: 0 2%;
    font-size: 1.25rem;
    color: #1A2F6E;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-weight: bold;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}


.popupBlock {
    width: 100%;
    height: 100%;
    position: fixed;
    background: rgba(0, 0, 0, 0.3);
    top: 0;
    display: none;
}

.popupBox {
    position: absolute;
    width: 75%;
    height: 90%;
    margin: 0 auto;
    background: #fff;
    border-radius: 10px;
    padding: 2rem;
    top: 1%;
    left: 50%;
    transform: translate(-50%);
}

.popupBox ul ul {
    padding-left: 2rem;
    list-style: none;
}

.popupBox .closeBtn {
    display: flex;
    justify-content: flex-end;
}

.popupBox .closeBtn img {
    cursor: pointer;
}

.popupCont {
    overflow-y: auto;
    height: 90%;
    margin-top: 30px;
    font-size: 1.25rem;
}

.wrap img {
    width: 100%;
}

.wrap h1 {
    text-align: center;
    color: #1A2F6E;
    font-size: 2.25rem
}

.contBox .pagination {
    width: 100%;
    margin: 1rem auto 0;
    text-align: center;
    box-shadow: none;
}

.contBox .pagination button {
    color: #959595;
    background: none;
    border: none;
    padding: 0;
    margin: 0 8px;
    outline: none;
    font: inherit;
    cursor: pointer;
}

.contBox .pagination button.active {
    color: #1A2F6E;
    background: none;
    border: none;
    padding: 0;
    margin: 0 8px;
    outline: none;
    font: inherit;
    cursor: pointer;
}

.contBox.newsBox div {
    width: 100%;
    height: 100%;
    margin: 1% auto;
    box-shadow: none;
    cursor: auto;
}

.contBox.newsBox a {
    width: 60%;
    margin: 0 auto;
    padding: 1% 1% 1% 2%;
    border: 2px solid #1A2F6E;
    border-radius: 16px;
    text-align: left;
    color: #2861B8;
    background: #fff;
}

.contBox.newsBox a span {
    display: inline-block;
}

.contBox.newsBox a .newsDate {
    margin-right: 8px;
    color: #999;
}

.contBox.newsBox a .newsTitle {
    font-weight: 700;
    text-decoration: underline #2861B8;
}

.contBox.newsBox a:hover .newsTitle {
    color: #FB8700F2;
    text-decoration: underline #FB8700F2;
}

.contBox.qaBox {
    display: block;
}

.contBox.qaBox div {
    width: 100%;
    height: 100%;
    margin: 2% auto;
    box-shadow: none;
}

.contBox.qaBox .page-items button {
    width: 70%;
    margin: 0 auto;
    padding: 1% 1% 1% 2%;
    position: relative;
    z-index: 1;
    border: 2px solid #1A2F6E;
    border-radius: 16px;
    font-size: 1rem;
    text-decoration: none;
    text-align: left;
    color: #000;
    background: #fff;
}


.contBox.qaBox .qaAnswer {
    display: none;
}

.contBox.qaBox .qaAnswer.open {
    width: 70%;
    height: 100%;
    padding: 24px 16px 16px;
    margin: -16px auto 0;
    font-size: 16px;
    font-weight: normal;
    display: block;
    text-align: left;
    cursor: auto;
    color: #fff;
    background: #505C7D;
}
/* .contBox.qaBox .qaAnswer.open {
    width: 70%;
    height: 100%;
    padding: 24px 16px 16px;
    margin: -16px auto 0;
    font-family: 'Noto Sans TC', sans-serif;
    font-size: 16px;
    font-weight: normal;
    display: block;
    text-align: left;
    cursor: auto;
    color: #fff;
    background: #505C7D;
} */
.contBox.antiWebBox {
    justify-content: center;
}

.contBox.antiWebBox a {
    width: 11.5%;
    margin-left: 1%;
}

.contBox.antiWebBox a:nth-child(4n+1) {
    margin-left: 1%;
}

.contBox.antiWebBox p {
    height: 60px;
    font-size: 12px;
}

.contBox.antiWebBox .antiImg {
    max-height: 100px;
    padding: 0 4px;
}

.rwd-section-aml {
  padding: 0 5vw; /* ⬅️ 根據視窗寬度自動調整 */
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
}
/* 內層左右容器 */
.rwd-section-aml .aml-container {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  gap: 20px;
  flex-wrap: wrap;
}

/* 左側文字 */
.rwd-section-aml .aml-text {
  width: 48%;
  font-size: clamp(16px, 2vw, 20px);
  line-height: 2.5; /* ✔️恢復原本寬鬆行距 */
  text-align: justify;
  text-indent: 2em;
  transform: translateY(-0.48em);
}

/* 右側圖片容器 */
.rwd-section-aml .aml-image {
  width: 48%;
  display: flex;
  align-items: stretch;
}

/* 圖片樣式（✔️不裁切） */
.rwd-section-aml .aml-image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
  /* object-fit: contain;  // 可選，加上會縮放整圖但不裁切 */
  /* aspect-ratio: 4 / 3; // 若圖片比例不重要可移除 */
}

.anti-money-vertical {
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem 1rem;
  box-sizing: border-box;
}

.anti-money-vertical .section-title {
  text-align: center;
  margin-bottom: 2.5rem;
}

.anti-money-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  max-width: 800px; /* ✅ 圖片與文字統一寬度 */
  margin: 0 auto;
}

.anti-money-image img {
  width: 100%;        /* ✅ 滿版於統一寬度下 */
  height: auto;
  display: block;
  border-radius: 8px;
}

.anti-money-text {
  font-size: 18px;
  line-height: 1.9;
  text-align: center; 
  /* text-align: justify;
  text-indent: 2em; */
  width: 100%;        /* ✅ 同樣滿版於600px寬度下 */
}
.poster-modal {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background-color: white; /* ✅ 白底 */
  z-index: 9999;
  justify-content: center;
  align-items: center;
}

.poster-modal__img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain; /* ✅ 不失真 */
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.2);
}

.poster-modal__close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 40px;
  color: black;
  cursor: pointer;
  z-index: 10000;
}

.whitebox-modal {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.5); /* 半透明黑背景 */
  z-index: 9999;
  justify-content: center;
  align-items: center;
}

.whitebox-content {
  position: relative;
  background-color: white;
  padding: 1rem;
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(0,0,0,0.3);
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.whitebox-content img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
}

.whitebox-close {
  position: absolute;
  top: 8px;
  right: 12px;
  font-size: 28px;
  font-weight: bold;
  color: #333;
  cursor: pointer;
}

@media screen and (max-width: 1080px) {
    .header {
        padding: 1rem 2.5rem;
        position: relative;
    }

    .hamburger {
        width: 30px;
        height: 40px;
        position: absolute;
        top: 20px;
        right: 15px;
        -webkit-transform: rotate(0deg);
        -moz-transform: rotate(0deg);
        -o-transform: rotate(0deg);
        transform: rotate(0deg);
        -webkit-transition: .5s ease-in-out;
        -moz-transition: .5s ease-in-out;
        -o-transition: .5s ease-in-out;
        transition: .5s ease-in-out;
        cursor: pointer;
    }

    .hamburger span {
        display: block;
        position: absolute;
        height: 4px;
        width: 100%;
        background: #2861B8;
        border-radius: 9px;
        opacity: 1;
        left: 0;
        -webkit-transform: rotate(0deg);
        -moz-transform: rotate(0deg);
        -o-transform: rotate(0deg);
        transform: rotate(0deg);
        -webkit-transition: .25s ease-in-out;
        -moz-transition: .25s ease-in-out;
        -o-transition: .25s ease-in-out;
        transition: .25s ease-in-out;
    }


    .hamburger span:nth-child(1) {
        top: 0px;
    }

    .hamburger span:nth-child(2),
    .hamburger span:nth-child(3) {
        top: 13px;
    }

    .hamburger span:nth-child(4) {
        top: 26px;
    }

    .hamburger.open span:nth-child(1) {
        top: 13px;
        width: 0%;
        left: 50%;
    }

    .hamburger.open span:nth-child(2) {
        -webkit-transform: rotate(45deg);
        -moz-transform: rotate(45deg);
        -o-transform: rotate(45deg);
        transform: rotate(45deg);
    }

    .hamburger.open span:nth-child(3) {
        -webkit-transform: rotate(-45deg);
        -moz-transform: rotate(-45deg);
        -o-transform: rotate(-45deg);
        transform: rotate(-45deg);
    }

    .hamburger.open span:nth-child(4) {
        top: 26px;
        width: 0%;
        left: 50%;
    }

    .nav,
    .nav .left,
    .nav .right {
        display: none;
    }

    .nav div a {
        font-size: 1.1rem;
    }

    .navMenu {
        display: none;
        background: #2861B8;
        margin: 0;
        padding: 0;
        text-align: center;
        font-size: 1.125rem;
        list-style: none;
    }

    .navMenu.open {
        display: block;
    }

    .navMenu li {
        padding: 1px 0;
        position: relative;
        cursor: pointer;
    }

    .navMenu li a {
        padding: 10px 0;
    }

    .navMenu li li:last-child {
        border: none;
    }

    .navMenu li a {
        width: 100%;
        color: #fff;
        display: block;
        text-decoration: none;
    }

    .navMenu li a:hover {
        background: #fff;
        color: #2861B8;
    }

    .navMenu .searchBox {
        width: 100%;
        margin-left: -0.5rem;
        padding: 0.5rem;
        border-bottom: 1px solid #fff;
        text-align: center;
        display: inline-block;
        position: relative;
    }

    .navMenu .searchBox div {
        width: 300px;
        margin: 0 auto;
        position: relative;
    }

    .navMenu .searchBox .search {
        width: 300px;
        padding: 8px 36px 8px 8px;
        border-radius: 30px;
        font-size: 1.1rem;
        border: none;
    }

    .navMenu .searchBox img {
        top: 9px;
        right: 20px;
        z-index: 2;
        position: absolute;
        cursor: pointer;
    }

    .navMenu .searchBox .resultList {
        width: 100%;
        max-height: 300px;
        top: 58px;
        z-index: 1;
        position: absolute;
        text-align: left;
        background: #fff;
        list-style: none;
        overflow-x: hidden;
        overflow-y: auto;
        display: none;
    }

    .navMenu .searchBox .resultList.open {
        display: block;
    }

    .navMenu .searchBox .resultList li {
        padding: 4px 6px;
        cursor: pointer;
    }

    .navMenu .searchBox .resultList li:hover {
        background: #FB8700F2;
    }

    .navMenu div a {
        font-size: 1.1rem;
    }

    .contBox div p,
    .contBox a p {
        font-size: 1rem;
    }

    .contBox.newsBox a {
        width: 80%;
    }

    .contBox.qaBox .page-items button {
        width: 80%;
    }

    .contBox.qaBox .qaAnswer.open {
        width: 80%;
    }

    .contBox.antiWebBox a {
        width: 15.5%;
    }

    footer {
        flex-direction: column;
    }

    footer div {
        margin: 0.5rem auto;
    }
}

@media screen and (max-width: 992px) {

    .contBox.newsBox,
    .contBox.qaBox {
        max-width: 80%;
    }

    .contBox.newsBox div {
        width: 90%;
    }


}

@media screen and (max-width: 768px) {

    .contBox div {
        width: 48%;
        margin: 1%;
    }

    .contBox div p {
        font-size: 1.25rem;
    }

    .contBox a {
        width: 48%;
        margin: 1%;
    }

    .contBox a p {
        font-size: 1.1rem;
    }

    .cont div {
        padding: 1.5rem 0;
    }

    .contBox.newsBox a .newsDate {
        display: block;
    }

    .contBox.newsBox div {
        width: 100%;
    }

    .contBox.antiWebBox a {
        width: 22.5%;
    }

    /* .rwd-block {
      flex-direction: column !important;
    }
    .rwd-text,
    .rwd-image {
      width: 100% !important;
    }
    .rwd-image {
      margin-top: 1.5rem;
    } */
        .rwd-block {
      flex-direction: column !important;
    }
    .rwd-text,
    .rwd-image {
      width: 100% !important;
    }
    .rwd-image {
      margin-top: 1.5rem;
    }
    .rwd-image img {
      height: auto !important;
    }

   .rwd-section-aml .aml-container {
    flex-direction: column;
    gap: 16px;
  }

  .rwd-section-aml .aml-text,
  .rwd-section-aml .aml-image {
    width: 100%;
  }

  .rwd-section-aml .aml-text {
    font-size: 16px;
    line-height: 1.8;
    padding: 0 4px;
  }

  .rwd-section-aml .aml-image img {
    aspect-ratio: auto;
    height: auto;
  }

    .amla-section .text {
    font-size: 18px;
    line-height: 1.8;
    padding: 0 0.5rem;
  }
}

@media screen and (max-width:576px) {

    /* .contBox div p {
        font-size: 1.1rem;
    } */
    .contBox.antiWebBox a {
        width: 30.5%;
    }

    footer {
        font-size: 20px;
    }

    footer .footer_info {
        display: none;
    }

    footer .phone {
        display: block;
    }

    footer .phone a {
        width: 50%;
    }

    footer .phone span:nth-child(1) {
        display: inline-block;
    }
}