/* 悬浮按钮容器样式 */
.float-button {
    position: fixed;  /* 固定定位 */
    left: 600rem;      /* 距离右边20像素 */
    bottom: 200rem;    /* 距离底部20像素 */
    z-index: 999;     /* 确保在最上层 */
}

/* 按钮主体样式 */
.btn-main {
    width: 140rem;
    height: 60rem;
    background: rgba(47, 38, 169, 1);  /* 蓝色背景 */
    color: white;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 2rem 5rem rgba(0,0,0,0.3);  /* 添加阴影 */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;  /* 过渡动画 */
    font-size: 18rem;
}

/* 鼠标悬停效果 */
.btn-main:hover {
    background: #1976D2;  /* 深蓝色 */
    transform: scale(1.1);  /* 放大效果 */
}

/* 点击效果 */
.btn-main:active {
    transform: scale(0.9);
}

/* 提示框样式 */
.tooltip {
    position: fixed;
    left: 590rem;
    top:10rem;
    background: #fff;
    padding: 12rem 16rem;
    border-radius: 8rem;
    box-shadow: 0 4rem 12rem rgba(0,0,0,0.15);
    opacity: 1;
    transition: all 0.3s;
    white-space: nowrap;
    z-index: 1002;
}

/* 显示提示框 */
.tooltip.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(-10rem);
}

/* 提示箭头 */
.tooltip::after {
    content: '';
    position: absolute;
    right: 740rem;
    bottom: 20rem;
    border-width: 8rem;
    border-style: solid;
    border-color: transparent transparent transparent #fff;
    filter: drop-shadow(2px 0 2px rgba(0,0,0,0.1));
}

/* 文字提示 */
.tooltip-text {
    color: #333;
    font-size: 14rem;
    font-family: "Helvetica Neue", sans-serif;
    display: flex;
    align-items: center;
}

/* 右上角箭头图标 */
.arrow-icon {
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 20px solid black;
}
