/* 右下角浮动客服（全站） */
.float-cs {
  position: fixed;
  right: max(16px, env(safe-area-inset-right, 0px));
  bottom: max(20px, env(safe-area-inset-bottom, 0px));
  z-index: 180;
  font-family: "Inter", system-ui, -apple-system, sans-serif;
}

.float-cs__fab {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(145deg, rgba(59, 130, 246, 0.95), rgba(34, 211, 238, 0.75));
  box-shadow:
    0 4px 24px rgba(59, 130, 246, 0.45),
    0 0 0 1px rgba(0, 0, 0, 0.2);
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.25s;
}

.float-cs__fab:hover {
  transform: scale(1.06);
  box-shadow:
    0 8px 32px rgba(59, 130, 246, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.15);
}

.float-cs__fab:focus-visible {
  outline: 2px solid var(--cyan, #22d3ee);
  outline-offset: 3px;
}

.float-cs__fab[aria-expanded="true"] {
  background: linear-gradient(145deg, rgba(34, 211, 238, 0.85), rgba(59, 130, 246, 0.7));
}

.float-cs__icon {
  width: 26px;
  height: 26px;
}

.float-cs__panel {
  position: absolute;
  right: 0;
  bottom: calc(100% + 12px);
  width: min(280px, calc(100vw - 32px));
  padding: 0;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(17, 17, 20, 0.96);
  backdrop-filter: blur(12px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.55);
  overflow: hidden;
}

.float-cs__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.875rem;
  font-weight: 700;
  color: #e8eaef;
}

.float-cs__close {
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: #8b919d;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.float-cs__close:hover {
  background: rgba(239, 68, 68, 0.2);
  color: #fecaca;
}

.float-cs__body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.float-cs__hint {
  margin: 0;
  font-size: 0.75rem;
  line-height: 1.5;
  color: #8b919d;
}

.float-cs__tel {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #e8eaef;
  text-decoration: none;
  background: rgba(59, 130, 246, 0.2);
  border: 1px solid rgba(59, 130, 246, 0.35);
  transition: background 0.2s;
}

.float-cs__tel:hover {
  background: rgba(59, 130, 246, 0.32);
}

.float-cs__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 0.875rem;
  font-weight: 600;
  color: #e8eaef;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  transition: border-color 0.2s, background 0.2s;
}

.float-cs__link:hover {
  border-color: rgba(34, 211, 238, 0.45);
  background: rgba(34, 211, 238, 0.08);
}

.float-cs__qr-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding-top: 4px;
}

.float-cs__qr-wrap img {
  width: 120px;
  height: 120px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.float-cs__qr-wrap span {
  font-size: 0.6875rem;
  color: #8b919d;
}

@media (max-width: 480px) {
  .float-cs__fab {
    width: 52px;
    height: 52px;
  }
}
