/* 飞书跳转按钮容器 */
.DBN-feishu-button-jump {
  position: absolute;
  top: 200px;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  user-select: none;
  overflow: hidden;
  background: linear-gradient(90deg, #409eff 0%, #409eff 100%);
  border-radius: 4px 0 0 4px;
  box-shadow: -2px 2px 8px rgba(64, 158, 255, 0.3);
  color: #ffffff;
  will-change: transform, width;
  /* 提示浏览器优化渲染 */
  /* 默认收缩：只显示图标 */
  width: 46px;
  height: 40px;
  /* 只对需要动画的属性应用 transition，不包括 top */
  transition: width 0.3s ease;
  white-space: nowrap;
}

.DBN-feishu-button-jump:hover {
  width: 160px;
  background-color: #66b1ff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 当按钮处于拖拽状态时，强制其保持收缩状态，即使在 hover 时也不展开 */
.DBN-feishu-button-jump.is-dragging {
  width: 40px !important;
  cursor: grabbing;
  /* 优化拖拽时的鼠标指针样式 */
  transition: none;
}

/* 拖拽时强制展开，保持完整按钮可见 */
.DBN-feishu-button-jump.dragging {
  width: 160px !important;
  opacity: 0.9;
  cursor: grabbing;
  will-change: transform;
}

/* 图标部分（始终显示） */
.DBN-feishu-button-jump-icon {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateX(6px);
}

/* 按钮文字 */
.DBN-feishu-button-jump-text {
  color: white;
  white-space: nowrap;
  opacity: 0;
  padding-right: 12px;
  transition: opacity 0.2s ease;
  font-size: 14px;
}

/* hover时显示文字 */
.DBN-feishu-button-jump:hover .DBN-feishu-button-jump-text {
  opacity: 1;
  transition-delay: 0.1s;
}

/* 拖拽时文字始终可见 */
.DBN-feishu-button-jump.dragging .DBN-feishu-button-jump-text {
  opacity: 1 !important;
}
