.pv-float-contact {
  position: fixed;
  right: 0;
  bottom: var(--pv-fc-bottom, 120px);
  z-index: 9990;
  overflow: visible;
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px;
  line-height: 1.5;
}

.pv-float-contact--hide-mobile {
  display: none;
}

@media (min-width: 768px) {
  .pv-float-contact--hide-mobile {
    display: block;
  }
}

.pv-float-contact__tab {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  padding: 10px 8px;
  color: #fff;
  cursor: pointer;
  background: var(--pv-fc-color, #1e9fff);
  border: none;
  border-radius: 8px 0 0 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  transition: filter 0.2s, transform 0.2s;
}

.pv-float-contact__tab:hover {
  filter: brightness(1.05);
}

.pv-float-contact.is-open .pv-float-contact__tab {
  filter: brightness(0.95);
}

.pv-float-contact__tab-icon {
  font-size: 18px;
  line-height: 1;
}

.pv-float-contact__tab-text {
  font-size: 12px;
  letter-spacing: 0.05em;
  writing-mode: vertical-rl;
}

.pv-float-contact__panel {
  position: absolute;
  right: 52px;
  bottom: 0;
  width: 280px;
  overflow: hidden;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(15, 23, 42, 0.16);
}

.pv-float-contact__panel-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  color: #fff;
  background: var(--pv-fc-color, #1e9fff);
}

.pv-float-contact__panel-hd strong {
  font-size: 15px;
  font-weight: 600;
}

.pv-float-contact__close,
.pv-float-contact__qr-close {
  padding: 0 6px;
  font-size: 22px;
  line-height: 1;
  color: inherit;
  cursor: pointer;
  background: transparent;
  border: none;
  opacity: 0.9;
}

.pv-float-contact__list {
  max-height: 360px;
  padding: 8px;
  overflow-y: auto;
}

.pv-float-contact__item {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 10px;
  margin-bottom: 6px;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  background: #f8fafc;
  border-radius: 8px;
  transition: background 0.2s;
}

.pv-float-contact__item:last-child {
  margin-bottom: 0;
}

.pv-float-contact__item:hover {
  background: #eef6ff;
}

.pv-float-contact__item-icon {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  font-size: 14px;
  font-weight: 700;
  color: var(--pv-fc-color, #1e9fff);
  background: #fff;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(30, 159, 255, 0.25);
}

.pv-float-contact__item-body {
  flex: 1;
  min-width: 0;
}

.pv-float-contact__item-label {
  display: block;
  font-weight: 600;
  color: #1e293b;
}

.pv-float-contact__item-value {
  display: block;
  font-size: 13px;
  color: #475569;
  word-break: break-all;
}

.pv-float-contact__item-tip {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: #94a3b8;
}

.pv-float-contact__item-go {
  flex-shrink: 0;
  font-size: 12px;
  color: var(--pv-fc-color, #1e9fff);
}

.pv-float-contact__qr {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.45);
}

.pv-float-contact__qr-box {
  position: relative;
  width: min(92vw, 300px);
  padding: 20px 16px 16px;
  text-align: center;
  background: #fff;
  border-radius: 12px;
}

.pv-float-contact__qr-close {
  position: absolute;
  top: 6px;
  right: 8px;
  color: #64748b;
}

.pv-float-contact__qr-img {
  display: block;
  width: 220px;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  border-radius: 8px;
}

.pv-float-contact__qr-tip {
  margin: 12px 0 0;
  font-size: 13px;
  color: #475569;
}

/* ── 样式：彩色圆球 (orbs) ── */
.pv-float-contact--orbs {
  right: 12px;
}

.pv-fc-orbs__stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
}

.pv-fc-orb {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  padding: 0;
  color: #fff;
  cursor: pointer;
  background: var(--pv-fc-color, #1e9fff);
  border: none;
  border-radius: 50%;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.22);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
}

.pv-fc-orb:hover,
.pv-fc-orb:focus-visible {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.28);
}

