@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@100..900&display=swap');

html {
    scroll-behavior:auto !important;

}

.w-45{
    width: 49.2% !important;
}

.w-12{
    width: 12% !important;
}

body{
    background-color: #F1D9BE;
    font-family: "Noto Sans TC", system-ui;
    font-optical-sizing: auto;
    scroll-behavior:auto !important;
}

.nav-link:active{
    background-color: transparent !important;
}

.warp-bg{
    background-color: #F1D9BE;
}

#smart-customer-btn{
    z-index: 999 !important;
}

.mb-flex, .mb-block{
    display: none !important;
}

img{
    width: 100% !important;
}

.t-line{
    border: #FF4E00 solid 1px;
}

.layout-col-8 {
    flex: 0 0 auto;
    width: 56.666667% !important;
}

.all-btn a :hover,.all-btn:hover{
    color: #f3ff4e;
}

/* font-size */
p,h3,h4,h5{
    letter-spacing: 0.03rem;
    margin-bottom: 0px;
}

h4{
    font-weight: 500;
}

h3,h2{
    font-weight: 800;
}

p{
    font-size: 18px;
    line-height: 1.35 !important;
}

.text-size-22 {
    font-size: 22px;
}

h5{
    font-size: 18px;
}

h4{
    font-size: 22px;
}

h3{
    font-size: 24px;
}

mark {
    background: linear-gradient(transparent 60%,rgba(243, 255, 78) 40%);
}

.fw-blod{
    font-weight: 800;
}

.fw-bloder{
    font-weight: 900;
}

.mt-m1{
    margin-top: -20px;
}

.mb-m1{
    margin-bottom: -20px;
}
.float-btn{
    display: block !important;
}
.smart-dialog{
    width: 10%;
    position: fixed;
    right: calc(3% - 0px);
    bottom: calc(50% - 320px);
    z-index: 990;
}

@media (max-width:1080px){
    .smart-dialog{
        width: 15%;				
        right: calc(3% - 0px);
        bottom: calc(45% - 215px);
    }
}

.gotop{
    margin-top: 95px;
}

/* color setting*/
.gray{
    color: #737373;
}

.white{
    color: #ffffff;
}

.tw-bg-white{
    background-color: #ffffff;
}

.bg-blue{
    background-color: #0F67E1;
}

.bg-yellow{
    background-color: #f3ff4e !important;
}

.red{
    color: #BA2922;
}

/* content setting */

.tw-text-center{
    text-align: center;
}

.text-right{
    text-align: right;
}

.relative{
    position: relative;
}

.fixed{
    position: fixed;
}

.inilne{
    display: inline;
}

.absolute{
    position: absolute;
}

.mr-2{
    margin-right: 4%;
}

.mr-1{
    margin-right: 2%;
}

.mr-0{
    margin-right: 1%;
}

.lh-2{
    line-height: 16px;
}

.no-warp{
    flex-wrap: nowrap !important;
}

