@charset "utf-8";
/* 自定义样式 */
#floating-buttons .btn {
    /* width: 60px;
    height: 60px; */
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 50px;
    transition: opacity 0.3s ease, transform 0.3s ease;
    border-radius: 50%; /* 确保按钮本身是圆形 */
    box-sizing: border-box; /* 包括边框和内边距在内 */
    }

    #floating-buttons .btn:hover {
    transform: scale(1.05);
    }

    #backToTop {
    display: none;
    /* 初始隐藏返回顶部按钮 */
    opacity: 0;
    border: 0;
    padding: 0;
    width: 60px; /* 固定宽度 */
    height: 60px; /* 固定高度 */
    border-radius: 50%; /* 圆形 */
    box-sizing: border-box; /* 包括边框和内边距在内 */
    transition: opacity 0.3s ease, transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    }

    /* i图标的样式 */
    #backToTop i {
    font-size: 2rem;
    color: #1aabd7;
    background-color: rgba(255, 255, 255, 0.5);
    /* 圆形背景透明 */
    border-radius: 50%;
    /* 圆形 */
    width: 100%;
    /* 继承父元素的宽度 */
    height: 100%;
    /* 继承父元素的高度 */
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    /* 阴影效果 */
    transition: transform 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
    /* 添加平滑过渡 */
    }

    /* 鼠标悬停时的效果 */
    #backToTop:hover i {
    transform: scale(1.05);
    /* 放大效果 */
    color: #1aabd7;
    /* 颜色保持不变 */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    /* 放大阴影 */
    }

    #backToTop.show {
    display: flex;
    opacity: 1;
    }

    /* #openForm {
    background: none;
    }

    #openForm img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
    } */

    #backToTop img {
    background-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
    }    

    /* 响应式调整（可选） */
    @media (max-width: 576px) {
    #floating-buttons {
        right: 3%;
        bottom: 15px;
    }

    #floating-buttons .btn,
    #backToTop {
        width: 50px;
        height: 50px;
    }

    #openForm img,
    #backToTop i {
        font-size: 1.5rem; /* 调整图标大小以适应按钮 */
    }
    }

#openForm {
    position: relative; /* 相对定位，为伪元素定位做准备 */
    width: 63px; /* 图片尺寸（200px） + 边框宽度（10px * 2） */
    height: 63px;
    border-radius: 50%; /* 圆形容器 */
    background: linear-gradient(45deg, #1aabd7,red, yellow, #1aabd7,green);
    /* background: linear-gradient(45deg, red, orange, yellow, green, blue, indigo, violet, red); */
    background-size: 400% 400%; /* 扩展背景尺寸以实现动画效果 */
    animation: gradient-animate 10s linear infinite; /* 背景动画 */
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 3px; /* 边框宽度 */
    box-sizing: border-box; /* 包含内边距在内的盒模型 */
}

/* 关键帧动画，改变背景位置以实现渐变动画效果 */
@keyframes gradient-animate {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* 图片样式 */
#openForm img {
    width: 60px; /* 图片宽度 */
    height: 60px; /* 图片高度 */
    border-radius: 50%; /* 圆形图片 */
    object-fit: cover; /* 图片覆盖，保持比例 */
    display: block;
}