/* ===================================================== */
/* 元大 loading */
/* ===================================================== */

.m-loading__center::before,
.m-loading__center::after {
    content: none;
    display: none;
    animation: none;
    background: none;
}

.m-loading::before,
.m-loading::after {
    content: none;
    display: none;
    animation: none;
    background: none;
}

.m-loading__center {
    background: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    width: 100%;
}

/* ===================================================== */
/* 全頁基礎（從 main_ma.css 遷移過來，其餘為死碼已移除） */
/* ===================================================== */
body, html {
    font-family: Klavika, "Noto Sans TC", "Microsoft JhengHei", "微軟正黑體", "Arial", sans-serif;
}

*::selection {
    background-color: #1CD8C0 !important;
    color: #fff !important;
}

.bodyFadeIn {
    -webkit-animation-name: bodyFadeIn;
    animation-name: bodyFadeIn;
}
@keyframes bodyFadeIn {
    0%   { opacity: 0; }
    100% { opacity: 1; }
}

.bodyFadeInUp {
    -webkit-animation-name: bodyFadeInUp;
    animation-name: bodyFadeInUp;
}
@keyframes bodyFadeInUp {
    0% {
        opacity: 0;
        -webkit-transform: translate3d(0, 10%, 0);
        transform: translate3d(0, 10%, 0);
    }
    100% {
        opacity: 1;
        -webkit-transform: translate3d(0, 0, 0);
        transform: translate3d(0, 0, 0);
    }
}

/* ===================================================== */
/* 初始動畫時，不能scroll */
/* ===================================================== */
html.no-scroll,
body.no-scroll {
    overflow: hidden !important;
    height: 100% !important;
    touch-action: none;
}

/* ===================================================== */
/* 浮動 CTA：立即開戶 / 立即申購 */
/* ===================================================== */

