#jk-kuajing-root {
  position: fixed;
  right: 24px;
  bottom: 80px;
  z-index: 2147483646;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: normal;
  box-sizing: border-box;
}

#jk-kuajing-root *,
#jk-kuajing-root *::before,
#jk-kuajing-root *::after {
  box-sizing: border-box;
}

#jk-kuajing-root .jk-trigger-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1a56db 0%, #06b6d4 100%);
  box-shadow: 0 4px 16px rgba(26, 86, 219, 0.4);
  cursor: grab;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s, box-shadow 0.2s;
  overflow: hidden;
  user-select: none;
  touch-action: none;
}

#jk-kuajing-root.dragging .jk-trigger-icon,
#jk-kuajing-root .jk-trigger-icon:active {
  cursor: grabbing;
  transition: none;
}

#jk-kuajing-root .jk-trigger-icon:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 20px rgba(26, 86, 219, 0.5);
}

#jk-kuajing-root.dragging .jk-trigger-icon:hover {
  transform: none;
}

#jk-kuajing-root .jk-trigger-icon img,
#jk-kuajing-root .jk-logo-img {
  width: 32px;
  height: 32px;
  min-width: 32px;
  min-height: 32px;
  border-radius: 8px;
  object-fit: contain;
  aspect-ratio: 1 / 1;
  pointer-events: none;
}

#jk-kuajing-root .jk-panel {
  position: absolute;
  z-index: 2147483647;
  width: 200px;
  background: #fff !important;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: scale(0.96);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  overflow: hidden;
  display: block !important;
}

#jk-kuajing-root .jk-panel.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: scale(1);
}

#jk-kuajing-root .jk-panel.jk-panel-top {
  bottom: 64px;
  top: auto;
}

#jk-kuajing-root .jk-panel.jk-panel-bottom {
  top: 64px;
  bottom: auto;
}

#jk-kuajing-root .jk-panel.jk-panel-right {
  right: calc(100% + 12px);
  left: auto;
}

#jk-kuajing-root .jk-panel.jk-panel-left {
  left: calc(100% + 12px);
  right: auto;
}

#jk-kuajing-root .jk-functions-list {
  overflow: hidden;
  padding: 16px 0;
  display: block !important;
  background: #fff !important;
}

#jk-kuajing-root .jk-functions-list::-webkit-scrollbar {
  display: none;
}

#jk-kuajing-root .jk-function-item {
  position: relative;
  z-index: 2;
  display: flex !important;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  cursor: pointer !important;
  transition: background 0.15s;
  border: none;
  background: #fff !important;
  visibility: visible !important;
  opacity: 1 !important;
}

#jk-kuajing-root .jk-function-item.jk-version-row {
  cursor: default;
  padding-top: 8px;
  padding-bottom: 4px;
}

#jk-kuajing-root .jk-function-item:not(.jk-version-row):hover {
  background: #f2f3f5 !important;
}

#jk-kuajing-root .jk-function-name {
  font-size: 16px;
  font-weight: 500;
  color: #303133 !important;
  line-height: 1.5;
  text-align: center;
  display: block !important;
  white-space: nowrap;
}

#jk-kuajing-root .jk-function-name .jk-hint {
  font-weight: 400;
  font-size: 14px;
  color: #909399 !important;
}

#jk-kuajing-root .jk-version-text {
  font-weight: 400 !important;
  font-size: 14px !important;
  color: #909399 !important;
}

#jk-kuajing-root .jk-kefu-item .jk-function-name {
  color: #303133 !important;
}

#jk-kuajing-root .jk-new-badge {
  position: absolute;
  right: 12px;
  top: 6px;
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  background: #f56c6c;
  padding: 1px 5px;
  border-radius: 3px;
  line-height: 1.4;
  letter-spacing: 0.5px;
}
