/* flex其他 add by scsb 宋潔 */
.flex_container {
    display: flex;
}

.flex_container {
    height: 100px;
}

.font {
    color: #fff;
    text-align: center;
    font-size: 50px;
}
.box2{
    display: flex;
    justify-content: space-around;
    gap: 16px;
}
.box {
    margin: 0 auto;
    /*區塊置中*/
    width: 275px;
}

.box_normal {
    height: 100px;
    line-height: 100px;
    text-align: center;
    margin: 0 auto;
    /*區塊置中*/
    font-size: 16px;
    color: #000000;
    flex-wrap: wrap;
    word-wrap: break-word;
}

.box_short {
    
    height: 100px;
    line-height: 100px;
    text-align: center;
    margin: 0 auto;
    /*區塊置中*/
    font-size: 16px;
    
}

.box_long {
    height: 300px;
    line-height: 300px;
}
.text_j
{
    text-align: justify;
}
/*雙語分行*/
.bilingual{
background-image: url(../images/about_img/en.svg);
  background-repeat: no-repeat;
  background-position: left center;
  background-size: 24px 24px;
}

/*紅利兌換news icon*/
#test2{
    float: right;
    height: 100px;
    width: 100px;
    background: #0062CC;
}





/*表格對角線*/
.diagonal-line {
    background-image: linear-gradient(to top left,
        white 49%,
        #747474,
        white 51%);
  }

  .sr-only{
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
  }
  
/*頁面如果要三個按鈕手機版*/
  @media (max-width: 991.98px) {
    .voucher-btn {
      flex-wrap: wrap;
    }
    .voucher-btn > .item:nth-last-child(3) {
      width: 100%;
    }
 
  }

  /*數位向前行無障礙虛線*/
  .eventWrap a:focus{
    outline: 2px dashed darkred;
    outline-offset: 3px;
  }

  /*導覽列設計*/
  .siteMapArea {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 24px 80px;
    }
    
    .siteMapHead {
    margin-bottom: 40px;
    text-align: center;
    }
    
    .siteMapEn {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 3px;
    color: #a71930;
    }
    
    .siteMapHead h2 {
    margin: 0 0 14px;
    font-size: 32px;
    font-weight: 700;
    color: #222;
    }
    
    .siteMapHead p {
    margin: 0 auto;
    max-width: 760px;
    line-height: 1.8;
    color: #555;
    }
    
    
    /* 卡片排列 */
    .siteMapGrid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin: 0;
    padding: 0;
    list-style: none;
    align-items: start;
    }
    
    
    /* 單一卡片 */
    .siteMapCard {
    padding: 26px 28px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 3px 14px rgba(0, 0, 0, .06);
    }
    
    
    /* 第一層標題 */
    .siteMapCard h3 {
    margin: 0 0 16px;
    padding-bottom: 13px;
    border-bottom: 3px solid #a71930;
    font-size: 21px;
    line-height: 1.5;
    }
    
    .siteMapCard h3,
    .siteMapCard h3 a {
    color: #222;
    }
    
    .siteMapCard h3 a {
    text-decoration: none;
    }
    
    
    /* 第二層 */
    .siteMapCard > ul {
    margin: 0;
    padding: 0;
    list-style: none;
    }
    
    .siteMapCard > ul > li {
    margin: 0;
    }
    
    
    /* 一般連結 */
    .siteMapCard li a {
    position: relative;
    display: block;
    padding: 9px 28px 9px 12px;
    border-radius: 5px;
    color: #333;
    line-height: 1.55;
    text-decoration: none;
    }
    
    .siteMapCard li a::before {
    content: "";
    position: absolute;
    left: 0;
    top: 18px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #a71930;
    }
    
    .siteMapCard li a::after {
    content: "›";
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    color: #777;
    font-size: 19px;
    }
    
    
    /* 次分類名稱，例如「外幣存款」 */
    .siteMapSubTitle {
    margin-top: 14px !important;
    padding: 8px 10px;
    background: #f5f5f5;
    border-left: 4px solid #a71930;
    font-weight: 700;
    color: #333;
    }
    
    .siteMapSubTitle:first-child {
    margin-top: 0 !important;
    }
    
    
    /* 滑鼠 */
    .siteMapCard li a:hover,
    .siteMapCard h3 a:hover {
    color: #8c1026;
    text-decoration: underline;
    }
    
    
    
    
    
    /* 平板 */
    @media (max-width: 991px) {
    
    .siteMapGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    
    }
    
    
    /* 手機 */
    @media (max-width: 767px) {
    
    .siteMapArea {
    padding: 40px 16px 60px;
    }
    
    .siteMapGrid {
    grid-template-columns: 1fr;
    gap: 18px;
    }
    
    .siteMapHead h2 {
    font-size: 26px;
    }
    
    .siteMapCard {
    padding: 22px;
    }
    
    }

    /*網站導覽頁*/
    .siteMapTitle {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 15px;
      }
      
      .siteMapTitle a {
      flex: 1;
      }
      
      .siteMapToggle {
      width: 44px;
      height: 44px;
      border: 0;
      background: transparent;
      cursor: pointer;
      font-size: 24px;
      }
      
      .siteMapToggle:focus-visible {
      outline: 1px dashed #ff002b;
      outline-offset: 3px;
      }
      
      .toggleIcon {
      display: block;
      }
      
      .sr-only {
      position: absolute;
      width: 1px;
      height: 1px;
      padding: 0;
      margin: -1px;
      overflow: hidden;
      clip: rect(0, 0, 0, 0);
      white-space: nowrap;
      border: 0;
      }


     /* ===================================
上海商銀公告視窗
白底黑字 / 紅橘漸層
=================================== */