.a00404-kv-btn {
    position: fixed;
    bottom: 60px;
    left: 40px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 999;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.kv-btn-item {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 187px;
    height: 62px;
    color: #fff;
    font-size: 1.2rem;
    text-decoration: none;
    font-weight: bold;
    background-color: #FF008D;
    background-image: linear-gradient(45deg, #FFC600, #FF008D, #A8158D);
    background-size: 300% 300%;
    transition: background-position 0.5s ease, transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}

.kv-btn-item:hover {
    background-position: 100% 100%;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.22);
}

.kv-btn-item span {
    padding-top: 2px;
}

.arrow-icon {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

@keyframes arrow-move {
    0% { transform: translateX(0); }
    50% { transform: translateX(5px); }
    100% { transform: translateX(0); }
}

.kv-btn-item:hover .arrow-icon {
    animation: arrow-move 0.8s ease-in-out infinite;
}

/* 手機/平板：隱藏桌機版浮動 CTA，由 <yu-go-account> 滿版按鈕取代 */
@media (max-width: 1200px) {
    .a00404-kv-btn {
        display: none;
    }
}


/* navbar/footer 移至 web component（Shadow DOM）：
   js/components/yu-header.js, js/components/yu-footer.js */

/* ===================================================== */
/* 主視覺 */
/* ===================================================== */
.a00404-kv-bg {
    position: relative;
    width: 100%;
    overflow: hidden;
    background-image: url('../img/00404a/kv_bg.png'), linear-gradient(to right, #00B1E7 70%, #009CDA 30%);
    background-origin: 0 0;
    background-repeat: no-repeat;
    background-position: 33% top;
    background-position-x: center;
    background-size: auto 550px, 100% 450px;
}

.a00404-kv-left {
    position: absolute;
    top: 40px;
    left: 0;
    bottom: 0;
    z-index: 1;
    display: flex;
    width: 50%;
    height: 100%;
    align-items: flex-start;
    justify-content: flex-end;
    margin-top: 40px;
}

.a00404-kv-left img {
    width: 720px;
    height: auto;
    max-width: none;
    max-height: 90vh;
    object-fit: contain;
}

.kv-title-section {
    width: 85%;
    max-width: 1330px;
    margin: 0 auto;
    z-index: 1;
}

.kv-content-section {
    width: 100%;
    height: 100%;
    margin: 0 auto;
}

.a00404-kv-right-wrapper {
    display: flex;
    flex-direction: column;
    z-index: 2;
    width: 50%;
    margin-left: 42%;
    padding: 20px 30px 50px 30px;
    box-sizing: border-box;
    position: relative;
    z-index: 1;
}

.kv-right-main {
    padding-top: 100px;
    padding-right: 30px;
    text-align: right;
}

.kv-right-title {
    display: inline-flex;
    align-items: center;
    margin-bottom: 0.2rem;
    font-size: 8.5rem;
    font-weight: bold;
    line-height: 1;
    color: #FFBA00;
    gap: 10px;
}

.kv-right-title img {
    display: block;
    width: auto;
    height: 0.75em;
}

.kv-right-sub {
    margin-bottom: 0.8rem;
    font-size: 3.5rem;
    font-weight: bold;
    color: #ffffff;
}

.kv-right-subyellow {
    font-size: 2.2rem;
    font-weight: bold;
    color: #FFBA00;
}

.kv-right-subyellow span {
    font-size: 3rem;
    font-weight: normal;
}

.kv-right-infor {
    padding-top: 6px;
    text-align: right;
}

.kv-right-day {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: 20px 20px 0 0;
    font-size: 5rem;
    font-weight: 900;
    line-height: 1;
    color: transparent;
    gap: 8px;
    background-image: linear-gradient(to bottom, #A8158D 5%, #FF008D 43%, #FFC600 100%);
    -webkit-background-clip: text;
    background-clip: text;
}

.right-day-lightning {
    position: absolute;
    top: 40px;
    right: 4px;
    z-index: 10;
    width: 40px;
}

.right-day-lightning img,
.right-day-img img {
    display: block;
    width: 100%;
    height: auto;
}

.right-day-img img {
    width: 150px;
}

.kv-right-name {
    margin: 12px 0;
    font-size: 2rem;
    font-weight: 500;
    text-align: right;
    color: #050505;
}

.kv-right-remark {
    font-size: 2rem;
    font-weight: 500;
    text-align: right;
    color: #333333;
}

.chart_kv_m {
    display: none;
}

@media screen and (min-width: 1201px) {
    .kv-main-container {
        display: flex;
        flex-direction: column;
        height: 100%;
        max-width: 1330px;
        margin: 0 auto;
        align-items: flex-end;
        padding-bottom: 45px;
    }

    .kv-title-section,
    .kv-content-section {
        width: 100%;
    }

    .a00404-kv-right-wrapper {
        margin-right: 0;
        margin-left: auto;
    }

    .a00404-kv-left img {
        min-height: 700px;
    }
}

@media screen and (max-width: 1200px) {
    .chart_kv_w {
        display: none;
    }

    .chart_kv_m {
        display: block;
    }

    .a00404-kv-bg {
        display: flex;
        flex-direction: column;
        min-height: 750px;
        background-image: url('../img/00404a/kv_bg_m.png');
        background-position: center top;
        background-size: 100% 750px;
    }

    .kv-title-section {
        display: flex;
        padding-top: 70px;
        justify-content: center;
    }

    .kv-right-main {
        padding-top: 0;
        text-align: center;
    }

    .kv-content-section {
        display: flex;
        flex: 1;
        width: 100%;
        position: relative;
        align-items: flex-end;
        justify-content: center;
        gap: 0px;
    }

    .a00404-kv-left {
        position: static;
        display: flex;
        width: auto;
        align-items: flex-end;
        justify-content: flex-start;
        margin-top: 0 !important;
    }

    .a00404-kv-left img {
        width: 404px !important;
        max-width: none !important;
    }

    .a00404-kv-right-wrapper {
        position: static;
        width: auto;
        max-width: 320px;
        margin-left: 0;
        padding: 0 20px 50px 20px;
    }

    .kv-right-infor {
        display: flex;
        justify-content: flex-end;
    }

    .kv-right-name {
        color: #fff;
        line-height: 2.5rem;
    }

    .kv-right-remark {
        color: #CCEAF8;
        line-height: 2.5rem;
    }
}

@media screen and (max-width: 710px) {
    .kv-title-section {
        padding-top: 90px;
    }

    .kv-right-main {
        padding-right: 0;
    }

    .kv-right-title {
        font-size: 5.7rem;
    }

    .kv-right-title img {
        height: 0.65em;
        margin-bottom: 5px;
        margin-left: -6px;
    }

    .kv-right-sub {
        font-size: 2.3rem;
    }

    .kv-right-subyellow {
        font-size: 1.8rem;
    }

    .kv-right-subyellow span {
        font-size: 2.4rem;
    }

    .kv-content-section {
        padding-top: 10px;
    }

    .right-day-lightning {
        position: absolute;
        top: 40px;
        right: -6px;
        z-index: 10;
        width: 40px;
    }

    .a00404-kv-right-wrapper {
        width: 200px;
    }

    .a00404-kv-left {
        position: static;
        display: flex;
        width: 300px;
        align-items: flex-end;
        justify-content: flex-start;
        margin-left: -100px;
    }

    .a00404-kv-left img {
        width: 350px !important;
        max-width: none !important;
    }

    .right-day-img img {
        width: 100px;
    }

    .kv-right-name,
    .kv-right-remark {
        font-size: 1.2rem;
        line-height: 1.5rem;
    }

    .a00404-kv-bg {
        min-height: 600px;
        background-size: 100% 600px;
    }
}

/* ===================================================== */
/* 台股ETF怎麼選 */
/* ===================================================== */

.a00404-how-intro,
.a00404-how-chart {
  max-width: 1200px;
  width: 95%;
  margin: 0 auto;
  box-sizing: border-box;
}

.a00404-how-bg {
  background-image: url('../img/00404a/how_bg.png');
  background-repeat: no-repeat;
  background-position: 50% 0%;
  margin-top: 50px;
}

.a00404-how-main {
  padding: 0 20px;
}

.a00404-how-intro {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  padding-top: 190px;
  padding-bottom: 60px;
}

.how-main-left {
  flex: 1;
}

.main-left-title {
  font-size: 3.2rem;
  font-weight: bold;
  line-height: 4rem;
}

.main-left-sub {
  font-size: 2rem;
  margin-top: 26px;
  margin-bottom: 40px;
}

.main-left-intro {
  width: 76%;
  font-size: 1rem;
  line-height: 1.6rem;
}

.main-left-intro p:first-child {
  padding-bottom: 14px;
}

.how-main-right {
  display: flex;
  justify-content: center;
  margin-top: -130px;
}

.table-wrapper {
  position: relative;
  display: inline-block;
}

.main-right-table img {
  display: block;
  max-width: 100%;
  height: auto;
}

.main-right-hit {
  position: absolute;
  top: 30px;
  left: 18px;
  z-index: 10;
}

.main-right-hit img {
  width: 100%;
  height: auto;
}

.a00404-how-chart {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 20px;
  flex-wrap: wrap;
  padding-bottom: 80px;
}

.how-chart-01,
.how-chart-02 {
  flex: 0 1 auto;
  text-align: center;
}

.how-chart-01 img,
.how-chart-02 img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

.how-chart-notice {
  width: 100%;
  margin-top: 20px;
  font-size: 0.85rem;
  color: #575757;
  line-height: 1.4rem;
  text-align: center;
}

.how-chart-notice span {
  font-weight: bold;
}

@media screen and (max-width: 495px) {
  .main-left-title {
    font-size: 2.2rem;
    line-height: 2.8rem;
  }
  .main-left-sub {
    font-size: 1.6rem;
  }
}

@media screen and (max-width: 515px) {
  .main-right-hit img {
    width: 100%;
    max-width: 170px;
    margin-top: -20px;
  }
}

@media screen and (max-width: 1200px) {
  .how-main-right {
    margin-top: 0;
  }
  .a00404-how-intro {
    flex-direction: column;
    padding-top: 60px;
    gap: 30px;
  }
  .main-left-intro {
    width: 100%;
  }
  .how-main-right {
    width: 100%;
    text-align: center;
  }
  .a00404-how-chart {
    gap: 30px;
  }
  .a00404-how-bg {
    background-image: url('../img/00404a/how_bg_m.png');
    background-repeat: no-repeat;
    background-position: 0% 0%;
  }
  .main-right-hit {
    margin-left: 0px;
  }
  .main-right-table {
    display: flex;
    justify-content: center;
    align-items: center;
  }
  .how-chart-01,
  .how-chart-02 {
    display: block;
  }
  .how-chart-notice {
    text-align: left;
  }
}

/* ===================================================== */
/* 投資 All In One */
/* ===================================================== */

.a00404-allin-bg {
  background-color: #009CDA;
}

.a00404-allin-main {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-top: 80px;
  padding-bottom: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.a00404-allin-intro {
  width: 50%;
}

.allin-intro-title {
  font-size: 4.7rem;
  color: #fff;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 8px;
}

.allin-intro-title span {
  font-size: 7rem;
}

.allin-intro-title img {
  width: 68px;
  padding-bottom: 5px;
  display: block;
  height: auto;
  vertical-align: middle;
}

.allin-intro-titleblue {
  font-size: 4rem;
  font-weight: bold;
  color: #82CCEB;
  margin-top: 20px;
}

.allin-intro-sub {
  font-size: 3.2rem;
  font-weight: bold;
  color: #fff;
  line-height: 4.2rem;
  margin-top: 50px;
  margin-bottom: 50px;
}

.allin-intro-txt {
  width: 500px;
  line-height: 1.6rem;
  color: #fff;
}

.allin-intro-txt p:last-child {
  padding-top: 20px;
}

.a00404-allin-chart {
  width: 50%;
}

.a00404-allin-chart img {
  width: 100%;
  display: block;
  margin: 0 auto;
}

.a00404-allin-chart img + img {
  margin-top: -16px;
  position: relative;
}

@media screen and (max-width: 1200px) {
  .a00404-allin-main {
    padding-left: 20px;
    padding-right: 20px;
    flex-direction: column;
  }
  .a00404-allin-intro {
    width: 100%;
    text-align: center;
    margin-bottom: 40px;
  }
  .allin-intro-title {
    justify-content: center;
  }
  .allin-intro-txt {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
  }
  .a00404-allin-intro,
  .a00404-allin-chart {
    width: 100%;
    text-align: center;
  }
  .a00404-allin-intro {
    margin-bottom: 40px;
  }
  .allin-intro-txt {
    width: 100%;
  }
  .a00404-allin-chart img {
    max-width: 672px;
  }
}

@media screen and (max-width: 585px) {
  .allin-intro-title {
    font-size: 2.7rem;
  }
  .allin-intro-title span {
    font-size: 4rem;
  }
  .allin-intro-title img {
    width: 40px;
  }
  .allin-intro-titleblue {
    font-size: 3.7rem;
    margin-top: 0;
  }
  .allin-intro-sub {
    font-size: 2.5rem;
    margin-top: 20px;
    margin-bottom: 20px;
  }
  .allin-intro-sub p:last-child {
    margin-top: -20px;
  }
}

/* ===================================================== */
/* 動能放大 */
/* ===================================================== */

.a00404-enlarge-bg {
  background-color: #F0F0F0;
}

.a00404-enlarge-main {
  max-width: 1200px;
  margin: 0 auto;
  background-image: url('../img/00404a/enlarge_bg.png');
  background-repeat: no-repeat;
  background-size: 90% auto;
  background-position: 50% 7%;
  padding: 80px 20px;
}

.a00404-enlarge-title {
  font-size: 3.2rem;
  font-weight: bold;
  color: #050505;
  display: flex;
  align-items: flex-end;
  gap: 8px;
  justify-content: center;
}

.a00404-enlarge-title img {
  display: block;
  height: auto;
}

.a00404-enlarge-sub {
  text-align: center;
  font-size: 2rem;
  font-weight: 500;
  line-height: 3.2rem;
  padding-top: 18px;
  letter-spacing: 0.05rem;
}

.a00404-enlarge-table {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  min-height: 400px;
  width: 100%;
  margin: 0 auto;
  overflow: hidden;
  margin-top: 30px;
  font-weight: 500;
  line-height: 2.3rem;
}

.enlarge-table-left {
  flex: 1.3;
  color: #FFFFFF;
  padding: 70px 30px 40px 30px;
}

.enlarge-table-blue {
  flex: 1.3;
  background-color: #009CDA;
  background-image: url('../img/00404a/enlarge_bg_table1.png');
  background-repeat: no-repeat;
  background-position: 75% 20px;
  background-size: contain;
  display: flex;
  flex-direction: column;
}

.enlarge-table-yellow {
  flex: 1.3;
  background-color: #FFBA00;
  background-image: url('../img/00404a/enlarge_bg_table2.png');
  background-repeat: no-repeat;
  background-position: 75% 20px;
  background-size: contain;
  display: flex;
  flex-direction: column;
}

@media screen and (max-width: 1200px) {
  .enlarge-table-yellow {
    background-size: auto 60%;
    background-position: 75% 180px;
  }
}

.enlarge-table-purple {
  flex: 1.3;
  background-color: #574BA3;
  background-image: url('../img/00404a/enlarge_bg_table3.png');
  background-repeat: no-repeat;
  background-position: 75% 20px;
  background-size: contain;
  display: flex;
  flex-direction: column;
}

.font-weight-bold {
  font-weight: bold;
}

.font-size-07 {
  font-size: 0.7rem;
}

.font-size-12 {
  font-size: 1.2rem;
}

.font-size-15 {
  font-size: 1.5rem;
}

.font-size-2 {
  font-size: 2rem;
}

.font-size-25 {
  font-size: 2.5rem;
}

.font-color-blue {
  color: #009CDA;
}

.font-color-yellow {
  color: #FFBA00;
}

.font-color-purple {
  color: #574BA3;
}

.font-color-yellow-light {
  color: #FFDF92;
}

.font-color-gray {
  color: #333;
}

.title-bg-blue {
  background-color: #9DE0FA;
}

.title-bg-yellow {
  background-color: #FFF0CA;
}

.title-bg-purple {
  background-color: #D5D1E8;
}

.line-height-18 {
  line-height: 1.8rem;
}

.margin-top-20 {
  margin-top: 20px !important;
}

.enlarge-table-intro {
  line-height: 1.5rem;
  padding-top: 20px;
}

.enlarge-table-icon {
  padding-top: 90px;
}

.enlarge-table-icon img {
  margin-right: 0.7rem;
}

.enlarge-table-right {
  flex: 1.5;
  background-color: #FFFFFF;
}

.enlarge-table-right table {
  width: 100%;
  height: 100%;
  border-collapse: collapse;
  font-weight: normal;
}

.enlarge-table-right th,
.enlarge-table-right td {
  padding: 12px;
  text-align: center;
}

.enlarge-table-right table tbody tr:nth-child(even) {
  background-color: #FAFAFA;
}

.enlarge-table-right table tbody tr:nth-child(odd) {
  background-color: #FFFFFF;
}

.enlarge-table-notice {
  width: 100%;
  margin-top: 20px;
  font-size: 0.85rem;
  color: #575757;
  line-height: 1.4rem;
  padding-left: 0.5rem;
  text-indent: -0.4rem;
}

@media screen and (max-width: 1200px) {
  .a00404-enlarge-title {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }
  .a00404-enlarge-title {
    font-size: 2.5rem;
  }
  .a00404-enlarge-sub {
    font-size: 1.6rem;
  }
  .a00404-enlarge-main {
    background-size: contain;
    background-position: 50% 7%;
  }
  .enlarge-table-icon img {
    width: 28.9%;
    max-width: 102px;
  }
}

/* ===================================================== */
/* 收益升級 */
/* ===================================================== */

.upgrade-chart {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 1200px;
  margin: 60px auto 40px;
  gap: 30px;
}

.upgrade-chart img {
  height: auto;
  display: block;
  min-width: 330px;
}

.upgrade-chart img:first-child {
  width: calc(33% - 15px);
  transform: translateY(-45px);
}

.upgrade-chart img:last-child {
  width: calc(58% - 15px);
}

.chart_toughness_m, .chart_upgrade_m {
  display: none !important;
}

.upgrade-chart-notice {
  width: 100%;
  margin-top: 20px;
  font-size: 0.85rem;
  color: #575757;
  line-height: 1.4rem;
  text-align: justify;
  text-justify: inter-ideograph;
  word-break: break-word;
  overflow-wrap: break-word;
}

@media screen and (max-width: 1200px) {
  .upgrade-chart {
    flex-direction: column;
    gap: 20px;
  }
  .upgrade-chart img {
    width: 90%;
    transform: none;
  }
  .a00404-enlarge-table {
    flex-direction: column;
  }
  .chart_upgrade_w {
    max-width: 664px;
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
  }
}

@media screen and (max-width: 765px) {
  .chart_upgrade_w {
    display: none !important;
  }
  .chart_upgrade_m {
    display: block !important;
  }


  .upgrade-sub-txt p,
  .toughness-sub-txt p {
    display: inline;
    margin: 0;
  }
  .upgrade-sub p,
  .toughness-sub p {
    line-height: 2rem;
  }
  .upgrade-sub-txt,
  .toughness-sub-txt {
    text-align: left;
    text-align: justify;
    text-justify: inter-ideograph;
    word-break: break-word;
    overflow-wrap: break-word;
  }
  .chart_toughness_w {
    display: none !important;
  }
  .chart_toughness_m {
    display: block !important;
  }
  .toughness-chart .chart_toughness_m {
    width: 100%;
    max-width: 340px;
    margin: 0 auto;
  }
}

/* ===================================================== */
/* 收益更有韌性 */
/* ===================================================== */

.toughness-chart {
  text-align: center;
  margin-top: 40px;
  margin-bottom: 40px;
}

.toughness-chart img {
  width: 100%;
  max-width: 618px;
}

/* ===================================================== */
/* 影片專區 */
/* ===================================================== */

.a00404-vedio-bg {
    background-color: #fff;
    width: 100%;
}

.a00404-vedio-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 20px;
    background-image: url('../img/00404a/vedio_bg.png');
    background-repeat: no-repeat;
    background-size: 90% auto;
    background-position: 50% 7%;
}

.a00404-enlarge-title {
    text-align: center;
    margin-bottom: 40px;
}

.a00404-vedio {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    align-items: start;
}

.vedio-main {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.vedio-main.large { grid-column: span 2; } 
.vedio-main.small { grid-column: span 1; }

.vedio-title {
    font-weight: bold;
    font-size: 1.2rem;
    line-height: 1.8rem;
    color: #1D9BD7;
    margin-bottom: 10px;
}

/* 關鍵：影片區塊固定比例，不強行拉伸 */
.vedio-yt {
    width: 100%;
    position: relative;
    background-color: #000;
    overflow: hidden;
    cursor: pointer;
    display: block;
}

.vedio-yt img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.vedio-yt:hover img {
    transform: scale(1.05);
}

.vedio-yt:hover::after {
    background-color: rgba(255, 0, 0, 1);
}

.ratio-16-9 { aspect-ratio: 16 / 9; }
.ratio-9-16 { aspect-ratio: 9 / 16; }

.vedio-yt::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 40px;
    background-color: rgba(255, 0, 0, 0.8);
    border-radius: 8px;
    z-index: 2;
    pointer-events: none;
    transition: background-color 0.2s ease;
}

.vedio-yt::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-left: 14px solid white;
    z-index: 3;
    pointer-events: none;
}

.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.lightbox-content {
    width: 80%;
    max-width: 900px;
    aspect-ratio: 16 / 9;
    background: #000;
}

.lightbox-content iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 50px;
    cursor: pointer;
}

@media (max-width: 768px) {
.a00404-vedio {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }

    .vedio-main.large {
        grid-column: span 2;
    }

    .vedio-main.small {
        grid-column: span 1;
    }
    .vedio-main-m {
      margin-bottom: 40px;
    }
}



/* ===================================================== */
/* 台股投資更長久 */
/* ===================================================== */

.a00404-long-bg {
  background-color: #009CDA;
  position: relative;
  width: 100%;
  overflow: hidden;
  padding-top: 0;
  padding-bottom: 30px;
}

.a00404-long-main {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.a00404-long-main::before {
  content: "";
  position: absolute;
  top: -40px;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
  background: url('../img/00404a/long_bg.png') no-repeat center 100px;
  background-size: contain;
}

.a00404-long-pop {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 15px;
  margin-top: -150px;
  left: -100px;
}

.a00404-long-pop img:nth-child(1) {
  margin-bottom: 20px;
}

.a00404-long-pop img:nth-child(2) {
  margin-bottom: 80px;
}

.a00404-long-pop img:nth-child(3) {
  margin-bottom: 140px;
}

.a00404-long-pop img:nth-child(4) {
  margin-bottom: 220px;
}

.a00404-long-pop img:nth-child(5) {
  margin-bottom: 300px;
}

.a00404-long-cow {
  position: absolute;
  z-index: 3;
  bottom: 10px;
  right: -100px;
  width: 500px;
}

.a00404-long-cow img {
  width: 100%;
  display: block;
}

.a00404-long-intro {
  padding-top: 80px;
}

.allin-long-titleblue {
  margin-top: 0;
  padding-bottom: 40px;
}

.allin-long-titleblue span {
  font-size: 5rem;
}

.a00404-long-notice {
  width: 70%;
  margin-top: 20px;
  font-size: 0.85rem;
  color: #fff;
  line-height: 1.4rem;
  padding-left: 0.5rem;
  text-indent: -0.4rem;
}

.a00404-long-notice span {
  font-weight: bold;
}

.chart_long_m,
.long-chart {
  display: none;
}

@media screen and (max-width: 1200px) {
  .a00404-long-bg {
    height: auto;
    padding-bottom: 50px;
    position: relative;
  }
  .allin-long-titleblue {
    padding-bottom: 0;
  }
  .a00404-long-main {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
  }
  .a00404-long-main::before {
    content: "";
    position: absolute;
    top: 350px;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    background-image: url('../img/00404a/long_bg_m.png');
    background-position: center 0px;
    background-repeat: no-repeat;
    background-size: 900px auto;
  }
  .a00404-long-cow {
    position: absolute;
    z-index: 3;
    top: 930px;
    left: 50%;
    margin-left: 150px;
    width: 400px;
  }
  .a00404-long-notice {
    width: 100%;
    margin-top: 20px;
  }
  .chart_long_m {
    display: block;
  }
  .chart_long_w {
    display: none;
  }
  .a00404-long-pop {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: 40px;
    margin-left: 300px;
  }
  .a00404-long-pop img {
    margin: 0 !important;
    width: 356px;
    position: relative;
  }
  .a00404-long-pop .chart_long_m:nth-child(6) {
    left: 120px;
  }
  .a00404-long-pop .chart_long_m:nth-child(7) {
    left: 20px;
  }
  .a00404-long-pop .chart_long_m:nth-child(8) {
    left: -60px;
  }
  .a00404-long-pop .chart_long_m:nth-child(9) {
    left: -100px;
  }
  .a00404-long-pop .chart_long_m:nth-child(10) {
    left: -180px;
  }
}

@media screen and (max-width: 720px) {
  .a00404-long-cow,
  .a00404-long-pop {
    display: none !important;
  }
  .a00404-long-main::before {
    background: none;
  }
  .long-chart {
    display: block;
  }
  .long-chart img {
    width: 130%;
  }
}

@media screen and (max-width: 585px) {
  .allin-long-titleblue {
    font-size: 2.7rem;
  }
  .allin-long-titleblue span {
    font-size: 3.7rem;
  }
}

/* ===================================================== */
/* 基金檔案 */
/* ===================================================== */

.a00404-file-bg {
  padding-top: 80px;
  padding-bottom: 80px;
}

.a00404-file-main {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.a00404-file-title {
  display: flex;
  align-items: baseline;
  justify-content: center;
  line-height: 1;
  font-weight: bold;
}

.a00404-file-title .number {
  display: inline-flex;
  align-items: center;
  color: #FFBA00;
  font-size: 4.5rem;
  line-height: 1;
}

.a00404-file-title .number img {
  height: 3.3rem;
  width: auto;
  display: block;
  margin-left: -3px;
  margin-bottom: 4px;
}

.a00404-file-title .text {
  font-size: 3rem;
  line-height: 1;
  padding-left: 10px;
}

.a00404-file-sub {
  text-align: center;
  font-size: 2rem;
  font-weight: 500;
  margin-top: 20px;
  margin-bottom: 40px;
  line-height: 2.5rem;
}

.a00404-file-hr {
  height: 4px;
  background-color: #1D9BD7;
  border: none;
  margin: 0em 0;
}

.a00404-file-table {
  width: 100%;
  overflow-x: auto;
}

.a00404-file-table table {
  width: 100%;
  border-collapse: collapse;
}

.a00404-file-table td {
  padding: 26px 12px;
  line-height: 1.5rem;
  border: none;
  border-bottom: 1px solid #F0F0F0;
}

.a00404-file-table .label {
  width: 15%;
  font-size: 1.1rem;
  font-weight: bold;
  color: #1D9BD7;
  background-color: transparent;
}

.a00404-file-table .value {
  width: 35%;
}

.a00404-file-table .value span {
  font-size: 0.6em;
  vertical-align: super;
  margin-left: 2px;
}

@media screen and (max-width: 1200px) {
  .a00404-file-table table,
  .a00404-file-table tbody,
  .a00404-file-table tr {
    display: block;
    width: 100%;
  }
  .a00404-file-table tr {
    display: flex;
    flex-wrap: wrap;
    border-bottom: none;
  }
  .a00404-file-table td {
    flex: 0 0 50%;
    box-sizing: border-box;
    padding: 20px 12px;
    border-bottom: 1px solid #F0F0F0;
  }
  .a00404-file-btn,
  .a00404-file-que {
    flex-direction: column;
  }
  .a00404-file-btn a,
  .a00404-file-que a {
    width: 100%;
    min-width: auto;
    max-width: none;
    flex: none;
  }
}

.a00404-file-btn,
.a00404-file-que {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.a00404-file-btn a,
.a00404-file-que a {
  display: flex;
  align-items: center;
  text-decoration: none;
  font-size: 1.2rem;
  padding: 25px 50px;
  border-radius: 4px;
  box-sizing: border-box;
  transition: all 0.3s ease;
}

.a00404-file-que {
  margin-top: 60px;
  padding-bottom: 30px;
  font-weight: bold;
}

.a00404-file-btn a {
  background-color: #FBFAFA;
  border: 1px solid #F0F0F0;
  color: #575757;
  flex: 1 1 316px;
  min-width: 316px;
}

.a00404-file-btn a:hover {
  background-color: #F0F0F0;
}

.a00404-file-btn a::after {
  content: "";
  display: block;
  width: 24px;
  height: 24px;
  margin-left: auto;
  background-image: url('../img/00404a/file_download.svg');
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.a00404-file-que a {
  background-color: #009CDA;
  border: 1px solid #009CDA;
  color: #fff;
  justify-content: center;
  flex: 0 1 386px;
  max-width: 386px;
  width: 100%;
}

.a00404-file-que a:hover {
  background-color: #086390;
  border-color: #086390;
}

.a00404-file-que a::after {
  content: "";
  display: block;
  width: 24px;
  height: 24px;
  margin-left: 10px;
  background-image: url('../img/00404a/file_arrow.svg');
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.a00404-file-notice {
  width: 100%;
  margin-top: 20px;
  font-size: 0.85rem;
  color: #575757;
  line-height: 1.4rem;
  padding-left: 0.5rem;
  text-indent: -0.5rem;
}

.a00404-file-notice span {
    font-size: 0.8em;
    vertical-align: super;
    margin-left: 2px;
}

@media screen and (max-width: 1200px) {
  .a00404-file-que a {
    width: 100%;
    max-width: none;
    flex: none;
    box-sizing: border-box;
  }
  .a00404-file-btn a {
    max-height: 76px;
  }
}

@media screen and (max-width: 490px) {
  .a00404-file-title .number {
    font-size: 2.7rem;
  }
  .a00404-file-title .number img {
    height: 2.2rem;
    margin-left: 0px;
    margin-bottom: 2px;
  }
  .a00404-file-title .text {
    font-size: 2rem;
    line-height: 1;
    padding-left: 3px;
  }
  .a00404-file-sub {
    font-size: 1.3rem;
    line-height: 1.8rem;
  }
}

/* ===================================================== */
/* 募集提醒 */
/* ===================================================== */

.a00404-raise-main {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-start; 
  gap: 20px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 30px; 
  box-sizing: border-box;
}

.a00404-raise-left {
  flex: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 15px;
  background-image: url('../img/00404a/raise_bg.png');
  background-repeat: no-repeat;
  background-position: center 44px;
  background-size: 70% auto;
  min-height: 400px;
  margin-bottom: -6px;
}

.raise-left-btn {
  display: flex;
  align-items: center;
  gap: 10px;
}

.raise-left-btn span {
  align-self: flex-start;
}

.raise-left-btn span:first-child {
  display: inline-block;
  transform: scaleX(-1);
}

.a00404-raise-right {
  flex: 6;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

.raise-right-table {
  width: 100%;
  background-color: #F1FAFD;
  color: #009CDA;
  padding: 40px;
  border-radius: 12px;
  text-align: center;
  box-sizing: border-box;
}

.right-table-title {
  font-size: 1rem;
  padding-bottom: 16px;
}

.right-table-title span {
  font-weight: bold;
}

.bank-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  justify-items: center;
  margin-top: 15px;
}

.bank-item {
  margin: 0;
  width: 100%;
  background-color: #E5F5FB;
  border: 0;
  padding: 20px 15px;
  border-radius: 12px;
  font-size: 1rem;
  text-align: center;
  box-sizing: border-box;
}

.raise-left-btn a {
  background-color: #009CDA;
  color: #fff;
  font-size: 1.5rem;
  padding: 24px 24px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: background-color 0.3s ease;
}

.raise-left-btn a:hover {
  background-color: #086390;
  cursor: pointer;
}

@media screen and (max-width: 1200px) {
  .a00404-raise-main {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    
    /* 關鍵調整：水平與垂直置中 */
    justify-content: center; 
    align-items: center; 
    
    gap: 20px;
    width: 100%;
    max-width: 1200px;
    
    /* 讓容器本身在螢幕中置中 */
    margin: 0 auto; 
    
    /* 移除高度限制，改用 padding 保持呼吸空間 */
    padding: 60px 30px; 
    box-sizing: border-box;
  }
  
  .a00404-raise-left {
    min-height: 300px;
    background-image: url(../img/00404a/raise_bg.png);
    background-repeat: no-repeat;
    background-position: center;
    background-size: auto 100%;
  }
  
  .bank-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media screen and (max-width: 970px) {
  /* 1. 將主容器改為垂直排列 */
  .a00404-raise-main {
    flex-direction: column;
    padding: 40px 20px; /* 在手機版適度調整 padding */
  }

  /* 2. 確保左右兩側區塊在垂直排列時，寬度佔滿 100% */
  .a00404-raise-left, 
  .a00404-raise-right {
    width: 100%;
  }

  /* 3. 您原本的樣式設定 */
  .raise-right-table {
    width: 100%;
    background-color: #F1FAFD;
    color: #009CDA;
    padding: 40px 20px;
    border-radius: 12px;
    text-align: center;
    box-sizing: border-box;
  }

  .raise-day {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 0;
  }

  .raise-slogan {
    flex-basis: 100%;
    display: block;        
    text-align: center;
    margin-top: 5px;
  }
}

/* ===================================================== */
/* footer */
/* ===================================================== */

.a00404-footer-bg {
  width: 100%;
  background-color: #F0F0F0;
  margin-top: -34px;
}

.a00404-footer-main {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 50px 20px 50px 20px;
}

.a00404-footer-table {
  padding-bottom: 80px;
}

.nav-container {
  display: grid;
  width: 100%;
  gap: 10px;
  grid-template-columns: repeat(7, 1fr);
  grid-template-areas: "f e t r sol serv ab" ". . . . wiki . .";
}

.area-f { grid-area: f; }
.area-e { grid-area: e; }
.area-t { grid-area: t; }
.area-r { grid-area: r; }
.area-sol { grid-area: sol; }
.area-wiki { grid-area: wiki; margin-top: -100px; }
.area-serv { grid-area: serv; }
.area-ab { grid-area: ab; }

.nav-title {
  color: #009CDA;
  font-weight: bold;
  margin: 0 0 24px 0;
  font-size: 16px;
}

.nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-list li {
  font-size: 16px;
  margin-bottom: 16px;
  font-weight: 500;
}

.nav-list li a {
  color: #8C8C8C;
  text-decoration: none;
  transition: color 0.2s;
  display: inline-block;
}

.nav-list li a:hover {
  color: #086390;
}

.a00404-footer-notice {
  width: 100%;
  font-size: 0.85rem;
  color: #575757;
  line-height: 1.4rem;
  text-align: justify;
  text-justify: inter-ideograph;
  word-break: break-word;
  overflow-wrap: break-word;
}

.font-weight-bold {
  font-weight: bold;
}

.font-color-blue {
  color: #009CDA;
}

.font-size-07 {
  font-size: 0.7rem;
}


@media screen and (max-width: 1200px) {
  .a00404-footer-bg {
    margin-top: 30px;
  }
  .nav-list li {
    line-height: 1.3rem;
  }
}

/* ===================================================== */
/* 其他設定 */
/* ===================================================== */
.chart_m,
.chart_allin_m {
  display: none !important;
}

@media screen and (max-width: 1200px) {
  .nav-container {
    grid-template-columns: repeat(3, 1fr);
    grid-template-areas: "f e t" "r sol wiki" "serv ab .";
  }
  .area-wiki {
    margin-top: 0px;
  }
  .chart_w {
    display: none !important;
  }
  .chart_m {
    display: block !important;
  }
}

@media screen and (max-width: 585px) {
  .chart_allin_w {
    display: none !important;
  }
  .chart_allin_m {
    display: block !important;
  }
}

@media screen and (max-width: 445px) {
  .enlarge-table-right table {
    font-size: 0.92rem;
  }
  .font-size-12_m {
    font-size: 0.92rem;
  }
}

.mark_span {
    font-size: 0.6em;
    position: relative;
    top: -0.5em;
    vertical-align: baseline;
    line-height: 0;
    margin-left: 2px;
}

.mark_span-big {
    font-size: 0.8em;
}

.a00404-file-notice-sec {
    width: 100%;
    margin-top: 0px;
    font-size: 0.85rem;
    color: #575757;
    line-height: 1.4rem;
    padding-left: 0.5rem;
    text-indent: -0.5rem;
}

.font-color-white {
    color: #fff;
}