/* 悬浮客服 v2 — 仅用 display 控制显隐，避免 visibility 动画问题 */
.fc-float {
  position: fixed;
  right: 18px;
  bottom: 22px;
  z-index: 2147483000;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
}

.fc-panel {
  display: none;
  position: absolute;
  right: 0;
  bottom: 64px;
  width: 300px;
  max-height: min(70vh, 420px);
  overflow: auto;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.18);
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.fc-float.is-open .fc-panel {
  display: block;
}

.fc-panel-hd {
  padding: 14px 16px 10px;
  font-size: 15px;
  font-weight: 600;
  color: #0f172a;
  border-bottom: 1px solid #f1f5f9;
}

.fc-group {
  padding: 10px 12px 4px;
}

.fc-group-title {
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  margin: 0 4px 8px;
}

.fc-item {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  border-radius: 10px;
  background: #f8fafc;
  overflow: hidden;
}

.fc-type-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  margin-left: 8px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fc-type-icon svg {
  width: 22px;
  height: 22px;
  display: block;
}

.fc-item-link {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  padding: 10px 8px;
  text-decoration: none;
  color: #0f172a;
}

.fc-item-link:hover {
  background: #eef2ff;
}

.fc-item-main {
  flex: 1;
  min-width: 0;
}

.fc-item-label {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
}

.fc-item-account {
  font-size: 12px;
  color: #64748b;
  margin-top: 2px;
  word-break: break-all;
}

.fc-copy {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  border: 0;
  cursor: pointer;
  padding: 0 10px;
  margin: 4px 8px 4px 0;
  background: transparent;
  color: #2563eb;
  font-size: 12px;
  border-left: 1px solid rgba(15, 23, 42, 0.06);
  min-height: 40px;
}

.fc-copy:hover {
  background: rgba(37, 99, 235, 0.08);
  border-radius: 8px;
}

.fc-copy.is-copied {
  color: #16a34a;
}

.fc-copy svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.fc-trigger {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 52px;
  height: 52px;
  padding: 0 16px;
  border: 0;
  border-radius: 26px;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.fc-trigger:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.42);
}

.fc-trigger svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
  flex-shrink: 0;
}

.fc-trigger-text {
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .fc-float {
    right: 12px;
    bottom: 16px;
  }
  .fc-panel {
    width: min(300px, calc(100vw - 24px));
  }
  .fc-trigger-text {
    display: none;
  }
  .fc-trigger {
    width: 52px;
    padding: 0;
  }
  .fc-copy span {
    display: none;
  }
}