.spaceline-gray{
    width: 98%;
    height: 2px;
    background-image:linear-gradient(to right, #B0B0B0 0%, #B0B0B0 50%, transparent 50%) ;
    background-size: 13px 3px;
    background-repeat: repeat-x;
    margin: 1rem auto;
}
.spaceline{
    width: 98%;
    height: 2px;
    background-image: linear-gradient(to right, #BA2922 0%, #BA2922 70%, transparent 70%);
    background-size: 13px 3px;
    background-repeat: repeat-x;
    margin: 1rem auto;
}

.icon{
    width: 5%;
    margin-right: 8px;
}

.right-\[79px\] {
    right: 83px;
}

.w-33{
    width: 33.3% !important;
}

.swiper-wrapper-n .swiper-horizontal>.swiper-wrapper-n  .swiper-pagination-bullets,.swiper-wrapper-n  .swiper-pagination-bullets.swiper-pagination-horizontal,.swiper-wrapper-n  .swiper-pagination-custom,.swiper-wrapper-n .swiper-pagination-fraction {
    bottom: var(--swiper-pagination-bottom, 8px);
    top: var(--swiper-pagination-top, auto);
    left: 35%;
    width: 29%;
}

/* rwd setting */
.mb{
    display: none;
}

.navbar{
    position: fixed !important;
    top: 0;
    z-index: 99;
    width: 100%;
}

.banner-top{
 margin-top: 69px;
}

.banner-bg{
    position: relative;
}

.ct3-n{
    margin-top: 8%;
}

.arrow-link {
    font-weight: bold;
    margin-top: -20px;
    margin-bottom: 40px;
}
@keyframes fadeInUp {
    0% {
      opacity: 0;
      transform: translateY(90px);
    }
    100% {
      transform: translateY(0);
    }
}  

@keyframes popup {
    0% {
      opacity: 0;
      transform: scale(0);
    }
    60% {
      opacity: 1;
      transform: scale(1.2);
    }
    100% {
      transform: scale(1);
    }
  }
  
@keyframes heartbeat {
  0%, 100% {
    transform: scale(1);
  }
  60% {
    transform: scale(1.1); 
  }
}

.float-btn{
    top: 49%;
    right: 3%;
    transform: translateY(-50%);
    z-index: 999;
}

.float-btn .btn1,.float-btn .btn2{
    width: 48px;
}

/* 標題大小 */
.title-4{
    width:263px;
}

.title-6{
    width:366px;
}
.title-8{
    width: 439px;
}
.title-9{
    width: 556px;
    margin-top: 7%;
}

.banner .title{
    width: 30%;
    top: 8%;
    left: 35%;
    transform: translate(-50%, -50%);
    animation: popup 0.5s ease-out forwards;   
}

.banner-bg .title-deco{
  width: 7%;
  top: 30.5%;
  right: 34.4%;
  transform: translate(-50%, -50%) scale(0);
  animation: popup 0.5s ease-out forwards, heartbeat 5s ease-in-out 0.8s infinite; 
}

.banner-bg .item-left{
    width: 19%;
    top: 21%;
    left: 12.5%;
    animation: fadeInUp 1s cubic-bezier(0.68, -0.55, 0.27, 1.55) forwards;
}

.banner-bg .item-right{
    width: 35%;
    top: 18.5%;
    right: 0;
    animation: fadeInUp 1s cubic-bezier(0.68, -0.55, 0.27, 1.55) forwards;
}

.banner-bg .item-cut{
    bottom: 0;
    width: 100%;
}

.banner-bg .persons{
    width: 35%;
    top: 63%;
    left: 33%;
    animation: fadeInUp 0.7s;
}


.ct1{
    margin-top: 6%;
}

.item-card{
    background-color: #FBF2E9;
    z-index: 2;
}

/* 0624新增 */
.navpop {
    font-size: 16px;
    background-color: #FFF3F5;
    border-bottom: #FFC0C4 solid 2px;
    position: fixed;
    margin-top: 66px;
    padding: 0.2rem 1rem;
    z-index: 888;
    width: 100%;
    display: flex;
    justify-content: center;
    transition: transform 2s ease-out;
    transform: translateY(0);
  }
  .navpop-warp {
    width: 650px;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .navpop img {
    width: 23px !important;
    margin-right: 8px;
  }
  .navpop a {
    text-decoration: none !important;
    color: #BA2922;
  }
  .card-bg {
    background-color: #FBF2E9; 
  }
  .flip-vertical {
    display: block;
    transform: scaleY(-1);
  }
  .w-4{
    width: 4% !important;
  }
  .tab-pane {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column; /* 如果要上下排列圖片、文字 */
    text-align: center;
  }
  .tagtitle1{
    width: 360px !important;
    margin-bottom: 20px;
    margin-top: 10px;
  }
  .tagimg2{
    width: 450px !important;
    margin-top: 10px;
  }
  .tagtitle2{
    width: 450px !important;
    margin-bottom: 20px;
    margin-top: 10px;
  }
  .tagimg1{
    width: 370px !important;
  }
  .arrow-link{
    font-size: 28px;
    font-weight: bold;
  }
  
  .card-bg {
    background: #FBF2E9; 
    border-radius: 8px;
    height: 100%; 
  }
  .flip-vertical {
    transform: rotate(180deg);
  }
  
  .navpop br {
    display: none;
  }
  .nav-close {
    padding: 0.5rem 0rem 0.5rem 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: transparent;
    border: none;
  }
  .navpop.slide-up {
    transform: translateY(-100%);
  }

  @media (max-width: 1076px) {
    .navpop {
        margin-top: 3px;
      }
  }

  @media (max-width: 820px) {
    .navpop {
      line-height: 1.25;
      font-size: 14px;
      margin-top: 15px;
      padding: 0.5rem 1.2rem;
    }
    .navpop br {
      display: block;
    }
    .act-margin{
        margin-left: 17%;
    }
  }
  @media (max-width: 550px) {
    .navpop {
        margin-top: -2px;
      }
  }
  @media (max-width: 400px){
    .act-margin{
        margin-left: 11%;
    }
  }
  @media (max-width: 375px){
    .act-margin{
        margin-left: 8%;
    }
  }
 
/* 查看更多獎項 */
.ct1 .accordion-button{
    background-color: #FF4E00;
    color: #ffffff;
    text-align: center;
    justify-content: center;
    padding: 0.5rem 1.25rem;
    border-radius: 4px!important;
}

.ct1 .accordion-button:hover,.ct1 .accordion-button:active{
    background-color: #da4100;
}

.ct1 .accordion-button::after,.ct5 .accordion-button::after{
    background-image: url(../img/arrow-s.svg);
    width: 12px;
    height: 12px;
    background-size: 12px;
    background-position: center;
}

.ct1 .accordion-item{
    background: transparent;
    display: flex;
    flex-direction: column-reverse;
    border: none;
}

.ct1 .accordion-button:focus{
    border-color: transparent;
    box-shadow: 0 0 0 0;
}

.ct1 .accordion-button::after{
    margin-left: 3%;
}

.ct1 .accordion-body .content .icon{
    width: 23px;
    height: auto;
}

/* .ct1 .layout-col-6{
    width: 60%;
} */

.ct1 .accordion-body .content .right{
    font-size: 18px !important;
    margin-left: 16px;
    width: 70%;
    /* margin-top: -1%; */
}

.ct1 .accordion-body{
    padding: 1rem 0rem;
}

.ct1 .accordion-body .content .mr{
    margin-left: 30px;
    width: 100%;
}

.yt-icon{
    width: 1.5rem !important;
}


.cut-deco-left,.cut-deco-right{
    width: 1.3%!important;
    top: 30px;
}

.cut-deco-left{
    left: -1px;
}

.cut-deco-right{
    right: -1px;
}

.card-deco-bottom{
    width: 4%!important;
    bottom: 16px;
    right: 25px;
}

.card-deco-star{
    width: 20% !important;
    top: 0;
    left: -32px;
}

.ct2 .card1,.ct2 .card2,.ct2 .card3{
    width: 32%;
}

.ct2 .txt{
    top:50%;
    left: 50%;
    transform: translate(-32%, -50%);
    z-index: 2;
}

.ct2 .button{
    width: 20%; 
    top: 12%;
    right: 6%; 
    transform: translateY(135%); 
    z-index: 1; 
    transition: transform 0.3s ease; /* 讓進入和離開 hover 都有過渡效果 */
}

.ct2 .card1 .txt{
    width: 54%;
}

.ct2 .card3 .txt{
    top: 51%;
    width: 50%;
    transform: translate(-34%, -50%);
}

.ct2 .button:hover { 
    transform: translateY(135%) translateX(16px); 
}

.mr-1{
    margin-right: 16px;
}

.nav-pills .nav-link{
    color: #0F67E1;
    background-color: #f3ff4e;
    /* 產生 border dash 的網站 https://kovart.github.io/dashed-border-generator/ */
    background-image: url("data:image/svg+xml,%3csvg width='100%25' height='100%25' xmlns='http://www.w3.org/2000/svg'%3e%3crect width='100%25' height='100%25' fill='none' stroke='%230F67E1' stroke-width='3' stroke-dasharray='6%2c 6' stroke-dashoffset='2' stroke-linecap='round'/%3e%3c/svg%3e");
    padding: 1.25rem 2.5rem;
    margin-bottom: 2px;
}

.nav-pills .nav-link:hover{
    color: #0F67E1;
    background-color: #e0eb48 !important;
}

.nav-pills .nav-link.active, .ct3 .nav-pills .show > .ct3 .nav-link{
    color: #f3ff4e;
    background-color: #0F67E1 !important;
}

.ct3 .right,.ct3 .left{
    width: 50%;
}

.ct3 .left{
    z-index: 2;
}

.ct3 .right .text{
    top: 50%;
    left: 50%;
    transform: translate(-43%, -59%);
}

@keyframes slideInRight {
    from {
        left: 25%;
    }
    to {
        left: 50%;
    }
}

.ct3 .right{
    position: absolute;
    width: 620px;
    top: 50%;
    left: 50%;
    transform: translate(-12%, -50%);
    z-index: 1;
    animation: slideInRight 0.6s ease-in forwards;  
}

.ct3 .t-67 {
    top: 67% !important;
}

.ct3 .t-45{
    top: 50% !important;
}

.ct3 .right .slide-in {
    animation: slideInRight 0.6s ease-in forwards;  
}

.nav-pills .nav-link {
    padding: 1rem;
    width: 10.5rem;
}

.ct3 .mr-0,.ct4 .mr-0{
    margin-right: 0px !important;
}

.ct3 .mr-2,.ct4 .mr-2{
    margin-right: 10px !important;
}

.ct3 .nav-warp,.ct4 .nav-warp{
    padding-bottom: 1px;
}

.ct3 .nav-warp , .ct3 .nav-tabs,.ct4 .nav-warp , .ct4 .nav-tabs{
    justify-content: center !important;
    flex-wrap: nowrap;
}

/* 全屏背景遮罩 */
.modal {
    display: none; /* 初始隱藏 */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3); /* 黑色透明背景 */
    z-index: 1000;
  }
  
  /* 彈窗內容（居中） */
  .modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* 將內容移動到正中央 */
    width: 80%; /* 可根據需要調整寬度 */
    max-width: 490px;
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  }
  
  /* 彈窗圖片 */
  .modal-content img {
    max-width: 100%;
    border-radius: 4px;
  }
  
  /* 關閉按鈕 */
  .close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    color: #333;
  }
  
  .close-btn:hover {
    color: red;
  }  


