/* http://meyerweb.com/eric/tools/css/reset/ 
   v2.0 | 20110126
   License: none (public domain)
*/

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
    font-family: "Roboto", "PingFang TC", sans-serif, Arial, Helvetica;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
	display: block;
}
body {
	line-height: 1.5;
    position: relative;
    overflow-x: hidden;
}
ol, ul {
	list-style: none;
}
blockquote, q {
	quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
	content: '';
	content: none;
}
table {
	border-collapse: collapse;
	border-spacing: 0;
}

/* img {
    max-width: 100%;
    height: auto;
    display: block;
} */


/* --------common---------- */

.rate-block,.activity-block,.note-content,.banner-container{
    max-width: 1200px;
    margin: 0 auto;
}



/* --------progress-bar--------- */

#progress-bar {
    position: fixed;
    top: 80px;
    left: 0;
    width: 0%;
    height: 4px;
    background-color: #007ECB;
}

/* --------banner---------- */

.banner{
    height: 700px;
    margin-top: 80px;
    width: 100%;  
   background-color: #EBF6FF;
    display: flex;
    position: relative;
}

.banner::before,.banner::after{
    content: "";
    width: 30vw;
    height: 18vw;
    background-image: url(../images/elements/banner-style.svg);
    background-size: cover;
    background-repeat: no-repeat;
    position: absolute;
}

.banner::before{
    bottom: 0;
    left: 0;
}

.banner::after{
    top: 0;
    right: 0;
    transform: rotate(180deg);
}

.banner-container{
    display: flex;
    gap: 24px;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.banner-slogan {
    display: flex;
    flex-direction: column;
    padding-bottom: 120px;
    margin-right: -160px;
}

.key-visaul{
    width: 621px;
    height: 539px;
}

.title-line{
    display: flex;
    gap: 16px;
    margin-bottom: 8px;
}

.banner-title{
    height: 120px;
}

.banner-title-2{
    height: 120px;
}

.title-star{
    width: 40px;
    animation: flickerEffect 1.5s infinite ease-in-out;
}

@keyframes flickerEffect {
    0% {
        transform: scale(1); 
    }
    50% {
        transform: scale(1.3); 
    }
    100% {
        transform: scale(1); 
    }
}

.banner-subtitle{
    margin-bottom: 24px;
    width: 492px;
    height: 94px;
    margin-left: 8px;
}


.main-button {
    background-color: transparent;
    border: solid transparent;
    cursor: pointer;
    width: 260px;
    transition: transform 0.3s ease-in-out;
}
 
.main-button:hover {
    animation: float 2s ease-in-out infinite;
    filter: drop-shadow(0 10px 10px rgba(0, 52, 130, 0.2));
}

@keyframes float {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-15px);
    }
    100% {
        transform: translateY(0);
    }
}

.main-button img{
    width: 100%;
}

.activity-container,.note-container{
    padding: 60px 0px 60px 0px;
}

.left-decorate-1,.left-decorate-2,.right-decorate-1,.right-decorate-2{
    position: absolute;
}

.left-decorate-1{
    top: 120px;
    left: -120px;
}

.left-decorate-2{
    bottom: 40px;
    left: -120px;
}

.right-decorate-1{
    right: -200px;
    top: 200px;
}

.right-decorate-2{
    right: -100px;
    bottom: 40px;
}

/* --------rate-aection--------- */

.rate-container{
    padding: 60px 0px 60px 0px;
}

.rate-section{
    margin: 0 auto;
    display: flex;
    gap: 40px;
}



.rate-block{
    border: 2px solid #007ECB;
    background-color: white;
    border-radius: 24px;
    padding-top: 40px;
    overflow: hidden;
}

.rate-card-block{
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 2fr);
    gap: 24px;
    padding: 0px 64px;
}

.rate-title{
    width: 380px;
    height: 68px;
    display: flex;
    margin: 0 auto;
    position: relative;
    margin-bottom: 40px;
    background-image: url(../images/elements/rate-maintitle.png);
    background-size: cover;
}

.titletext-star{
    position: absolute;
    right: -32px;
    top: -12px;
}

.rate-card{
    width: 100%;
    background-color: white;
    border: 2px solid #007ECB;
    border-radius: 16px;
    overflow: hidden;
}

.stock-code{
    color: white;
    padding: 16px;
    background-color: #007ECB;
    text-align: center;
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    gap: 12px;
    z-index: 1;
}


.stock-code::after{
    content: "";
    display: block;
    background-image: url(../images/elements/card-style.svg);
    width: 160px;
    height: 92px;
    position: absolute;
    background-repeat: no-repeat;
    background-size: cover;
    top: 50%;
    right: -72px;
    transform: translateY(-50%);
    z-index: -1;
}

.stock-star{
    width: 24px;
}