/* 全畫面遮罩 */
#cookie_notice.notice1 {
  display: none;
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  bottom: auto;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.45);
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
  }
  
  /* 公告卡片 */
  #cookie_notice .cookie_more {
  position: relative;
  width: 100%;
  max-width: 520px;
  max-height: 85vh;
  overflow-y: auto;
  box-sizing: border-box;
  padding: 40px 32px 32px;
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 15px 45px rgba(0,0,0,.2);
  text-align: left;
  }
  
  /* 頂部漸層線 */
  #cookie_notice .cookie_more::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 8px;
  background: linear-gradient(
  90deg,
  #f47b45 0%,
  #e95765 50%,
  #d93670 100%
  );
  }
  
  /* 標題區 */
  #cookie_notice .notice-header {
  text-align: center;
  margin-bottom: 28px;
  }
  
  #cookie_notice .notice-en {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  letter-spacing: 1.5px;
  color: #222222;
  }
  
  #cookie_notice .notice-title {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.4;
  color: #222222;
  }
  
  /* 公告內文 */
  #cookie_notice .main_notice {
  margin: 0 0 28px;
  padding: 0;
  background: #ffffff;
  color: #222222;
  }
  
  #cookie_notice .main_notice p,
  #cookie_notice .main_notice .h5_color {
  margin: 0 0 16px;
  color: #222222;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.8;
  }
  
  #cookie_notice .main_notice p:last-child {
  margin-bottom: 0;
  }
  
  /* 右上角關閉 */
  #cookie_notice #close1 {
  position: absolute;
  top: 14px;
  right: 16px;
  float: none;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #222222;
  opacity: 1;
  font-size: 28px;
  line-height: 36px;
  text-align: center;
  cursor: pointer;
  }
  
  #cookie_notice #close1:hover {
  color: #a92750;
  }
  
  /* 確認按鈕 */
  #cookie_notice .notice-confirm {
  display: block;
  width: 100%;
  padding: 13px 20px;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(
    90deg,
    #f47b45 0%,
    #e95765 50%,
    #d93670 100%
    );
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  cursor: pointer;
  }
  
  #cookie_notice .notice-confirm:hover {
  background: #982347;
  }

  #cookie_notice .notice-title:focus{
    outline: none;
  }
  
  /* 鍵盤焦點 */
  #cookie_notice button:focus-visible {
    outline: 1px dashed #ff002b;
  outline-offset: 3px;
  }
  
  /* 手機版 */
  @media (max-width: 576px) {
  #cookie_notice.notice1 {
  padding: 16px;
  }
  
  #cookie_notice .cookie_more {
  max-height: 90vh;
  padding: 44px 20px 24px;
  }
  
  #cookie_notice .notice-title {
  font-size: 22px;
  }
  
  #cookie_notice .main_notice p {
  font-size: 15px;
  }
  }

  /* ==============================
公告視窗 - 手機版修正
============================== */

/* 全畫面遮罩 */
#cookie_notice.notice1 {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  bottom: auto;
  z-index: 99999;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
  }
  
  /* 公告卡片 */
  #cookie_notice .cookie_more {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 520px;
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  overflow: hidden;
  box-sizing: border-box;
  }
  
  /* 標題不捲動 */
  #cookie_notice .notice-header {
  flex-shrink: 0;
  }
  
  /* 只有公告內文可以捲動 */
  #cookie_notice .main_notice {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  text-align: justify;
  text-justify: inter-ideograph;
  }
  
  /* 確認按鈕保持在底部 */
  #cookie_notice .notice-confirm {
  flex-shrink: 0;
  margin-top: 16px;
  }
  
  /* 手機版 */
  @media (max-width: 576px) {
  
  #cookie_notice.notice1 {
  padding: 12px;
  }
  
  #cookie_notice .cookie_more {
  max-height: calc(100vh - 24px);
  max-height: calc(100dvh - 24px);
  padding: 44px 20px 20px;
  border-radius: 12px;
  }
  
  #cookie_notice .notice-header {
  margin-bottom: 16px;
  }
  
  #cookie_notice .notice-title {
  font-size: 22px;
  }
  
  #cookie_notice .main_notice {
  margin-bottom: 0;
  padding-right: 6px;
  }
  
  #cookie_notice .main_notice p {
  font-size: 15px;
  line-height: 1.7;
  }
  
  #cookie_notice .notice-confirm {
  width: 100%;
  margin-top: 16px;
  padding: 12px 16px;
  }
  }

  /*cookies 字樣式*/
  .ft-333{
    color: #333;
    text-align: center;
    text-align: justify;
    font-size:14px;
  }
  .logo{
    justify-content:flex-end;
  }