﻿/* ====================
   心服务底部返回和返顶按钮模块
   ==================== */
/* 返回顶部按钮 - 增强动效版 */
#backToTopBtn {
    /* 原有样式保持不变 */
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #ff00ff, #c400c4); /* 添加渐变效果 */
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    opacity: 0;
    transition: 
        opacity 0.3s, 
        transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
        box-shadow 0.3s;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 悬停效果 */
#backToTopBtn:hover {
    background: linear-gradient(135deg, #e500e5, #a800a8); /* 加深渐变 */
    transform: translateY(-5px) scale(1.02); /* 上浮+轻微放大 */
    box-shadow: 0 8px 16px rgba(0,0,0,0.2); /* 增强阴影 */
}

/* 按下效果 */
#backToTopBtn:active {
    transform: translateY(2px) scale(0.98); /* 下沉+轻微缩小 */
    box-shadow: 0 2px 4px rgba(0,0,0,0.15); /* 减弱阴影 */
}

/* 箭头动画 */
#backToTopBtn::after {
    content: "↑";
    color: white;
    font-size: 24px;
    font-weight: bold;
    transition: transform 0.2s ease;
}

/* 悬停时箭头微动 */
#backToTopBtn:hover::after {
    transform: translateY(-2px);
}

/* 显示状态 */
#backToTopBtn.opacity-100 {
    opacity: 1;
}
	
	
/* 返回网站主页按钮样式 */
.return-home-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    background-color: #6366f1; /* 初始背景色 - indigo-600 */
    color: white;
    border-radius: 0.5rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transform: translateY(0);
}

/* 鼠标悬停效果 */
.return-home-btn:hover {
    background-color: #ff0000; /* 悬停背景色 - indigo-700 */
    transform: translateY(-2px); /* 轻微上浮效果 */
    box-shadow: 0 6px 12px -2px rgba(0, 0, 0, 0.15); /* 阴影加深 */
}

/* 鼠标按下效果 */
.return-home-btn:active {
    transform: translateY(1px); /* 轻微下压效果 */
    box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.1); /* 阴影变浅 */
}

/* 图标与文字间距 */
.return-home-btn i {
    margin-right: 0.5rem;
    font-size: 1rem;
}


@keyframes subtle-jitter {
  0% { transform: translateX(0); }
  25% { transform: translateX(-2px); rotate(-1deg); }
  50% { transform: translateX(0); rotate(0deg); }
  75% { transform: translateX(2px); rotate(1deg); }
  100% { transform: translateX(0); rotate(0deg); }
}

.hover\:jitter:hover {
  animation: subtle-jitter 0.3s ease-in-out;
}