.stock-name{
    padding: 24px;
    text-align: center;
    color: #005386;
}



/* --------benefit-section--------- */

.benefit-section{
    margin-top: 56px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    padding: 40px 24px;
    overflow: hidden;
    position: relative;
    background-color: #007ECB;
    z-index: 1;
}

.benefit-section::before,
.benefit-section::after {
    content: "";
    position: absolute;
    width: 240px;
    height: 100%;
    background-image: url(../images/elements/card-style.svg);
    background-repeat: no-repeat;
    background-size: cover;
}

.benefit-section::before{
    top: 50%;
    left: -72px;
    transform: translateY(-50%) rotate(180deg);
    z-index: -1;
}

.benefit-section::after{
    top: 50%;
    right: -72px;
    transform: translateY(-50%);
    z-index: -1;
}

.benefit-card{
    background-color: white;
    border-radius: 16px;
    padding: 24px 0px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.benefit-card h3{
    display: flex;
    color: #007ECB;
    gap: 8px;
}

.benefit-star{
    width: 18px;
}



.benefit-card p{
    margin-top: 12px;
    color: #005386;
    font-weight: 600;
    font-size: 20px;
}

.benefit-card a{
    margin-top: 24px;
    text-decoration: none;
    color: #EC7200;
    display: flex;
    gap: 4px;
    font-size: 18px;
    font-weight: 600;
    position: relative;
}

.benefit-card a::after {
    content: "";
    position: absolute;
    bottom: 0; 
    left: 0;
    width: 0; 
    height: 4px; 
    background-color: #FFCD91; 
    transition: width 0.3s ease; 
}

.benefit-card a:hover::after {
    width: 100%; 
}

.trigger-link {
    color: #007ECB;
    cursor: pointer;
    padding: 4px 12px;
    border: 1px solid #007ECB;
    border-radius: 100px;
    background-color: white;
    font-size: 16px;
    font-weight: 600;
    margin-top: 12px;
    position: relative;
    transition: background-color 0.3s ease, color 0.3s ease; 
}

.trigger-link::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 120%;
    background-color: rgb(96, 194, 255);
    border-radius: 100px;
    transform: translate(-50%, -50%) scale(1);
    opacity: 0;
    z-index: -1;
    animation: pulse 1.2s infinite;
}


@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.6;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.8);
        opacity: 0;
    }
}


.trigger-link:hover {
    background-color: #007ECB;
    color: white;
}

/* --------activity-section--------- */

.activity-container{
    margin: 0 auto;
    background-image: url(../images/elements/activity-background.png);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

.activity-title{
    width: 180px;
    height: 68px;
    margin: 0 auto;
    position: relative;
    margin-bottom: 40px;
    background-image: url(../images/elements/activity-maintitle.png);
    background-size: cover;
}

.activity-card-block{
    display: flex;
    gap: 24px;
}
.activity-card{
    width: 100%;
    color: white;
    background-color: white;
    border: 2px solid #007ECB;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    overflow: hidden;
}

.activity-card img{
    width: 280px;
    height: 200px;
    margin: 40px 0px 24px 0px;
}

.card-content{
    width: 100%;
    padding: 16px 64px 24px 64px;
    background-color: #007ECB;
    font-size: 20px;
    font-weight: 600;
    height: 100%;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.card-content::before,
.card-content::after {
    content: "";
    position: absolute;
    width: 160px;
    height: 100px;
    background-image: url(../images/elements/card-style.svg);
    background-repeat: no-repeat;
    background-size: cover;
    z-index: -1;
}

.card-content::before {
    top: 50%;
    left: -72px;
    transform: translateY(-50%) rotate(180deg); 
}

.card-content::after {
    top: 50%;
    right: -72px;
    transform: translateY(-50%); 
}


/* --------noto-section--------- */

.note-title{
    width: 180px;
    height: 68px;
    margin: 0 auto;
    position: relative;
    margin-bottom: 40px;
    background-image: url(../images/elements/note-maintitle.png);
    background-size: cover;
}

.note-content{
    padding: 40px 64px;
    border: 2px solid #007ECB;
    border-radius: 24px;
}

.note-content p{
    margin-bottom: 8px;
    font-size: 18px;
    color: #395F7D;
    font-weight: 500;
}

.note-content a{
    color: #EC7200;
    font-weight: 600;
    position: relative;
}

.note-content a::after{
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 4px; 
    background-color: #FFCD91; 
    transition: width 0.3s ease; 
}

.note-content a:hover::after {
    width: 100%; 
}

.note-list {
    list-style: none; 
    counter-reset: list-counter;
    padding-left: 0; 
}

.note-list li {
    counter-increment: list-counter; 
    position: relative;
    padding-left: 32px; 
    margin-bottom: 12px;
    color: #395F7D;
    font-weight: 500;
}

.note-list li::before {
    content: counter(list-counter) "."; 
    position: absolute;
    left: 0;
    width: 16px; 
    text-align: right;
}

/* --------float-button--------- */

.float-button{
    display: flex;
    position: fixed;
    right: 32px;
    bottom: 88px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    z-index: 9999;
}


.open-account,.download-imoney{
    background-color: #007ECB;
    width: 100%;
    text-align: center;
    color: white;
    text-decoration: none;
    border: 4px solid #AAD6FF;
    width: 104px;
    height: 104px;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    transition: transform 0.5s ease;
}

.open-account:hover{
    transform: translateY(-8px);
    box-shadow: 0 4px 12px rgba(0, 52, 142, 0.5);
}

.download-imoney:hover{
    transform: translateY(-8px);
    box-shadow: 0 4px 12px rgba(142, 83, 0, 0.5);
}

.download-imoney{
    background-color: #EC7200;
    border: 4px solid #FFD6A5;
}

.first-line{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

}

.first-line p{
    font-size: 16px;
    font-weight: 600;
}

.open-account span,.download-imoney span{
    font-size: 16px;
    margin-top: 8px;
    padding: 2px 0px;
}

.open-account-chip,.download-imoney-chip{
    background-color: #01456F;
}

.download-imoney-chip{
    background-color: #9A4B00;
}

.open-account-icon{
    width: 32px;
}

/* --------rate-modal--------- */

.modal {
    display: none; 
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    justify-content: center;
    align-items: center;
    z-index: 99999;
}


.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9); 
    z-index: 1; 
}

