/*
  Structure instruction：
    # [Default Css]
      - [Root Css]: :root { ... }
      - [Structure]: html, body, main, #wrap ...
      - [HtmlTag]: h1, a, ::-webkit-scrollbar ...

    # [Plugins]
      - [Plugins Modified]: Bootstrap Modals...
      - [Plugins SelfMade]: My Modals...

    # [Public Style]
      - [Simple Css]: typesetting, color, fonts ... ( Single Css )
      - [Components]: btn, avatar, input, radio ... ( Single item, styled htmlTag )
      - [Templates]: user_btn, user_alert18_Box ... ( Use when more than 2 pages, custom )

    # [Pages]
      - [Include Page]: header, footer
      - [Current Page]: #login, #about

    -- Author Comebuy
*/

@import url(https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@300;400;500;700&display=swap);

/*######### [Default Css] #########*/
  /*====== [Root Css] ======*/
    :root {
      --100vh: 100vh;
      --ff-default: 'Noto Sans TC';
      --comp-h: 44px;

      --c-primary: #00367C;
      --c-secondary: #707070;
      --c-light: #e5e5e5;
      --c-warning: #F16521;
      --c-warning-hover: #bb4112;
      --section-gap: 60px;

      --fs-h1: 42px;
      --fs-h2: 36px;
      --fs-h3: 24px;
      --fs-h4: 20px;
      --fs-h5: 18px;
      --fs-h6: 16px;
    }

    @media (max-width: 767.98px) {
      :root {
        --section-gap: 36px;
      }
    }
    @media (max-width: 575.98px) {
      :root {
        --fs-h1: 36px;
        --fs-h2: 30px;
        --fs-h3: 20px;
        --fs-h4: 18px;
        --fs-h5: 16px;
        --fs-h6: 14px;
      }
    }


  /*====== [Structure] ======*/
    html { scroll-behavior: smooth; font-size: 16px; }
    body { font-family: var(--ff-default), 'Microsoft JhengHei', sans-serif; font-size: var(--fs-h6); }
    #wrap { display: flex; flex-direction: column; min-height: var(--100vh); margin-left: auto; margin-right: auto; }
    main { flex-grow: 1; }


  /*====== [Default Html] =======*/
    a { color: var(--bs-dark); text-decoration: none; }
    a:hover { color: inherit; text-decoration: none; }
    label { margin-bottom: 0; }
    input[type=checkbox], input[type=radio] { width: 1.5rem; height: 1.5rem; vertical-align: middle; accent-color: var(--c-primary); }



