/* 重置所有元素的默认样式 */
@font-face {
    font-family: 'HarmonyOS Sans SC';
    src: url('../font/HarmonyOS_Sans_SC_Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    font-family: HarmonyOS Sans SC;
    font-size: 16px;
    line-height: 1.5;
    color: #333;
}

ul,
ol {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.pc-pad {
    display: block !important
}
.mobile-only{
    display: none !important
}

.pc-m {
    display: block !important
}
/* 动画元素的基础样式 */
.animate-element {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease-out;
}

/* 动画激活时的样式 */
.animate-fade-up {
    opacity: 1;
    transform: translateY(0);
} 

/* 左侧进入 */
.animate-element-left {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s ease-out;
}   
.animate-fade-left {
    opacity: 1;
    transform: translateX(0);
}

/* 右侧进入 */
.animate-element-right {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s ease-out;
}   
.animate-fade-right {
    opacity: 1;
    transform: translateX(0);
}




@media (max-width: 767px) {
    .pc-pad {
        display: none !important
    }

    .pc-m {
        display: block !important
    }
    .mobile-only{
        display: block !important
    }
    
    /* 移动端禁用横向动画，统一使用垂直动画避免横向滚动 */
    .animate-element-left,
    .animate-element-right {
        opacity: 0;
        transform: translateY(30px);
        transition: all 0.8s ease-out;
    }
    
    .animate-fade-left,
    .animate-fade-right {
        opacity: 1;
        transform: translateY(0);
    }
    
    /* 确保页面不会有横向滚动 */
    body {
        overflow-x: hidden;
    }
}