/* 悬浮工具卡片 - 默认收缩状态 */
.float-tool-card {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--trbg, #ffffff);
    color: #e6e6e6;

    border-radius: 50px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    /* 核心：默认收缩为圆形 */
    width: 48px;
    height: 48px;
    padding: 0;
    overflow: hidden;
    white-space: nowrap;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding-left: 15px;
}

/* 鼠标悬停 */
.float-tool-card:hover {
    width: auto;
    height: auto;
    padding: 8px 14px;
    border-radius: 14px;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* 按钮通用样式 */
.tool-btn {
    border: none;
    background: transparent;
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
    fill: #e6e6e6;

}

/* 图标按钮 */
.icon-btn {
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: 50%;
}

/* 文字按钮 - 默认隐藏 */
.text-btn {
    opacity: 0;
    width: 0;
    padding: 0;
    margin: 0;
    overflow: hidden;
}

/* 鼠标悬停时文字按钮显示 */
.float-tool-card:hover .text-btn {
    opacity: 1;
    width: auto;
    padding: 6px 10px;
    margin-left: 4px;
}

/* 按钮交互反馈 */
.tool-btn:hover {
    background-color: rgba(0, 0, 0, 0.08);
    color: #e6e6e6;

}

/* SVG 图标样式 */
.icon-btn svg {
    width: 24px;
    height: 24px;
    display: block;
}