/* ===== 首页右侧浮动客服面板 ===== */
.svc-float {
  position: fixed;
  right: 20px;
  top: 120px;
  z-index: 100;
  display: flex;
  flex-direction: column;
  width: 64px;
  background: rgba(10, 21, 38, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px rgba(5, 11, 20, 0.25);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.svc-float-item {
  position: relative;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.svc-float-item:last-child { border-bottom: none; }

.svc-float-btn {
  width: 64px;
  padding: 10px 4px;
  background: transparent;
  border: none;
  color: var(--ink-200);
  font-family: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  transition: background .2s, color .2s;
}
.svc-float-btn svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
  flex-shrink: 0;
}
.svc-float-btn span {
  font-size: 11px;
  line-height: 1.2;
  letter-spacing: 0.02em;
}
.svc-float-btn:hover,
.svc-float-item.is-open .svc-float-btn {
  background: var(--primary);
  color: var(--white);
}

/* 回到顶部按钮：未滚动时弱化 */
.svc-float-btn.is-disabled {
  opacity: 0.45;
  pointer-events: none;
}

/* ===== 弹出信息卡 ===== */
.svc-float-pop {
  position: absolute;
  right: calc(100% + 10px);
  top: 0;
  width: 248px;
  display: none;
  background: var(--white);
  color: var(--ink-900);
  border: 1px solid #e6ebf2;
  box-shadow: 0 12px 40px rgba(5, 11, 20, 0.18);
  padding: 18px;
  text-align: left;
}
.svc-float-item.is-open .svc-float-pop { display: block; }

/* 右侧小箭头 */
.svc-float-pop::after {
  content: "";
  position: absolute;
  right: -7px;
  top: 22px;
  width: 12px;
  height: 12px;
  background: var(--white);
  border-top: 1px solid #e6ebf2;
  border-right: 1px solid #e6ebf2;
  transform: rotate(45deg);
}

.svc-float-pop .pop-title {
  display: block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--gold);
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eef1f6;
}
.svc-float-pop .pop-row { margin-bottom: 12px; }
.svc-float-pop .pop-row:last-child { margin-bottom: 0; }
.svc-float-pop .pop-label {
  font-size: 12px;
  color: var(--ink-400);
  margin-bottom: 4px;
}
.svc-float-pop .pop-value {
  display: block;
  font-family: "Noto Serif SC", Georgia, serif;
  font-size: 19px;
  font-weight: 700;
  color: var(--ink-900);
  line-height: 1.3;
}
.svc-float-pop a.pop-value:hover { color: var(--primary); }
.svc-float-pop .pop-note {
  font-size: 12px;
  color: var(--ink-400);
  line-height: 1.6;
  margin-top: 4px;
}

.svc-copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 8px;
  padding: 6px 12px;
  font-size: 12px;
  font-family: inherit;
  color: var(--primary);
  background: var(--white);
  border: 1px solid var(--primary);
  cursor: pointer;
  transition: all .2s;
}
.svc-copy-btn:hover { background: var(--primary); color: var(--white); }
.svc-copy-btn.is-copied {
  color: #fff;
  background: #2e8b57;
  border-color: #2e8b57;
}

.pop-action {
  display: block;
  text-align: center;
  padding: 10px;
  font-size: 13px;
  font-weight: 500;
  color: var(--white);
  background: var(--primary);
  margin-top: 10px;
}
.pop-action:hover { background: var(--brand-dark); }

/* ===== 移动端：右下角缩小 ===== */
@media (max-width: 640px) {
  .svc-float {
    right: 12px;
    top: auto;
    bottom: 12px;
    width: 54px;
  }
  .svc-float-btn { width: 54px; padding: 8px 2px; }
  .svc-float-btn svg { width: 19px; height: 19px; }
  .svc-float-btn span { font-size: 10px; }
  .svc-float-pop {
    width: 216px;
    right: calc(100% + 8px);
  }
}
