/* 全局基础样式 */
body {
    overflow-x: hidden;
    font-family: 'Microsoft Yahei', sans-serif;
    color: white;
    margin: 0;
    padding: 0;
}

/* 动态背景画布（粒子特效） */
#canvas-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: #0a0e17;
}

/* 动态按钮通用样式（渐变流光） */
.btn-hover {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}
.btn-hover::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: all 0.6s ease;
}
.btn-hover:hover::before {
    left: 100%;
}

/* 雪花/爱心特效样式（点击/移动触发） */
.snowflake, .heart {
    position: absolute;
    pointer-events: none;
    z-index: 9999;
    animation: fadeOut linear forwards;
}
.snowflake {
    color: #fff;
    font-size: 16px;
    animation-duration: 3s;
}
.heart {
    color: #ff4d6d;
    font-size: 20px;
    animation-duration: 1.5s;
}
@keyframes fadeOut {
    0% {
        opacity: 1;
        transform: translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateY(-50px) rotate(360deg);
    }
}

/* 产品卡片动画（悬浮上浮+阴影） */
.product-card {
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}
.product-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* 后台登录页面专属样式 */
.login-bg {
    background: linear-gradient(135deg, #0a0e17, #1a1f35);
    min-height: 100vh;
}
.login-card {
    backdrop-filter: blur(10px);
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
}

/* ########## 新增：在线悬浮客服样式 ########## */
.kf-fixed {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 9998;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(to right, #ff4d6d, #ff7a8f);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 4px 12px rgba(255, 77, 109, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}
.kf-fixed:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(255, 77, 109, 0.7);
}
/* 客服手机号提示弹窗 */
.kf-modal {
    position: fixed;
    right: 90px;
    bottom: 20px;
    z-index: 9998;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(10px);
    padding: 15px 20px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
    display: none;
}
.kf-modal.show {
    display: block;
}
.kf-modal p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
}
.kf-modal .kf-phone {
    color: #ff4d6d;
    font-weight: bold;
    font-size: 16px;
}
/* 移动端适配：缩小客服按钮 */
@media (max-width: 768px) {
    .kf-fixed {
        width: 50px;
        height: 50px;
        font-size: 20px;
        right: 15px;
        bottom: 15px;
    }
    .kf-modal {
        right: 75px;
        bottom: 15px;
        padding: 10px 15px;
    }
}