@charset "UTF-8";
/* CSS Document */
/* 页面基础样式 */
body {
    margin: 0;
    padding: 0;
    /*min-height: 2000px;*/
    font-family: Arial, sans-serif;
}

/* 核心：电话整体部件 */
.phone-widget {
    position: fixed;
    bottom: 50px;
    right: 0;
    display: flex;
    align-items: center;
    background-color: #2196F3;
    border-radius: 25px 0 0 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    z-index: 9999;
    transform: translateX(calc(100% - 50px));
}

/* 电话文本样式 */
.phone-text {
    color: white;
    padding: 12px 20px;
    font-size: 16px;
    white-space: nowrap;
}

/* 悬浮按钮样式 + 动画 */
.float-btn {
    width: 50px;
    height: 50px;
    background-color: #2196F3;
    color: #ffffff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
    /* 1. 基础悬停放大（原有效果） */
    transition: transform 0.3s ease;
    /* 2. 呼吸闪烁动画（默认持续播放） */
    animation: breath 2s ease-in-out infinite;
}

/* 整体滑动展开 */
.phone-widget:hover {
    transform: translateX(0);
}

/* 悬停时增强按钮效果（可选：叠加旋转/弹跳） */
.phone-widget:hover .float-btn {
    transform: scale(1.0) translateY(-5px); /* 放大+弹跳 */
    /* 若要弹跳效果，替换上方为：transform: scale(1.05) translateY(-5px); */
}

/* ========== 动画定义（关键帧） ========== */
/* 动画1：呼吸闪烁（大小+透明度变化，营造提醒效果） */
@keyframes breath {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1);
        opacity: 0.8;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* 动画2：旋转动画（可单独使用或叠加） */
@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}


        transform: translateY(0);
    }
}