/*######### [Plugins] #########*/
  /*====== [Plugins Modified] ======*/
    /*=== Bootstrap ===*/
      /* container */
      @media (min-width: 1200px) {
        .container-xxl, .container-xl, .container-lg, .container-md, .container-sm, .container { max-width: 1140px; }
      }

      /* btn */
      .btn { 
        --bs-btn-padding-y: 0.375rem; --bs-btn-padding-x: 0.5rem; font-weight: bold;
        --bs-btn-border-radius: 4px; --bs-btn-box-shadow: none; --bs-btn-focus-box-shadow: none;
        min-height: var(--comp-h); display: inline-flex; align-items: center; justify-content: center; transition: all 0s; }
      [class*=btn-outline-] { --bs-btn-bg: #fff; }
      .btn-outline-primary { 
        --bs-btn-color: var(--c-primary); --bs-btn-border-color: var(--c-primary);
        --bs-btn-hover-color: #fff; --bs-btn-hover-bg: var(--c-primary); --bs-btn-hover-border-color: var(--c-primary);
        --bs-btn-active-color: #fff; --bs-btn-active-bg: var(--c-primary); --bs-btn-active-border-color: var(--c-primary);
        --bs-btn-disabled-color: var(--c-primary); --bs-btn-disabled-bg: transparent; --bs-btn-disabled-border-color: var(--c-primary);
      }
      .btn-warning { 
        --bs-btn-color: #fff; --bs-btn-bg: var(--c-warning); --bs-btn-border-color: var(--c-warning);
        --bs-btn-hover-color: #fff; --bs-btn-hover-bg: var(--c-warning-hover); --bs-btn-hover-border-color: var(--c-warning-hover);
        --bs-btn-active-color: #fff; --bs-btn-active-bg: var(--c-warning-hover); --bs-btn-active-border-color: var(--c-warning-hover);
        --bs-btn-disabled-color: #fff; --bs-btn-disabled-bg: var(--c-warning); --bs-btn-disabled-border-color: var(--c-warning);
      }
      .btn-white { 
        --bs-btn-color: black; --bs-btn-bg: white; --bs-btn-border-color: white;
        --bs-btn-hover-color: black; --bs-btn-hover-bg: rgba(255,255,255,0.85); --bs-btn-hover-border-color: rgba(255,255,255,0.85);
        --bs-btn-active-color: black; --bs-btn-active-bg: rgba(255,255,255,0.85); --bs-btn-active-border-color: rgba(255,255,255,0.85);
        --bs-btn-disabled-color: black; --bs-btn-disabled-bg: white; --bs-btn-disabled-border-color: rgba(255,255,255,0.85);
      }


      .btn-lg { --bs-btn-padding-y: 0.5rem; --bs-btn-padding-x: 1rem; min-height: 58px; }
      @media (max-width: 575.98px) {
        .btn-lg { min-height: 52px; }
      }

      /* modal */
      .modal-content { position: relative; border-radius: 0; }
      .modal-header { padding: 0.5rem 1.5rem; font-size: var(--fs-h4); justify-content: center; border-radius: 0; border-bottom: 0; background-color: var(--c-primary); color: white; }
      .modal-body { padding: 1.5rem; font-size: var(--fs-h5); border: 1px solid #aaa; }
      .modal_buttons { padding-top: 1.5rem; justify-content: center; }
      .modal-backdrop + .modal-backdrop { display: none; }
      @media (max-width: 575.98px) {
        .modal-header { padding: 0.5rem 1rem; }
        .modal-body { padding: 1rem; }
      }

      /* other */
      .popover-body { --bs-popover-body-padding-x: 1rem; --bs-popover-body-padding-y: 0.75rem; }
      .table { margin-bottom: 0; }
      .table > :not(caption) > * > * { padding: 0.25rem 0.5rem; }
      .form-control, .form-select { border-radius: 0; font-size: var(--fs-h6); }
      .form-control:focus, .form-select:focus { box-shadow: none !important; }


  /*====== [Plugins Extend] ======*/
      .ratio-3x2 { --bs-aspect-ratio: 66.66%; }


  /*====== [Plugins SelfMade] ======*/
    /*=== js- ===*/



/*######### [Public Style] #########*/
  /*====== [Simple Css] ======*/
    /*=== typesetting ===*/
      .h-100vh { height: var(--100vh); }
      .max-w-390 { max-width: 390px; }
      .max-w-960 { max-width: 960px; }
        .max-w-1024 {
            max-width: 1120px;
        }

      .flex-center { display: flex; align-items: center; justify-content: center; }
      .flex-center-a { display: flex; align-items: center; }

      .py-section { padding-block: var(--section-gap); }

      .ch-gy-2 > *:not(:last-child) { margin-bottom: 0.5rem; }
      .ch-gy-3 > *:not(:last-child) { margin-bottom: 1rem; }
      .ch-gx-3 > *:not(:last-child) { margin-right: 1rem; }


    /*=== text ===*/
      .fs-h1 { font-size: var(--fs-h1); }
      .fs-h1-b { font-size: var(--fs-h1); font-weight: bold; }
      .fs-h2 { font-size: var(--fs-h2); }
      .fs-h2-b { font-size: var(--fs-h2); font-weight: bold; }
      .fs-h3 { font-size: var(--fs-h3); }
      .fs-h3-b { font-size: var(--fs-h3); font-weight: bold; }
      .fs-h4 { font-size: var(--fs-h4); }
      .fs-h5 { font-size: var(--fs-h5); }
      .fs-h6 { font-size: var(--fs-h6); }

      .wb-ba { word-break: break-all; }
      .ch-va-m > * { vertical-align: middle; }


    /*=== color ===*/
      .c-primary { color: var(--c-primary) !important; }
      .c-warning { color: var(--c-warning) !important; }
      .bg-light { background-color: var(--c-light) !important; }
      .bg-primary { background-color: var(--c-primary) !important; }


    /*=== other ===*/
      .pointer { cursor: pointer; }
      .img-cover { object-fit: cover; }
      .img-render { image-rendering: -webkit-optimize-contrast; }



  /*====== [Components] ======*/
    /*=== alink ===*/
      .alink, .alink:hover { text-decoration: underline; color: inherit; }


    /*=== checkbox ===*/
      ._ckb { position: relative; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; cursor: pointer; }
      ._ckb:hover { opacity: 0.9; }
      ._ckb > * { vertical-align: middle; }
      ._ckb > input[type=checkbox] { position: absolute; z-index: 0; opacity: 0; height: 0; width: 0; }
      ._ckb > input[type=checkbox]:disabled ~ * { opacity: 0.6; cursor: not-allowed; }

      /* checkbox switch style */
      ._ckb > input[type=checkbox] ~ ._ckb_switch { --height: var(--comp-h, 38px); --width: 76px; --padding: 5px; --circle: calc( var(--height) - (var(--padding) * 2) ); --bg-true: var(--c-primary); --bg-false: var(--c-secondary); 
        display: inline-flex; align-items: center; position: relative; color: #fff; outline: 1px solid #eee;  background-color: var(--bg-false); border-radius: var(--height); height: var(--height); width: var(--width); box-shadow: inset 0px 0px 0px 0px var(--bg-false); transition: box-shadow 0.4s ease; }
      ._ckb > input[type=checkbox]:checked ~ ._ckb_switch { background-color: var(--bg-true); box-shadow: inset 0px 0px 0px 16px var(--bg-true); transition: box-shadow 0.4s ease, background-color 0.8s ease; }

      /* switch - ball */
      ._ckb > input[type=checkbox] ~ ._ckb_switch::after { content:""; background: #fff; border-radius: 100%; position: absolute; top: var(--padding); left: var(--padding); height: var(--circle); width: var(--circle); transition: background-color 0.4s ease, left 0.2s ease; }
      ._ckb > input[type=checkbox]:checked ~ ._ckb_switch::after { left: calc(100% - var(--circle) - var(--padding)); }

      /* switch - body */
      ._ckb > input[type=checkbox] ~ ._ckb_switch::before { --txt-padding: 12px; content: ''; display: block; margin-inline: auto; padding-inline: calc(var(--circle) + var(--padding) + var(--txt-padding)) var(--txt-padding); }
      ._ckb > input[type=checkbox]:checked ~ ._ckb_switch::before { content: ''; display: block; padding-inline: var(--txt-padding) calc(var(--circle) + var(--padding) + var(--txt-padding)); }
      
      /* switch - text */
      ._ckb > input[type=checkbox] ~ [ckb-false]::before { content: attr(ckb-false); }
      ._ckb > input[type=checkbox]:checked ~ [ckb-true]::before { content: attr(ckb-true); }
      
      /* switch - text in checkbox */
      ._ckb > input[type=checkbox] ~ ._ckb_switch[ckb-true] { --width: unset; }
      ._ckb > input[type=checkbox] ~ ._ckb_switch[ckb-true]::before { transition: all 0.2s ease; }
        /* e.g. 
          <label class="_ckb">
              <input type="checkbox">
              <div class="_ckb_switch" ckb-true="已訂閱" ckb-false="未訂閱"></div>
              <span ckb-true="是" ckb-false="否"></span>
          </label>
        */


    /*=== others ===*/
      .comp { min-height: var(--comp-h); display: inline-flex; align-items: center; }
      .icon_info { display: inline-block; vertical-align: middle; cursor: pointer; width: 22px; height: 22px; background: url(../img/icon/icon_info.svg) center center no-repeat; background-size: contain; }


  /*====== [Templates] ======*/
    /*=== banner ===*/
      .banner { display: flex; justify-content: center; align-items: center; height: clamp(200px,30vw,300px); color: var(--c-primary); background: center center no-repeat; background-size: cover; }
      .banner-title { font-size: 60px; font-weight: 500; margin: 0; text-shadow: 0px 0px 8px #fff; }
      @media (max-width: 767.98px) {
        .banner { height: 100px; }
        .banner-title { font-size: 30px; }
      }


    /*=== sections ===*/
      .section-title-block { max-width: 960px; margin-inline: auto; text-align: center; }
      .section-title { font-size: var(--fs-h2); font-weight: bold; color: var(--c-primary); margin-bottom: 0; }


    /*=== circle-tabs ===*/
      .circle-tabs { display: flex; list-style: none; padding: 24px 0; margin: 0 auto; max-width: 720px; }
      .circle-tabs > .circle-tab { --circle-size: 36px; --color: var(--c-primary); counter-increment: circle-tab; flex: 1; display: flex; padding-top: var(--circle-size); color: var(--color); position: relative; white-space: nowrap; }
      .circle-tabs > .circle-tab:first-child { flex: 0; }

      .circle-tabs > .circle-tab::before { /* 文字左邊空格 */ content: ''; width: 100%; } 
      .circle-tabs > .circle-tab:first-child { width: auto; }
      .circle-tabs > .circle-tab.active ~ .circle-tab { --color: #999; }

      .circle-tabs > .circle-tab:not(:first-child)::after { /* 線 */ content: ''; position: absolute; right: var(--circle-size); width: 100%; height: 2px; top: calc(var(--circle-size) / 2); background: var(--color); z-index: 0; }
      .circle-tabs > .circle-tab.active:after { background: var(--color); }

      .circle-tabs > .circle-tab > .tab-text { position: relative; z-index: 1; line-height: 1; padding-top: 8px; }
      .circle-tabs > .circle-tab > .tab-text::before { /* 圓 */ content: counter(circle-tab); position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); display: flex; align-items: center; justify-content: center; 
        height: var(--circle-size); width: var(--circle-size); border: 1px solid var(--color); border-radius: 50px; background: var(--color); color: #fff; font-weight: bold; }
      .circle-tabs > .circle-tab.active ~ .circle-tab .tab-text::before { background: #fff; border-color: var(--color); color: var(--color); }


    /*=== selectBox ===*/
      .selectBox { border: solid 2px var(--c-primary); height: 100%; border-radius: 12px; padding: 24px; background: #fff; }
      .selectBox input[type=radio], .selectBox input[type=checkbox] { width: 2rem; height: 2rem; }
      .selectBox-head { display: flex; flex-wrap: wrap; align-items: center; padding: 24px; margin: -24px; cursor: pointer; user-select: none; }
      .selectBox-head .selectBox-icon { order: 0; padding-right: 12px; }
      .selectBox-head .selectBox-icon > img { width: 36px; }
      .selectBox-head .selectBox-ckb { order: 1; margin-left: auto; align-self: start; pointer-events: none; }
      .selectBox-head .selectBox-title { order: 2; width: 100%; margin-top: 0px; font-size: var(--fs-h3); font-weight: bold; white-space: nowrap; }
      .selectBox-head .selectBox-info { order: 3; display: none; cursor: pointer; margin-left: 10px; width: 22px; height: 22px; background: url(../img/icon/icon_info.svg) center center no-repeat; background-size: contain; }
      .selectBox-body { position: relative; padding: 16px 24px 24px 24px; margin: 16px -24px -24px -24px; }
      .selectBox-body::before { content: ''; display: block; position: absolute; width: calc(100% - 48px); left: 24px; top: 0; height: 1px; background: #777; }
      @media (max-width: 767.98px) {
        .selectBox { max-width: 500px; margin-inline: auto; }
        .selectBox-head .selectBox-ckb { order: 4; align-self: center; }
        .selectBox-head .selectBox-title { width: auto; margin-top: 0;}
        .selectBox-head .selectBox-info { display: block; }
        .selectBox-body { display: none; }
      }


    /*=== prev-next-btn-block ===*/
      .prev-next-btn-grp { display: flex; justify-content: center; margin-inline: auto; max-width: 390px; }


    /*=== modal ===*/
      /* 小彈窗 */
      .modal_tiny {}
      .modal_tiny > .modal-dialog { width: 340px; margin: 1.75rem auto; }
      .modal_tiny .modal-content { box-shadow: 4px 4px 4px rgba(130,130,130,0.5);  }
      @media (max-width: 575.98px) {
        .modal_tiny > .modal-dialog { width: 300px; }
      }

      /* 彈窗右上角X按鈕 */
      .modal .close-btn { position: absolute; right: 16px; top: 16px; padding: 12px; cursor: pointer; }
      .modal .close-btn::after { content: ''; display: block; width: 24px; height: 24px; background: url(../img/icon/icon_close.svg) center center no-repeat; background-size: contain; }
      .modal .modal-header .close-btn { right: 0px; top: 1px; }
      .modal .modal-header .close-btn::after { width: 20px; height: 20px; }
      @media (max-width: 575.98px) {
        .modal .close-btn::after { right: 8px; top: 8px; width: 20px; height: 20px; }
        .modal .modal-header .close-btn::after { width: 18px; height: 18px; }
      }



/*######### [Pages] #########*/
  /*====== [Include Page] ======*/
    /*=== header ===*/
      header { --header-height: 85px; --logo-block-width: 315px; }
      header { z-index: 10; position: sticky; top: 0; display: flex; align-items: center; height: var(--header-height); background: linear-gradient(to right, #003084 , #009fe8); }
      header::before { content: ''; z-index: 1; position: absolute; left: 0; top: 0; display: block; height: 4px; width: 100%; background: var(--c-warning); }
      .header-pc-deco { position: absolute; z-index: 0; inset: 0; display: none; --logo-block-bg-width: max(calc((100% - 1140px) / 2 + var(--logo-block-width)), var(--logo-block-width)); }
      .header-pc-deco > ._top { position: absolute; left: 0; top: 0; height: 20px; width: 100%; background: #1A397F; }
      .header-pc-deco > ._bot { position: absolute; left: 0; bottom: 0; height: 20px; width: 100%; background: #fff; }
      .header-pc-deco > ._logo { position: absolute; left: 0; bottom: 2px; height: 68px; width: var(--logo-block-bg-width); z-index: 2; background: #fff; border-radius: 0 16px 0 0; padding-inline: 16px 24px; }
      .header-pc-deco > ._menu { position: absolute; right: 0; bottom: 2px; height: 68px; width: calc(100% - var(--logo-block-bg-width)); background: linear-gradient(to bottom, #1A397F 0%, #495F92 85%, #8493BE 100%); border-radius: 0 0 0 16px; }

      .header-container { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; padding-inline: 0; }
      .header-logo-block { display: flex; align-items: center; justify-content: end; padding: 12px 24px 0 18px; width: var(--logo-block-width); }
      .header-logo-block > ._eLink { font-size: var(--fs-h3); font-weight: bold; color: var(--c-primary); line-height: 1; letter-spacing: 2px; margin: 0 0 auto auto; white-space: nowrap; }
      .header-logo-block > ._eLink:hover { color: var(--c-primary); }

      header .navbar-toggler { border: 0; box-shadow: none !important; }
      header .collapse-backdrop-mobile { display: none; position: fixed; left: 0; top: var(--header-height); background-color: rgba(0,0,0,0.3); width: 100%; height: 100vh; }
      header .collapse-backdrop-mobile[aria-expanded="true"] { display: block; }
      header .nav-item > .nav-link { color: #fff; font-weight: 400; }
      header .nav-item > .nav-link:hover { color: #ddd; }
      @media (max-width: 767.98px) {
        header { --header-height: 60px; }
        header::before { height: 3px; }
        .header-logo-block { --logo-block-width: 225px; padding: 0 12px; }
        .header-logo-block > ._eLink { margin: auto 0 auto auto; color: #fff; font-size: 18px; font-weight: 400; }
        .header-logo-block > ._eLink:hover { color: #ddd; }
        header .navbar-collapse { position: fixed; left: 0; top: var(--header-height); background-color: var(--c-primary); width: 100%; }
        header .nav-item > .nav-link { text-align: center; font-size: var(--fs-h5); padding: 14px; border-top: 1px solid #fff; }
        header .nav-item:last-child > .nav-link { border-bottom: 1px solid #fff; }
      }

      .icon_menu { width: 26px }
      .icon_menu::after, .icon_menu::before, .icon_menu span { background-color: #fff; border-radius: 3px; content: ''; display: block; height: 2px; width: 100%; margin: 6px 0; transition: all .2s ease-in-out; }
      [aria-expanded=true] .icon_menu::after { transform: translateY(-8px) rotate(-135deg); }
      [aria-expanded=true] .icon_menu::before { transform: translateY(8px) rotate(135deg); }
      [aria-expanded=true] .icon_menu span { opacity: 0; }


/*=== footer === display: flex;*/
      footer { z-index: 8; position: relative;  padding: 32px; background-color: var(--c-primary); color: white; }
      .footer-logo { height: 66px; }
      @media (max-width: 767.98px) {
        .footer-logo { height: 48px; }
      }





  /*====== [Current Page] ======*/
    /*=== existAcc_qrCode.html ===*/
      ._ckb._ckb_qr > input[type=checkbox] ~ ._ckb_switch { --bg-true: #486287; --bg-false: #d2d2d2; --padding: 0px; min-width: 100px; }
      ._ckb._ckb_qr > input[type=checkbox] ~ ._ckb_switch::before { font-size: 18px; font-weight: bold; text-shadow: 1px 1px 2px #666; }
      ._ckb._ckb_qr > input[type=checkbox] ~ ._ckb_switch::after { background: #6692d2 url(../img/icon/icon_qrcode.png) center center no-repeat; background-size: 24px 24px; }

      .colorCard { border-radius: 10px; padding: 24px; text-align: center; }
      .colorCard._info { background-color: #e5efff; }
      .colorCard._gray { background-color: #f2f2f2; }
      
      .colorCard--title { font-size: var(--fs-h3); font-weight: bold; color: var(--c-primary); margin-block: 0.5rem 1.5rem; }
      .colorCard--row > * { height: 170px; display: flex; flex-direction: column; align-items: center; }
      @media(max-width: 575.98px){
        .colorCard--row > * { height: auto; }
        .colorCard--title { margin-block: 0rem 1rem; }
      }

      .colorCard--img { width: 100px; height: 100px; margin-bottom: 8px; position: relative; }
      .colorCard--img > img { position: absolute; display: block; left: 0; top: 0; visibility: hidden; width: 100%; }
      .colorCard--desc { font-size: var(--fs-h4); margin: auto; }


    /*=== newAcc_bank.html ===*/
      .selectBox.any_bank .selectBox-head { color: #fff; }
      /*.selectBox .selectBox-info { order: 1; display: block !important; align-self: flex-end; margin-bottom: 6px; }*/
      .any_bank_bg_outside { display: flex; align-items: center; justify-content: center; width: 100%; }
      .any_bank_bg_inside { display: flex; align-items: center; flex-wrap: wrap; flex: 0 1; }
      .selectBox.any_bank .selectBox-body::before { display: none; }
      @media (max-width: 767.98px) {
        .any_bank_bg_inside { flex-wrap: nowrap; border-radius: 8px; background: var(--c-primary); padding: 8px; margin: -8px 0px -8px -8px; }
        /*.selectBox .selectBox-info { align-self: center; margin-bottom: 0; }*/
      }
      @media (min-width: 768px) {
        .any_bank_bg_outside { border-radius: 8px; background: var(--c-primary); padding: 0.5rem; margin-bottom: -16px; }
      }

/* WFNewAcckind.aspx、WFNewAcc.aspx */
.gou {
    appearance: none;
    position: relative;
    width: 20px;
    height: 20px;
    background: #fff;
    border: none; /* 移除邊框 */
    box-shadow: inset 0 0 0 0 #000;
    transition: all 0.3s ease-in-out;
}

.gou:checked {
    box-shadow: inset 0 0 0 10px #fff;
}

.gou:checked::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 25px;
    border-right: 3px solid #003EAB;
    border-bottom: 3px solid #003EAB;
    transform: rotate(45deg);
}

.split-line-hide::before {
    display: none;
}