.ct4 .mySwiper{
    margin-top: -6px !important;
}

.ct4 .icon{
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    margin-top: 4px;
}

.ct4 .tag{
    background-color: #BA2922;
    color: #ffffff;
    padding: 2px 14px 4px;
    z-index: 99;
    top: -22px;
    left: 16px;
}

.swiper {
    width: 100%;
    height: 100%;
}

.swiper h3{
    font-size: 28px;
}

.swiper h4{
    font-size: 22px;
}

.ct4 .swiper-slide-card {
    padding:2rem 1.5rem;
    height: 410px!important;
    background-image: url(../img/ct4-card-bg.svg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.swiper-slide-card img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-deco{
    width: 28%;
    top: 23px;
    right: 16px;
}

.ct4 .spaceline{
    background-image: linear-gradient(to right, #BA2922 0%, #BA2922 70%, transparent 70%);
}

.ct4 a{
    text-decoration: none;
}

.ct4 .buy{
    width: 24%;
    height: auto;
}

.ct4 .side{
    width: 80%;
    top: -3%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 5;
}

.all-btn a{
    text-align: center;
    background-color: #BA2922;
    border-radius: 6px;
    padding: 1rem;
    width: 14rem;
}

.all-btn a:hover{
    background-color: #8C1A15;
    color: #ffffff;
}

.all-btn h3:hover{
    color: #ffffff;
}

.swiper-pagination{
    position: relative !important;
    bottom: var(--swiper-pagination-bottom, 0px) !important;
    margin-top: 2rem;
}

.ct4 .swiper-pagination-bullet{
    width: var(--swiper-pagination-bullet-width, var(--swiper-pagination-bullet-size, 16px));
    height: var(--swiper-pagination-bullet-height, var(--swiper-pagination-bullet-size, 16px));
    background: var(--swiper-pagination-bullet-inactive-color, #0F67E1);
    opacity: var(--swiper-pagination-bullet-inactive-opacity, .5);
}

.ct4 .swiper-pagination-bullet-active{
    opacity: var(--swiper-pagination-bullet-inactive-opacity, 1);
}

.ct4 .swiper-horizontal>.swiper-pagination-bullets .swiper-pagination-bullet, .swiper-pagination-horizontal.swiper-pagination-bullets .swiper-pagination-bullet {
    margin: 0 var(--swiper-pagination-bullet-horizontal-gap, 10px);
}

.ct4 .swiper-button-next,
.ct4 .swiper-button-prev {
  background-size: contain;
  background-repeat: no-repeat;
  width: 65px; 
  height: 65px;
  background-image: url('../img/swiper-arrow.png'); 
  color:transparent;
}
  
.ct4 .nav-tabs{
    justify-content: center !important;
}
/* ct5 */

.ct6 a, .ct5 a{
    text-decoration: underline!important;
}

.ct5{
    z-index: 1;
}


.ct5 .accordion-button{
    background-color: #0F67E1;
    color: #f3ff4e;
}

.ct5 .accordion-item {
    color: #0F67E1;
}

.ct5 .accordion-button:focus{
    box-shadow: none;
}

.ct5 .accordion-button::after{
    background-image: url(../img/arrow-s-yellow.svg);
}

.ct5 .ans-left{
    width: 22px;
}

.ct5 .txt{
    display: inline;
    width: 100%;
}

.ct5 .accordion-item{
    margin-bottom: 2px;
}

.ct6 .item .left{
    width: 1.5rem;
}

.ct7 .left1{
    padding-right: 13px;
}

.ct7 .left2{
    padding-right: 5px;
}

.ct6 .right, .ct7 .right{
    line-height: 1.75;
}

.stamp{
z-index: -2 !important;
}

.ct1 .stamp{
    width: 28%;
    right: 0;
    bottom: -95%;
}

.ct3 .stamp{
    width: 25%;
    left: 0;
    top: 360px;
}

.ct5 .stamp{
    width: 28%;
    right: 0;
    top: -110px;
    z-index: -1;
}

.ct6 .stamp{
    width: 33%;
    left: 7%;
    top: -14%;
    z-index: -1;
}
footer{
    background-color: #fff;
    margin-top: 72px;
}

/* 得獎名單 */
.ct-award .title{
    width: 15%;
}
.ct-award .a-card{
    margin-top: 3%;
}
.ct-award .a-card .item{
    width: 30%;
}
.a-card .mx{
    margin: 0 1rem;
}
#carouselExampleIndicators{
    margin-top: 60px;
}

/* Banner Keyframes*/

/* 浮動 */
@keyframes float-up {
    0%   { transform: translateY(0); }
    50%  { transform: translateY(-12px); }
    100% { transform: translateY(0); }
  }
  
  @keyframes float-down {
    0%   { transform: translateY(0); }
    50%  { transform: translateY(12px); }
    100% { transform: translateY(0); }
  }
  
  /* 進場滑入 */
  @keyframes slide-in-left {
    from { transform: translateX(-120vw); }
    60%  { transform: translateX(12px); }
    80%  { transform: translateX(-6px); }
    to   { transform: translateX(0); }
  }
  
  @keyframes slide-in-right {
    from { transform: translateX(120vw); }
    60%  { transform: translateX(-12px); }
    80%  { transform: translateX(6px); }
    to   { transform: translateX(0); }
  }
  
  /* KV：彈出 + 心跳 */
  @keyframes popScale {
    0%   { transform: translate(-50%, -66%) scale(0);   opacity: 1; }
    50%  { transform: translate(-50%, -66%) scale(1.12); opacity: 1; }
    75%  { transform: translate(-50%, -66%) scale(0.96); opacity: 1; }
    100% { transform: translate(-50%, -66%) scale(1);    opacity: 1; }
  }
  
  @keyframes heartbeat {
    0%, 100% { transform: translate(-50%, -66%) scale(1); }
    50%      { transform: translate(-50%, -66%) scale(var(--banner-title-heartbeat-scale, .96)); }
  }
  
  
  /* Positioning */
  
  .coin-left,
  .coin-right,
  .liberty,
  .train,
  .km {
    position: absolute;
  }
  
  .coin-left{
    width: 7% !important;
    left: 21%;
    top: -3%;
  }
  
  .coin-right{
    width: 5% !important;
    right: 23%;
    top: 6%;
  }
  
  .liberty {
    width: 14.7% !important;
    left: 4%;
    bottom: 0;
  }
  
  .train {
    width: 36% !important;
    right: 0%;
    top: 5%;
  }
  
  .km {
    width: 42% !important;
    left: 50%;
    top: 35%;
    transform: translateX(-50%);
  }
  
  
  /* Animation Apply */
  
  /* 浮動硬幣 */
  .coin-left  { animation: float-up   4s ease-in-out infinite; }
  .coin-right { animation: float-down 4s ease-in-out infinite; }
  
  /* 進場滑入 */
  .liberty { animation: slide-in-left  0.7s cubic-bezier(.2,.8,.2,1) 0s   both; }
  .train   { animation: slide-in-right 0.7s cubic-bezier(.2,.8,.2,1) 0.5s both; }
  
  /* KM：彈出後接心跳 */
  .animate-pop-in {
    animation:
      popScale   0.6s ease-out both 1s,
      heartbeat  5s ease-in-out infinite calc(1s + 0.6s);
    will-change: transform;
    transform-origin: center center;
  }
  .heartbeat {
    animation:
      heartbeat  3.5s ease-in-out infinite;
  }

  @media (max-width:590px){
    .train {
      width: 58% !important;
      right: 0%;
      top: unset;
      bottom: 5%;
    }
    .liberty {
        width: 30% !important;
        left: 2%;
        bottom: 0;
    }
    .km {
        width: 64% !important;
        left: 50%;
        top: 31%;
        transform: translateX(-50%);
    }
    .coin-left{
        width: 12% !important;
        left: 8%;
        top: 24%;
    }
    .coin-right{
        width: 10% !important;
        right: 8%;
        top: 26%;
    }
  }

  /* 按鈕動畫 */
  .arrow-size {
    width: 10px !important;  
    height: auto;  
  }

  .arrow-2{
    bottom: 12.4%;
    right: 6%;
  }
  
  /* 動畫 */
  .arrow-poke {
    display: inline-block;
    animation: poke-right 2s ease-in-out infinite;
    will-change: transform;
    margin-bottom: 3px;
  }
  
  @keyframes poke-right {
    0%   { transform: translateX(4px); }
    8%   { transform: translateX(0); }
    16%  { transform: translateX(4px); }
    24%  { transform: translateX(0); }
    32%  { transform: translateX(0); }
    40%  { transform: translateX(0); }
    100% { transform: translateX(0); }
  }
  @media (max-width:954px){
    .arrow-2{
        bottom: 15%;
        right: 5.4%;
      }
  }

  @media (max-width:926px){
    .arrow-2{
        bottom: 15.8%;
        right: 5.5%;
      }
    .arrow-size {
        width: 6px !important;  
    }
    .arrow-poke {
        margin-bottom: 3px;
      }
    @keyframes poke-right {
        0%   { transform: translateX(0); }
        8%   { transform: translateX(3px); }
        16%  { transform: translateX(0); }
        24%  { transform: translateX(3px); }
        32%  { transform: translateX(0); }
        40%  { transform: translateX(0); }
        100% { transform: translateX(0); }
    }
  }

.cta-pulse {
    transform-origin: center center !important;
    will-change: transform;
    backface-visibility: hidden;
    animation-delay: 0.7s; 
  }

  @media screen and (max-width:591px) {
    .cta-pulse {
        animation: pulse 2s linear infinite both;
        animation-delay: 1s;
    }
  }
  
  @keyframes pulse {
    0%   { scale: 1; }
    10%  { scale: 1.14; }
    20%  { scale: 1; }
    30%  { scale: 1.16; }
    40%  { scale: 1; }
    100% { scale: 1; }  
  }

.hover-point{
    cursor: pointer !important; 
}

/* 手機版卡片動畫 */
@keyframes rise-in {
    0%   { transform: translateY(180px); opacity: 0; }
    50%  { transform: translateY(-2px); opacity: 1; }
    100% { transform: translateY(0); opacity: 1; }
  }
  
  #pills-ct3-tabContent .tab-pane:not(.active) .right-mb,
  #pills-ct3-tabContent .tab-pane:not(.active) .right-mb + img {
    transform: translateY(16px);
    opacity: 0;
  }
  
  .slide-up-in {
    animation: rise-in 0.9s cubic-bezier(.2, .8, .2, 1) both; /* 0.9s ≈ 900ms */
    will-change: transform, opacity;
  }
  
  .mb-flex > img { display: block; width: 100%; height: auto; }
  
  @media (prefers-reduced-motion: reduce) {
    .slide-up-in { animation-duration: 1ms; }
  }

  .left-mb{
    margin-top: -3px;
  }

  .right-mb{
    z-index: 2;
  }
  .left-mb{
    z-index: 3;
  }

  .ct2 .all-btn a{
    width: 16rem;
  }

/* Investment knowledge tickets. */
.investment-heading-mobile { display: none; }
.investment-info { --ticket-paper: #FBF2E9; --ticket-blue: #0068F0; }
.investment-cards { width: 90%; max-width: 1280px; margin: 36px auto 0; display: grid; gap: 48px; }
.investment-ticket { position: relative; background: var(--ticket-paper); padding: 24px 8.5% 44px; min-width: 0; mask: radial-gradient(circle at 0 110px, transparent 15px, #000 15.5px) left / 51% 100% no-repeat, radial-gradient(circle at 100% 110px, transparent 15px, #000 15.5px) right / 51% 100% no-repeat; }
.investment-ticket::before, .investment-ticket::after { content: ""; position: absolute; left: 0; right: 0; height: 20px; background: url(../img/investment-ticket-edge.svg) 0 0 / 32px 20px repeat-x; }
.investment-ticket::before { top: 0; }
.investment-ticket::after { bottom: 0; transform: scaleY(-1); }
.investment-ticket { background: linear-gradient(var(--ticket-paper), var(--ticket-paper)) 0 20px / 100% calc(100% - 40px) no-repeat; }
.ct3 .investment-card-title { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 10px 0 24px; padding: 0; color: #1B1B1B; font-size: clamp(26px, 2.7vw, 36px); font-weight: 900; line-height: 1.35; letter-spacing: 0; }
.ct3 .investment-card-light { flex: 0 0 auto; width: 54px !important; height: 54px; object-fit: contain; }
.investment-card-title-copy { white-space: nowrap; }
.investment-card-title-blue { color: var(--ticket-blue); }
.investment-ticket-rule { border-top: 2px solid #999; }
.investment-ticket-row { display: flex; align-items: flex-start; gap: 8px; margin: 0; padding: 22px 0; border-bottom: 2px dashed #B0B0B0; font-size: clamp(18px, 1.8vw, 24px); line-height: 1.5; color: #1B1B1B; }
.investment-ticket-row > img { width: 24px !important; height: 24px; flex: 0 0 24px; margin-top: 6px; }
.investment-look-link { color: #BA2922; text-decoration: none; border-bottom: 1px solid currentColor; white-space: nowrap; }
.investment-look-link:hover, .investment-look-link:focus-visible { color: #DE453C; }
.investment-more-link { display: table; margin: 42px auto 0; color: var(--ticket-blue); border-bottom: 1px solid currentColor; text-decoration: none; font-size: 28px; font-weight: 700; line-height: 1.5; }
.investment-more-link:hover, .investment-more-link:focus-visible { color: #398CFF; }
.investment-more-link span { margin-left: 8px; }
.investment-controls { display: none; }
@media (max-width: 767px) {
    .investment-info .section-text-heading { font-size: clamp(22px, 6.2vw, 32px); }
    .investment-heading-desktop { display: none; }
    .investment-heading-mobile { display: inline; }
    .investment-cards { width: calc(100% - 32px); max-width: 430px; display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-top: 28px; }
    .investment-cards::-webkit-scrollbar { display: none; }
    .investment-ticket { flex: 0 0 100%; padding: 26px 28px 34px; scroll-snap-align: start; mask: radial-gradient(circle at 0 100px, transparent 12px, #000 12.5px) left / 51% 100% no-repeat, radial-gradient(circle at 100% 100px, transparent 12px, #000 12.5px) right / 51% 100% no-repeat; }
    .ct3 .investment-card-title { font-size: clamp(19px, 6vw, 26px); gap: 6px; margin: 10px 0 20px; }
    .ct3 .investment-card-light { width: 40px !important; height: 40px; }
    .investment-ticket-row { font-size: 18px; padding: 18px 0; gap: 7px; }
    .investment-ticket-row > img { width: 20px !important; height: 20px; flex-basis: 20px; margin-top: 4px; }
    .investment-controls { display: flex; justify-content: center; align-items: center; gap: 30px; margin-top: 18px; }
    .investment-prev, .investment-next { border: 0; border-radius: 50%; background: #F7FF43; width: 58px; height: 58px; padding: 14px; color: var(--ticket-blue); }
    .investment-controls svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
    .investment-dots { display: flex; gap: 12px; }
    .investment-dots button { padding: 0; width: 10px; height: 10px; border: 0; border-radius: 50%; background: #83B9FF; }
    .investment-dots button.is-active { background: var(--ticket-blue); }
    .investment-more-link { font-size: 23px; margin-top: 24px; }
}
@media (max-width: 360px) {
    .investment-ticket { padding-left: 20px; padding-right: 20px; }
    .ct3 .investment-card-light { width: 32px !important; height: 32px; }
    .investment-ticket-row { font-size: 16px; }
}

.investment-look-link,
.investment-more-link {
    transition: color 180ms ease;
}
@media (prefers-reduced-motion: reduce) {
    .investment-look-link,
    .investment-more-link { transition: none; }
}

/* Shared fixed texture for the campaign and stock listing pages. */
body.campaign-texture {
  isolation: isolate;
}
body.campaign-texture::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  background: url('../img/txrbg.png') center / cover no-repeat;
  z-index: -3;
  pointer-events: none;
}

/* Keep the listing texture above the body paint and below all content. */
body.hot-page::before { z-index: 0; }
body.hot-page > #app { position: relative; z-index: 1; }
body.hot-page .title-hot { max-width: none; }
