@charset "UTF-8";
@font-face {
  font-family: 'Noto Sans TC';
  font-style: normal;
  font-weight: 400;
  src: url("https://www.yuantabank.com.tw/bankwebIMG/event/fonts/NotoSansTC-Regular.otf") format("opentype");
  font-display: swap; }

@font-face {
  font-family: 'Noto Sans TC';
  font-style: normal;
  font-weight: 500;
  src: url("https://www.yuantabank.com.tw/bankwebIMG/event/fonts/NotoSansTC-Medium.otf") format("opentype");
  font-display: swap; }

@font-face {
  font-family: 'Noto Sans TC';
  font-style: normal;
  font-weight: 700;
  src: url("https://www.yuantabank.com.tw/bankwebIMG/event/fonts/NotoSansTC-Bold.otf") format("opentype");
  font-display: swap; }

/* ------------------------------- main ------------------------------- */
* {margin: 0; padding: 0;/* box-sizing: border-box; */}
body{width: 100%; height: 100%; font-family: 'Noto Sans TC','微軟正黑體', 'MS UI Gothic',Arial, Helvetica, sans-serif; font-size: 12px; }
table{width: 100%; border-collapse: collapse; border-spacing: 0;}
table,tr,th,td{margin: 0; padding: 0;}
img{margin: 0; padding: 0; display: block;}

