/* ===== cebian.css - PC右侧浮动侧边栏 ===== */

.cebian-float {
  position: fixed;
  right: 16px;
  bottom: 120px;
  z-index: 999;
}

/* ---------- 展开态：卡片 ---------- */
.cebian-inner {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.12);
  padding: 16px 14px 14px;
  text-align: center;
  width: 130px;
  position: relative;

  /* 动画：透明度 + 缩放 */
  opacity: 1;
  transform: scale(1);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

/* 关闭按钮 */
.cebian-close {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255,255,255,0.9);
  border: 1px solid #e0d5c8;
  color: #999;
  font-size: 13px;
  line-height: 24px;
  text-align: center;
  cursor: pointer;
  padding: 0;
  transition: color 0.2s, border-color 0.2s;
}
.cebian-close:hover {
  color: #b8363a;
  border-color: #b8363a;
}

/* 二维码 */
.cebian-qrcode-item {
  margin-bottom: 12px;
}
.cebian-qr-img {
  display: block;
  width: 100px;
  height: 100px;
  border-radius: 4px;
  border: 1px solid #e8e0d5;
  margin: 0 auto 4px;
}
.cebian-qrcode-item p {
  font-size: 11px;
  color: #888;
  margin: 0;
}

/* 分隔线 */
.cebian-phone {
  border-top: 1px dashed #e0d5c8;
  padding-top: 10px;
  margin-top: 2px;
}

.cebian-phone-icon {
  font-size: 20px;
  color: #b8363a;
  margin-bottom: 0px;
}

.cebian-phone-num {
    width: 100%;
  font-size: 14px;
  color: #b8363a;
  font-weight: bold;
  margin: 0 ;
  letter-spacing: 0.5px;
}

.cebian-phone-label {
  font-size: 11px;
  color: #999;
  margin: 0;
}

/* ---------- 收起态：小按钮 ---------- */
.cebian-mini {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(184,54,58,0.85);
  border: none;
  color: #fff;
  font-size: 22px;
  line-height: 44px;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 2px 12px rgba(184,54,58,0.3);
  padding: 0;

  /* 动画：从缩小淡出到正常 */
  opacity: 0;
  transform: scale(0.4);
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s ease, background 0.2s;
}
.cebian-mini:hover {
  background: #b8363a;
  transform: scale(1.15);
}

/* ---------- 收起状态 ---------- */
.cebian-float.is-collapsed .cebian-inner {
  opacity: 0;
  transform: scale(0.8);
  pointer-events: none;
}

.cebian-float.is-collapsed .cebian-mini {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

/* ===== 手机端隐藏 ===== */
@media (max-width: 768px) {
  .cebian-float {
    display: none;
  }
}