.pv-fc-orb.is-disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.pv-fc-orb--qq {
  background: linear-gradient(145deg, #4fc3f7, #039be5);
  box-shadow: 0 6px 22px rgba(3, 155, 229, 0.45);
}

.pv-fc-orb--wechat {
  background: linear-gradient(145deg, #34d399, #059669);
  box-shadow: 0 6px 22px rgba(5, 150, 105, 0.45);
}

.pv-fc-orb--vip {
  background: linear-gradient(145deg, #fb7185, #e11d48);
  box-shadow: 0 6px 22px rgba(225, 29, 72, 0.45);
}

.pv-fc-orb--phone {
  background: linear-gradient(145deg, #818cf8, #4f46e5);
  box-shadow: 0 6px 22px rgba(79, 70, 229, 0.4);
}

.pv-fc-orb--email {
  background: linear-gradient(145deg, #fbbf24, #d97706);
  box-shadow: 0 6px 22px rgba(217, 119, 6, 0.4);
}

.pv-fc-orb__glyph {
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.pv-fc-glyph-vip {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.pv-fc-orb__pop {
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  z-index: 2;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 500;
  color: #f8fafc;
  white-space: nowrap;
  pointer-events: none;
  background: rgba(30, 41, 59, 0.92);
  border-radius: 6px;
  opacity: 0;
  transform: translate(8px, -50%);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.pv-fc-orb__pop::after {
  position: absolute;
  top: 50%;
  right: -6px;
  width: 0;
  height: 0;
  margin-top: -6px;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 6px solid rgba(30, 41, 59, 0.92);
  content: '';
}

.pv-fc-orb:hover .pv-fc-orb__pop,
.pv-fc-orb:focus-visible .pv-fc-orb__pop {
  opacity: 1;
  transform: translate(0, -50%);
}

.pv-fc-orb__pop--qr {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  padding: 12px;
  white-space: normal;
  text-align: center;
}

.pv-fc-orb__pop--qr img {
  display: block;
  width: 120px;
  height: 120px;
  object-fit: contain;
  background: #fff;
  border-radius: 6px;
}

.pv-fc-orb__pop--qr em {
  font-style: normal;
  font-size: 12px;
  color: #cbd5e1;
}

/* ── 样式：图标轨 (rail) ── */
.pv-float-contact--rail {
  right: 0;
}

.pv-fc-rail__stack {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.pv-fc-rail__item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 44px;
  height: 44px;
  padding: 0 10px 0 0;
  overflow: visible;
  color: #fff;
  cursor: pointer;
  background: var(--pv-fc-color, #1e9fff);
  border: none;
  border-radius: 22px 0 0 22px;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.14);
  text-decoration: none;
  transition: min-width 0.22s ease, filter 0.2s;
}

.pv-fc-rail__item:hover,
.pv-fc-rail__item:focus-visible {
  min-width: 148px;
  filter: brightness(1.06);
}

.pv-fc-rail__item--qq { background: #039be5; }
.pv-fc-rail__item--wechat { background: #059669; }
.pv-fc-rail__item--vip { background: #e11d48; }
.pv-fc-rail__item--phone { background: #4f46e5; }
.pv-fc-rail__item--email { background: #d97706; }

.pv-fc-rail__icon {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.pv-fc-rail__label {
  max-width: 0;
  padding-right: 0;
  padding-left: 0;
  overflow: hidden;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(8px);
  transition:
    opacity 0.18s ease,
    transform 0.18s ease,
    max-width 0.22s ease,
    padding 0.22s ease;
}

.pv-fc-rail__item:hover .pv-fc-rail__label,
.pv-fc-rail__item:focus-visible .pv-fc-rail__label {
  max-width: 100px;
  padding-right: 6px;
  padding-left: 8px;
  opacity: 1;
  transform: translateX(0);
}

.pv-fc-rail__pop,
.pv-fc-stack__pop,
.pv-fc-fab__pop {
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  z-index: 3;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 500;
  color: #f8fafc;
  white-space: nowrap;
  pointer-events: none;
  background: rgba(30, 41, 59, 0.92);
  border-radius: 6px;
  opacity: 0;
  transform: translate(8px, -50%);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.pv-fc-rail__pop::after,
.pv-fc-stack__pop::after,
.pv-fc-fab__pop::after {
  position: absolute;
  top: 50%;
  right: -6px;
  width: 0;
  height: 0;
  margin-top: -6px;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 6px solid rgba(30, 41, 59, 0.92);
  content: '';
}

.pv-fc-rail__item:hover .pv-fc-rail__pop,
.pv-fc-rail__item:focus-visible .pv-fc-rail__pop,
.pv-fc-stack__item:hover .pv-fc-stack__pop,
.pv-fc-stack__item:focus-visible .pv-fc-stack__pop,
.pv-fc-fab__item:hover .pv-fc-fab__pop,
.pv-fc-fab__item:focus-visible .pv-fc-fab__pop {
  opacity: 1;
  transform: translate(0, -50%);
}

.pv-fc-rail__pop--qr,
.pv-fc-stack__pop--qr,
.pv-fc-fab__pop--qr {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  padding: 12px;
  white-space: normal;
  text-align: center;
}

.pv-fc-rail__pop--qr img,
.pv-fc-stack__pop--qr img,
.pv-fc-fab__pop--qr img {
  display: block;
  width: 120px;
  height: 120px;
  object-fit: contain;
  background: #fff;
  border-radius: 6px;
}

.pv-fc-rail__pop--qr em,
.pv-fc-stack__pop--qr em,
.pv-fc-fab__pop--qr em {
  font-style: normal;
  font-size: 12px;
  color: #cbd5e1;
}

/* ── 样式：底栏胶囊 (dock) ── */
.pv-float-contact--dock {
  right: 16px;
  left: auto;
  width: auto;
}

.pv-fc-dock__bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  max-width: min(92vw, 420px);
  padding: 8px 10px;
  background: rgba(15, 23, 42, 0.88);
  border-radius: 999px;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.28);
  backdrop-filter: blur(8px);
}

.pv-fc-dock__item {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 600;
  color: #f8fafc;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.08);
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s;
}

.pv-fc-dock__item:hover,
.pv-fc-dock__item:focus-visible {
  background: rgba(255, 255, 255, 0.16);
}

.pv-fc-dock__item--qq { background: rgba(3, 155, 229, 0.55); }
.pv-fc-dock__item--wechat { background: rgba(5, 150, 105, 0.55); }
.pv-fc-dock__item--vip { background: rgba(225, 29, 72, 0.55); }

.pv-fc-dock__icon {
  display: flex;
  line-height: 1;
}

.pv-fc-dock__text {
  max-width: 5em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 767.98px) {
  .pv-fc-dock__bar {
    max-width: calc(100vw - 24px);
  }

  .pv-fc-orb {
    width: 46px;
    height: 46px;
  }

  .pv-fc-card {
    width: min(92vw, 260px);
  }
}

/* ── 样式：堆叠卡片 (stack) ── */
.pv-float-contact--stack {
  right: 12px;
}

.pv-fc-stack__list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pv-fc-stack__item {
  position: relative;
  display: flex;
  gap: 8px;
  align-items: center;
  min-width: 148px;
  padding: 8px 12px;
  color: #fff;
  cursor: pointer;
  background: var(--pv-fc-color, #1e9fff);
  border: none;
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.14);
  text-decoration: none;
  transition: filter 0.2s, transform 0.2s;
}

.pv-fc-stack__item:hover,
.pv-fc-stack__item:focus-visible {
  filter: brightness(1.06);
  transform: translateX(-2px);
}

.pv-fc-stack__item--qq { background: #039be5; }
.pv-fc-stack__item--wechat { background: #059669; }
.pv-fc-stack__item--vip { background: #e11d48; }
.pv-fc-stack__item--phone { background: #4f46e5; }
.pv-fc-stack__item--email { background: #d97706; }

.pv-fc-stack__icon {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.pv-fc-stack__label {
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

/* ── 样式：悬浮球菜单 (fab) ── */
.pv-float-contact--fab {
  right: 16px;
  overflow: visible;
}

.pv-fc-fab__trigger {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  padding: 0;
  color: #fff;
  cursor: pointer;
  background: var(--pv-fc-color, #1e9fff);
  border: none;
  border-radius: 50%;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.22);
  transition: transform 0.2s, filter 0.2s;
}

.pv-fc-fab__trigger:hover,
.pv-fc-fab__trigger:focus-visible {
  filter: brightness(1.06);
  transform: scale(1.04);
}

.pv-float-contact--fab.is-open .pv-fc-fab__trigger {
  transform: rotate(45deg) scale(1.02);
}

.pv-fc-fab__trigger-icon {
  font-size: 22px;
  line-height: 1;
}

.pv-fc-fab__menu {
  position: absolute;
  right: 0;
  bottom: calc(100% + 10px);
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 160px;
  overflow: visible;
}

.pv-fc-fab__item {
  position: relative;
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 8px 12px;
  overflow: visible;
  color: #fff;
  cursor: pointer;
  background: rgba(15, 23, 42, 0.92);
  border: none;
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.2);
  text-decoration: none;
  transition: background 0.2s;
}

.pv-fc-fab__item:hover,
.pv-fc-fab__item:focus-visible {
  background: rgba(30, 41, 59, 0.96);
}

.pv-fc-fab__item--qq { background: rgba(3, 155, 229, 0.92); }
.pv-fc-fab__item--wechat { background: rgba(5, 150, 105, 0.92); }
.pv-fc-fab__item--vip { background: rgba(225, 29, 72, 0.92); }

.pv-fc-fab__icon {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
}

.pv-fc-fab__label {
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

/* ── 样式：竖签贴边 (edge) ── */
.pv-float-contact--edge {
  right: 0;
}

.pv-fc-edge__tabs {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.pv-fc-edge__tab {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  padding: 10px 6px;
  color: #fff;
  cursor: pointer;
  background: var(--pv-fc-color, #1e9fff);
  border: none;
  border-radius: 8px 0 0 8px;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.12);
  text-decoration: none;
  transition: filter 0.2s, padding 0.2s;
}

.pv-fc-edge__tab span {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  writing-mode: vertical-rl;
}

.pv-fc-edge__tab:hover,
.pv-fc-edge__tab:focus-visible {
  filter: brightness(1.08);
  padding-right: 10px;
}

.pv-fc-edge__tab--qq { background: #039be5; }
.pv-fc-edge__tab--wechat { background: #059669; }
.pv-fc-edge__tab--vip { background: #e11d48; }
.pv-fc-edge__tab--phone { background: #4f46e5; }
.pv-fc-edge__tab.is-disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

/* ── 样式：卡片浮层 (card) ── */
.pv-float-contact--card {
  right: 12px;
}

.pv-fc-card {
  width: 260px;
  overflow: hidden;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 36px rgba(15, 23, 42, 0.18);
}

.pv-fc-card__hd {
  padding: 10px 12px;
  color: #fff;
  background: var(--pv-fc-color, #1e9fff);
}

.pv-fc-card__hd strong {
  font-size: 14px;
  font-weight: 600;
}

.pv-fc-card__list {
  max-height: 320px;
  padding: 8px;
  overflow-y: auto;
}

.pv-fc-card__row {
  display: flex;
  gap: 8px;
  align-items: center;
  width: 100%;
  padding: 8px;
  margin-bottom: 6px;
  color: inherit;
  text-align: left;
  cursor: pointer;
  background: #f8fafc;
  border: none;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.2s;
}

.pv-fc-card__row:last-child {
  margin-bottom: 0;
}

.pv-fc-card__row:hover,
.pv-fc-card__row:focus-visible {
  background: #eef6ff;
}

.pv-fc-card__icon {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  color: var(--pv-fc-color, #1e9fff);
  background: #fff;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(30, 159, 255, 0.2);
}

.pv-fc-card__body {
  flex: 1;
  min-width: 0;
}

.pv-fc-card__body strong {
  display: block;
  font-size: 13px;
  color: #1e293b;
}

.pv-fc-card__body > span {
  display: block;
  font-size: 12px;
  color: #64748b;
  word-break: break-all;
}

.pv-fc-card__tip {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  color: #94a3b8;
}

.pv-fc-card__go {
  flex-shrink: 0;
  font-size: 11px;
  color: var(--pv-fc-color, #1e9fff);
}
