/* button-primary */
.btn{
    background-color: #076ED7;
    padding: 16px 32px;
    border: none;
    border-radius: 100px;
    color: white;
    transition: all 600ms cubic-bezier(.23, 1, 0.32, 1);
    width: 100%;
    white-space: nowrap;
}
.btn:hover {
    background-color: #0664C4; 
    box-shadow: rgba(0, 92, 184, 0.13) 0 8px 14px 0;
    transform: translateY(-4px);
}
.btn:active {
    background-color: #1E8BFA; 
}


/* button-secondary */
.btn-secondary{
    width: 240px;
    padding: 16px 24px;
    text-align: center;
    border-radius: 100px;
    border: 1px solid #076ED7;
    margin-top: 16px;
    transition: all 600ms cubic-bezier(.23, 1, 0.32, 1);
    display: flex;
    justify-content: center;
    margin: 0 auto;
}

.btn-secondary:hover{
    transform: translateY(-4px);
}



@media (max-width: 1023px) {

    .btn-secondary{
        width: 100%;
    }

}

/* download-button */

/* .download-btn{
    width: 100%;
    filter: drop-shadow(4px 6px 10px rgba(42, 106, 174, 0.35));
    transition: all 600ms cubic-bezier(.23, 1, 0.32, 1);
}

.download-btn:hover {
    transform: translateY(-4px);
} */

/* float-button */
.float-btn {
    display: flex;
    flex-direction: column;
    justify-content:flex-start;
    padding-top: 12px;
    align-items: center;
    color: white;
    position: relative;
    width: 104px;
    height: 104px;
    background-color: #005BAC;
    border-radius: 16px 16px 18px 18px;
    font-size: 16px;
    transition: all 600ms cubic-bezier(.23, 1, 0.32, 1);
}

.float-btn:hover{
    background-color: #0664C4;
    box-shadow: rgba(0, 92, 184, 0.13) 0 8px 14px 0; 
    transform: translateY(-4px);
}

.float-btn-2 {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    width: 104px;
    height: 104px;
    background-color: #EA6F17;
    border-radius: 16px;
    font-size: 16px;
    transition: all 600ms cubic-bezier(.23, 1, 0.32, 1);
}

.float-btn-2:hover{
    background-color: #EB6100;
    box-shadow: rgba(184, 86, 0, 0.13) 0 8px 14px 0;
    transform: translateY(-4px);
}

.svg-icon{
    width: 32px;
    margin-bottom: 4px;
}
.link-icon-dark,.link-icon-light{
    width: 16px;
    margin-left: 8px;
}
.fixed-btn{
    position: fixed;
    right: 40px;
    bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

@media (max-width: 767px) {
    
    .float-btn,.float-btn-2{
        width: 100%;
        height: auto;
        flex-direction: row;
        text-align: center;
        justify-content: center;
        padding: 20px 0px;
        border-radius: 0px;
        font-size: 18px;
        gap: 8px;
    }

    
    .compony{
        font-size: 14px;
        margin-top: 4px;
        text-align: left;
    }

    .svg-icon{
        width: 20px;
        margin-bottom: 0px;
    }
    .fixed-btn{
        right: 0;
        bottom: 0;
        flex-direction: row;
        width: 100%;
        gap: 0px;
    }

    .btn:hover,.btn-secondary:hover,.float-btn-2:hover,.float-btn:hover{
        transform: none;
    }
} 




/* card-item*/
.item{
    background-image: url(../images/illustration/item.svg);
    width: 16px;
}

/* chip animation */
@keyframes spread-background {
    0% {
        box-shadow: 0 0 0 0 rgb(255, 223, 184); 
    }
    100% {
        box-shadow: 0 0 10px 20px rgba(255, 255, 255, 0); 
    }
}

.chip{
    perspective: 1000px; 
    height: 40px;
    width: 120px;
    position: relative;
    transition: all 600ms cubic-bezier(.23, 1, 0.32, 1);
    
}
.chip:hover{
    transform: translateY(-4px);
}

.chip-text{
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.8s ease-in-out;
}

.front{
    animation: spread-background 1s infinite ease-in-out; /* 擴散動畫 */
    transition: background-color 0.5s ease; /* 過渡效果 */
    border-radius: 100px;
}

.front, .back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 100px;
  }

.front {
    background-color: #FDEFE6;
    color: #EA6F17;
    
  }

.front p{
    font-weight: 500;
  }

  
.back {
    background-color: #EA6F17;
    color: white;
    transform: rotateY(180deg);
  }
  
.flip .chip-text {
    transform: rotateY(180deg);
  }

.sales{
    font-size: 14px;
    font-weight: 500;
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 4px 0px;
    text-align: center;
    background-color: #FDEFE6;
    border-radius: 0px 0px 16px 16px;
    color: #EB6100;
}

/* 星星容器 */
.sparkle-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

/* 星星樣式 */
.sparkle {
    position: absolute;
    width: 12px; 
    height: 12px; 
    background-color: transparent;
    clip-path: polygon(50% 0%, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0% 50%, 38% 38%);
    border-radius: 60%;
    animation: sparkle-animation 1s ease-out forwards;
}
/* 星星動畫 */
@keyframes sparkle-animation {
    0% {
        transform: translate(0, 0) scale(0) rotate(0deg); /* 初始狀態 */
        opacity: 1;
    }
    100% {
        transform: translate(var(--translateX), var(--translateY)) scale(2) rotate(720deg); /* 最終狀態 */
        opacity: 0;
    }
}


@media (max-width: 767px) {

    .sales{
        font-size: 14px;
        top: 0;
        right: 0;
        padding: 0px 8px 0px 8px;
        bottom: auto;
        width: auto;
        border-radius: 0px 0px  0px 8px;
        white-space: nowrap;
    }
}