.modal-header{
    display: flex;
    padding: 16px;
    justify-content: center;
    background-color: #007ECB;
    color: white;
    position: relative;
    overflow: hidden;
}

.modal-header img{
    width: 24px;
}

.modal-header h3{
    display: flex;
    gap: 8px;
}

.modal-header::after,
.modal-header::before{
    content: "";
    display: block;
    background-image: url(../images/elements/card-style.svg);
    background-repeat: no-repeat;
    width: 100px;
    height: 70px;
    position: absolute;
    
}

.modal-header::before{
    top: 0;
    left: 0;
    transform: rotate(180deg);
}

.modal-header::after{
    top: 0;
    right: 0;
}

.modal-content h2{
    padding: 40px 0px;
    font-size: 48px;
    color: #005386;
}

.modal-content {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    text-align: center;
    position: relative;
    z-index: 2; 
    width: 560px;
    border: 2px solid #007ECB;
    opacity: 0;
    transform: translateY(100%);
    transition: transform 0.4s ease-out, opacity 0.4s ease-out;
}

.modal.show .modal-content {
    opacity: 1;
    transform: translateY(0);
}

.modal.hide .modal-content {
    opacity: 0;
    transform: translateY(100%);
}

.rate-number{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
}

.rate-number span{
    padding-top: 20px;
    font-size: 20px;
    color: #005386;
    font-weight: 600;
}

.close {
    position: absolute;
    top: 0px;
    right: 24px;
    font-size: 40px;
    cursor: pointer;
    z-index: 1;
    font-weight: 200;
}

body.modal-open {
    overflow: hidden; 
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideDown {
    from {
        transform: translateY(0);
        opacity: 1;
    }
    to {
        transform: translateY(100%);
        opacity: 0;
    }
}

/* -------mouse-circle--------- */



.mouse-circle {
    position: fixed;
    width: 48px;
    height: 48px;
    border: 2px solid #97d5ff;
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    transition: width 0.2s ease-out, height 0.2s ease-out, left 0.1s ease-out, top 0.1s ease-out;
    z-index: 10000000;
}

.mouse-circle.enlarged {
    width: 120px;
    height: 120px;
}



/* --------media-query--------- */

@media (max-width: 1439px) {

    .wrapper{
        margin-top: -110px !important;
    }

    .banner{
        height: 520px;
    }

    .title-star{
        top: 20px;
        left: 330px;
    }

    .banner-container{
        max-width: 960px;
        padding: 0px 32px;
    }

    .key-visaul{
        width: 480px;
        height: 421px;
    }

    .banner-subtitle{
        width: 420px;
        height: 80px;
    }

    .banner-title,.banner-title-2{
        height: 100px;
    }

    .rate-container,.note-container,.activity-container{
        padding: 60px 32px 60px 32px;
    }

    .left-decorate-1{
        scale: 0.7;
        top: 40px;
        left: -140px;
    }
    
    .left-decorate-2{
        scale: 0.7;
        bottom: 20px;
        left: -80px;
    }
    
    .right-decorate-1{
        scale: 0.7;
        right: -100px;
        top: 120px;
    }
    
    .right-decorate-2{
        scale: 0.7;
        right: -80px;
        bottom: 40px;
    }

}

@media (max-width: 1280px) {

    .benefit-section{
        grid-template-columns: repeat(2, 2fr);
        padding: 24px;
    }

    .rate-card-block{
        padding: 0px 40px ;
    }

}

@media (max-width: 1024px) {
    .mouse-circle {
        display: none;
    }
}

@media (max-width: 1023px) {

    .wrapper{
        margin-top: -102px !important;
    }

    #progress-bar {
        top: 72px;
    }

    .banner{
        margin-top: 73px;
        height: 820px;
    }

    .title-star{
        scale: 0.6;
        top: 20px;
        left: 430px;
    }
    
    .main-button:hover{
        animation: none;
        filter: none;
    }

    .banner-slogan{
        align-items: center;
        padding-bottom: 0;
        margin-right: 0;
    }

    .banner-container{
        flex-direction: column;
        gap: 24px;
    }

    .banner-subtitle{
        margin-left: 0;
    }

    .rate-section{
        flex-direction: column;
        gap: 24px;
    }

    .rate-card-block{
        padding: 0px 24px;
        grid-template-columns: repeat(1, 1fr);
    }

    .activity-card-block{
        flex-direction: column;
    }


    .left-decorate-1{
        top: 40px;
        left: -80px;
    }
    
    .left-decorate-2{
        scale: 1;
        bottom: 210px;
        left: -120px;
    }
    
    .right-decorate-1{
        scale: 1;
        right: -100px;
        top: 120px;
    }
    
    .right-decorate-2{
        right: -120px;
        bottom: 40px;
    }

    .open-account:hover, .download-imoney:hover {
        transform: none; 
        box-shadow: none; 
    }

}

