html, body {
    overflow-x: hidden;
    width: 100%;
}

.nav-item {
    cursor: pointer;
    color: #000;
    transition: color 0.2s ease; /* 添加过渡动画 */
    -webkit-tap-highlight-color: transparent; /* 移除移动端点击时的蓝色高亮 */
}

/* 移动端触摸效果 */
.nav-item:active {
    color: #559ff6;
}

/* PC端悬停效果（仅对支持 hover 的设备生效） */
@media (hover: hover) {
    .nav-item:hover {
        color: #559ff6;
    }
}


.btn-change {
    cursor: pointer;
    color: #000;
    transition: all 0.3s ease; /* 缩短过渡时间，移动端更适合快速反馈 */
    -webkit-tap-highlight-color: transparent; /* 移除移动端点击时的默认高亮 */
    touch-action: manipulation; /* 优化触摸响应 */
}

/* 移动端触摸效果 */
.btn-change:active {
    color: #fff;
    background-color: #559ff6;
}

/* 保留桌面端的hover效果 */
@media (hover: hover) {
    .btn-change:hover {
        color: #fff;
        background-color: #559ff6;
    }
}


.bounce-down{
    animation: fall 1s ease-out forwards;
}
.bounce-mb-down{
    animation: fall_mb 1s ease-out forwards;
}

.bounce-down2{
    animation: fall2 1s ease-out forwards;
}
.bounce-mb-down2{
    animation: fall2_mb 1s ease-out forwards;
}

.bounce-down3{
    animation: fall3 1s ease-out forwards;
}
.bounce-mb-down3{
    animation: fall3_mb 1s ease-out forwards;
}

.bounce-down4{
    animation: fall4 1s ease-out forwards;
}
.bounce-mb-down4{
    animation: fall4_mb 1s ease-out forwards;
}

@keyframes fall {
    from {
        top: 10%;
        opacity: 0;
    }
    to {
        top: 24%; /* 调整这个值控制下落终点 */
        opacity: 1;
    }
}

@keyframes fall_mb {
    from {
        margin-top: 30%;
        opacity: 0;
    }
    to {
        margin-top: 59%; /* 调整这个值控制下落终点 */
        opacity: 1;
    }
}

@keyframes fall2 {
    from {
        bottom: -6%;
        opacity: 0;
    }
    to {
        bottom: 0%; /* 调整这个值控制下落终点 */
        opacity: 1;
    }
}

@keyframes fall2_mb {
    from {
        margin-top:25%;
        opacity: 0;
    }
    to {
        margin-top:49%;
        opacity: 1;
    }
}

@keyframes fall3 {
    from {
        top: 10%;
        opacity: 0;
    }
    to {
        top: 32%; /* 调整这个值控制下落终点 */
        opacity: 1;
    }
}
@keyframes fall3_mb {
    from {
        margin-top:0%;
        opacity: 0;
    }
    to {
        margin-top:5%;
        opacity: 1;
    }
}

@keyframes fall4 {
    from {
        right: -20%;
        opacity: 0;
    }
    to {
        right: 0%; /* 调整这个值控制下落终点 */
        opacity: 1;
    }
}
@keyframes fall4_mb {
    from {
        right: -20%;
        opacity: 0;
    }
    to {
        right: 0%; /* 调整这个值控制下落终点 */
        opacity: 1;
    }
}

/*淡入效果*/
.fade-in {
    animation: fadeIn 0.5s ease-in forwards;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