.main{width: 100%; max-width: 1920px; margin: 0 auto; overflow: hidden; color: #303035; padding-top: 80px; font-size: 12px; background: #E9EFFF;}
.section{width: 100%; max-width: 1920px; margin: 0 auto;}
/* kv */
.kv_container{width: 100%; margin: 0 auto; background: #FFEFE7 url("../images/kv_bg.png") center top no-repeat; background-size: cover;}
.kv{width: 100%; max-width: 1920px; height: 560px; margin: 0 auto; position: relative;}
.kv .kv_tit{width: 35%; position: absolute; top: 16%; left: 32%; animation-duration: 1.5s;}
.kv .arrow1{width: 4%; position: absolute; top: 17%; left: 21%;
      -webkit-animation: coin 2s ease-in-out infinite alternate;
              animation: coin 2s ease-in-out infinite alternate;}
.kv .arrow2{width: 4%; position: absolute; top: 24%; right: 29%;
      -webkit-animation: coin 2s ease-in-out infinite alternate-reverse;
              animation: coin 2s ease-in-out infinite alternate-reverse;}
/* content */
.content_container{width: 100%; margin: 0 auto; color: #333333;}
.content{width: 100%; max-width: 1440px; margin: 0 auto; padding: 0 6%; background: #E9EFFF;}
/* info */
.info{width: 100%; margin: 0 auto; position: relative;}
.info-wrap{justify-content: center; gap: 30px; padding: 30px; border-radius: 15px; background: #FFFFFF;margin: 3% 3%;}
.info-item{min-width: 300px; padding: 7px 0; text-align: center; margin-bottom:20px;}
.info-line{width: 1px; background: #EEF2FF;}
.info-title{display: inline-block; width: 200px; font-size: 20px; font-weight: 700; line-height: 2; color: #FFF; border-radius: 20px; background-color: #6281D2;}
.info-text{margin-top: 10px; font-size: 20px; line-height: 1.8;}
.add-txts{margin: 1% 1% 2%; font-size: 14px; line-height: 1.4;color: #005ec4; font-weight: 500;}
.info-txts ol {margin: 0; padding-left: 18px; list-style-type: decimal; padding-left: 24px;}
.info-note{margin-top: 10px; font-size: 16px; line-height: 1.8; color: #333333; text-align: center;}
/* form */
.rate-header {
 border-radius: 20px 20px 0px 0px
}
.rate-item {
  padding: 20px 10px;
  text-align: center; /* 圖二：文字水平置中 */
  border-bottom: 1px solid #eee;
  display: flex;
  flex-direction: column; /* 圖二：垂直堆疊 */
}

.rate-item:last-child { border-bottom: none; }
.range {
  color: #333;
  font-size: 1.1rem;
}
.value {
  color: #333;
  font-size: 1rem;
}

.percent {
  color: #ff4d4f; /* 圖二：鮮艷紅色 */
  font-weight: bold;
  font-size: 1.6rem; /* 放大加碼數值 */
}
.cta-area{
  text-align: center; margin: 3% 0% 5% 0%;
}
.cta{
display: inline-block;
  background-color: #ff4d6d; /* 圖片紅色的近似值 */
  color: #ffffff;
  padding: 15px 30px;
  text-decoration: none;
  border-radius: 10px; 
  font-size: 18px;
  letter-spacing: 3px;
  transition: background-color 0.3s ease;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  margin: 0 auto;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}
/* 滑鼠移入效果 */
.cta:hover {
  background-color: #fa4364; /* 圖片紅色的近似值 */
  cursor: pointer;
  transform: scale(1.05) translateY(-3px);
}
.arrow {
    /* 箭頭基礎樣式 */
    display: inline-block;
    margin-left: 5px; /* 與文字的間距 */
    transition: transform 0.3s ease-out; /* 動畫過渡 */
}
.cta:hover .arrow {
    /* 鼠標懸停時箭頭的變化 */
    transform: translateX(6px); /* 放大並向右移動 */
}

/* block-action */
.block-action{display: flex; align-items: center; justify-content: center; gap: 20px 50px; padding-bottom: 6%;}
.btn{display: flex; align-items: center; justify-content: center; gap: 10px; width: 220px; height: 60px; font-size: 22px; font-weight: 700; line-height: 1; color: #FFF; border-radius: 10px; background-color: #F24541; text-decoration: none; cursor: pointer; }
.btn img{flex: 0 0 auto; width: 22px; }
.btn span{flex: 0 0 auto; padding-bottom: 2px; }
.btn.-bu{background-color: #005ec4;}

.notice-list-number{padding-left:3%;}
.notice-list-chinese{padding-left:1%;}

  @media only screen and (min-width: 1024px) {
    .btn{transition: .3s; }
      .btn:hover{transform: scale(1.1); } }
/* notice */
.notice_container{background: #F9F8F8;}
.notice {width: 100%; max-width: 1440px; margin: 0 auto; padding: 4% 9%;}
.notice-title {font-size: 22px; font-weight: 700; line-height: 1.8; text-align: center;}
.notice-content {margin-top: 20px; padding-top: 20px; font-size: 16px; line-height: 2; border-top: 1px solid #303030;}
.notice-content a{text-decoration: underline; color: #ed1c24; z-index:5;}
.notice-content ol{}
.notice-content ol>li{margin: 0;}
.notice-content ol>li>span{font-weight: 500; text-decoration: underline;}
.notice-content ol>li>ol{}
.notice-content ol>li>ol>li{list-style: none; position: relative; counter-increment: section 1;}
.notice-content ol>li>ol>li::before {
    content: "(" counter(section) ")";
    position: absolute;
    top: 0px;
    left: -5px;
    transform: translateX(-100%);
}
/* float */
.float {position: fixed; top: 200px; right: 20px; width: 50px; z-index: 50; display: flex; flex-direction: column; align-items: center; gap: 10px;}
.float-item {display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 20px 10px; border-radius: 10px; background-color: #F94B4B; font-size: 18px;}
.float-item img {width: 22px; }
.float-item div {color: #FFF; letter-spacing: 1px; -webkit-writing-mode: vertical-lr; -ms-writing-mode: tb-lr; writing-mode: vertical-lr;}
.float-item.-blue {margin-top: 16px; background-color: #3a78e1;}
.onlymob{display: none;}

@media screen and (max-width: 1670px) {
    /* kv */
    .kv{width: 100%; max-width: 1600px; height: 0; padding-bottom: 28.75%;}
}
@media only screen and (max-width: 1293px) {
  .table-2{width: 410px;}

}
@media only screen and (max-width: 1239px) {
    /* info */
    .info-item{min-width: 220px;}
    .info-title{width: 160px; font-size: 18px;}
    .info-text{font-size: 18px;}
    .info-note{font-size: 16px;}
    /* float */
    .float {right: 12px; width: 40px;}
    .float-item {padding: 20px 10px; font-size: 16px;}
    .float-item img {width: 18px;}
}
@media screen and (max-width: 1024px) {
    .main{padding-top: 76px;}
    /* info */
    .info-wrap{gap: 15px; padding: 10px;}
    .info-item{min-width: 190px;}
    .info-title{font-size: 16px;}
    .info-text{font-size: 16px;}
    .info-note{margin-top: 10px; font-size: 14px;}
    .info-txts{width:100%;}
    /* notice */
    .notice-content {font-size: 15px; line-height: 1.8;}
    .notice-title {font-size: 18px;}
}
@media screen and (max-width: 767px) {
    .main{padding-top: 58px;}
    /* kv */
    .kv_container{width: 100%; background: none;}
    .kv{width: 100%; max-width: 767px; height: 0; padding-bottom: 119.153846%; background: url("../images/kv_bg_m.png") center top no-repeat; background-size: 100% auto; position: relative;}
    .kv .kv_tit{position: static; width: 79%; margin: 0 auto; padding-top: 12%;}
    .kv .arrow1{width: 9%; top: 49%; left: 32%;}
    .kv .arrow2{width: 9%; top: 45%; right: 15%;}
    /* info */
    .info-wrap{flex-direction: column;}
    .info-line{display: none;}
    .info-item{min-width: 220px;}
    .info-title{width: 160px; font-size: 18px;}
    .info-text{font-size: 16px;}
    .info-note{font-size: 16px;}
    /* block-action */
    .block-action{gap: 20px; padding-bottom: 8%;} 
    /* float*/
    .float {display: flex; width: 100%; top: auto; bottom: 0; right: 0; flex-direction: row; gap: 0;}
    .float-item {flex: 1; flex-direction: row; justify-content: center; padding: 15px 10px;  border-radius: 0; font-size: 15px; line-height: 18px;}
    .float-item div {
          -webkit-writing-mode: initial;
              -ms-writing-mode: initial;
                  writing-mode: initial; }
    .float-item.-blue {margin-top: 0;}

    .cta-area{margin: 5% 15% 5% 15%;display: none;}
    .onlymob{display: block;}

    /* 1. 解除表格原本的顯示模式，釋放內部元素 */
  .rate-table, 
  .rate-table thead, 
  .rate-table tbody, 
  .rate-table tr {
    display: contents; /* 讓內部的 th 和 td 可以直接參與外層的網格排版 */
  }

  /* 2. 將外層容器轉為單欄的 Grid 網格 */
  .rate-table-container {
    display: grid;
    grid-template-columns: 1fr; /* 單欄排列 */
    width: 100%;
    background-color: #ffffff; /* 配合圖片整體底色 */
    border-radius: 8px;        /* 配合圖片外觀圓角 */
    overflow: hidden;
  }

  /* 3. 透過 CSS grid-row 屬性，精確指派每一個區塊的上下順序 */
  
  /* [第一組：美元] */
  .rate-table th:nth-child(1) { grid-row: 1; }
  .rate-table td:nth-child(1) { grid-row: 2; }
  
  /* [第二組：外幣] */
  .rate-table th:nth-child(2) { grid-row: 3; }
  .rate-table td:nth-child(2) { grid-row: 4; }
  
  /* [第三組：臺幣] */
  .rate-table th:nth-child(3) { grid-row: 5; }
  .rate-table td:nth-child(3) { grid-row: 6; }

  /* 4. 手機版元素細飾（留白與字型大小） */
  .rate-table th {
    display: block;
    background-color: #2e54af; /* 配合圖片的深藍色 */
    color: #ffffff;
    padding: 18px 10px;
    font-size: 18px;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.2); /* 淡淡的分隔線 */
  }

  .rate-table td.rate-highlight {
    display: block;
    background-color: #ffffff; /* 內容改為白底 */
    color: #d81b60;           /* 配合圖片的桃紅/深紅字 */
    padding: 20px 10px;
    font-size: 26px;
    font-weight: bold;
    text-align: center;
    border-bottom: 1px solid #e0e0e0; /* 內容下方的灰色細線 */
  }

  /* 移除最後一項內容的底線，保持乾淨 */
  .rate-table td:nth-child(3) {
    border-bottom: none;
  }

    
}
@media screen and (max-width:600px) {
    /* block-action */
    .block-action{flex-direction: column; padding-top: 5%;} 
}
@media screen and (max-width:480px) {
    .content{padding: 2% 3% 7%;}
    /* form */

    /* block-action */
    .block-action{padding: 0 0 10%;}
    /* notice */
    .notice {padding: 8% 6%;}
    .notice-content {font-size: 14px;}
    .info-note{font-size: 12px;}
}

/* 表格 */
.rate-table-container {
  max-width: 600px;
  margin: 20px auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.rate-table {
  width: 100%;
  border-collapse: collapse;
  background-color: #fcfcfc;
}

.rate-table thead {
  background-color: #3552A7; /* 藍色表頭 */
  color: white;
}

.rate-table th, .rate-table td {
  padding: 16px;
  text-align: center;
  border: 1px solid #e0e0e0;
  font-size: 20px;
}

.rate-table th {
  font-weight:500;
  font-size: 18px;
}

.rate-highlight {
  color: #e91e63; /* 紅色利率 */
  font-weight: bold;
}

.stext{font-size: 20px;}

/* 響應式調整 */
@media (max-width: 480px) {
  .rate-table th, .rate-table td {
    padding: 10px;
    font-size: 1.2em;
  }
}











@-webkit-keyframes coin {
  0% {
    transform: translateY(-8%); }
  100% {
    transform: translateY(8%); } }

@keyframes coin {
  0% {
    transform: translateY(-8%); }
  100% {
    transform: translateY(8%); } }

@keyframes icon {
  0% {
    transform: scale(1); }
  100% {
    transform: scale(1.04); } }