@media (max-width: 767px) {

    .wrapper{
        margin-top: -80px !important;
    }

    #progress-bar {
        top: 58px;
    }

    .banner{
        margin-top: 56px;
        height: 560px;
    }

    .banner-container{
        gap: 8px;
        padding: 0;
    }

    .rate-title{
        width: 272px;
        height: 50px;
        background-size: contain;
        margin-bottom: 24px;
    }

    .rate-card-block{
        grid-template-columns: repeat(1, 6fr);
    }

    .titletext-star{
        transform: scale(0.7);
        right: -20px;
    }


    .key-visaul{
        width: 320px;
        height: 291px;
    }

    .banner-title,.banner-title-2{
        height: 52px;
    }

    .title-star{
        width: 24px;
    }

    .title-line{
        gap: 4px;
    }

    .main-button img{
        width: auto;
        height: 56px;
    }

    .banner-subtitle{
        width: auto;
        height: 48px;
        margin-bottom: 12px;
    }


    .rate-container,.note-container{
        padding: 40px 24px 40px 24px;
    }

    .activity-title,.note-title{
        width: 132px;
        height: 50px;
        margin-bottom: 24px;
    }

    .activity-container{
        padding: 40px 24px 40px 24px;
    }

    .benefit-section{
        grid-template-columns: repeat(1, 4fr);
        padding: 32px 24px;
    }

    .activity-card-block{
        flex-direction: column;
    }

    .card-content{
        padding: 16px;
    }

    .note-content{
        padding: 24px;
    }

    

    .float-button{
        flex-direction: row;
        right: 0;
        bottom: 0;
        gap: 0;
        width: 100%;
    }

    .open-account,.download-imoney{
        width: 100%;
        height: auto;
        border: none;
        display: flex;
        flex-direction: column;
        gap: 0px;
        border-top: #AAD6FF 4px solid;
        padding: 10px 6px;
        border-radius: 0;
    }

    .download-imoney{
        border-top: #FFD6A5 4px solid;
    }

    .open-account-icon{
        width: 28px;
    }

    .first-line{
        flex-direction: row;
        padding-top: 0;
        gap: 4px;
        padding-bottom: 0px;
    }

    .open-account-chip,.download-imoney-chip{
        background-color: transparent;
    }

    .download-imoney span,.open-account span{
        padding: 0px;
        margin-top: 0;
    }

    .first-line img{
        display: none;
    }

    .modal{
        padding: 0px 24px;
    }

    .modal-content h2{
        font-size: 40px;
    }

    .close{
        top: 4px;
        font-size: 32px;
    }

    .left-decorate-1{
        scale: 0.4;
        top: 0px;
        left: -40px;
        z-index: -1;
    }
    
    .left-decorate-2{
        scale: 0.4;
        bottom: 88px;
        left: -34px;
        z-index: -1;
    }
    
    .right-decorate-1{
        scale: 0.3;
        right: 0;
        top: 90px;
        z-index: -1;
    }
    
    .right-decorate-2{
        scale: 0.4;
        right: -20px;
        bottom: 200px;
        z-index: -1;
    }
    
    .first-line p{
        font-size: 18px;
    }

    .modal-header img{
        width: 18px;
    }
}



