/* 手机版客服悬浮按钮 - 适配底部Tab栏 */

.customer-service-float {
  position: fixed;
  right: 12px;
  bottom: 70px;
  z-index: 9990;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cs-float-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #EF4444, #B91C1C);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  box-shadow: 0 3px 12px rgba(122, 46, 94, 0.35);
  transition: all 0.3s ease;
  position: relative;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

.cs-float-btn:active {
  transform: scale(0.95);
}

.cs-float-btn .tooltip {
  display: none;
}

/* 客服面板 - 手机版从底部弹出 */
.cs-panel {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: none;
  background: #fff;
  border-radius: 16px 16px 0 0;
  box-shadow: 0 -4px 24px rgba(0,0,0,0.15);
  padding: 20px 16px 30px;
  display: none;
  z-index: 9995;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.cs-panel.show {
  display: block;
  transform: translateY(0);
  animation: csSlideUp 0.3s ease;
}

@keyframes csSlideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.cs-panel h4 {
  font-size: 17px;
  font-weight: 700;
  color: #211C24;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  text-align: center;
  justify-content: center;
}

.cs-panel .cs-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #f3f4f6;
  border: none;
  cursor: pointer;
  font-size: 16px;
  color: #6b7280;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cs-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 12px;
  text-decoration: none !important;
  color: inherit !important;
  transition: background 0.2s;
  margin-bottom: 6px;
  background: #f9fafb;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.cs-item:active {
  background: #FEF2F2 !important;
  opacity: 1 !important;
  color: inherit !important;
}

.cs-item:link,
.cs-item:visited,
.cs-item:hover,
.cs-item:active {
  text-decoration: none !important;
  color: inherit !important;
  opacity: 1 !important;
}

.cs-item .cs-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.cs-item .cs-icon.wechat { background: #dcfce7; }
.cs-item .cs-icon.phone { background: #dbeafe; }

.cs-item .cs-info {
  flex: 1;
}

.cs-item .cs-label {
  font-size: 12px;
  color: #6b7280;
  margin-bottom: 3px;
}

.cs-item .cs-value {
  font-size: 15px;
  font-weight: 600;
  color: #211C24;
}

.cs-item .cs-action {
  font-size: 12px;
  color: #F87171;
  font-weight: 600;
  background: #FEF2F2;
  padding: 4px 10px;
  border-radius: 20px;
}

.cs-divider {
  height: 1px;
  background: #f3f4f6;
  margin: 12px 0;
}

.cs-tip {
  font-size: 11px;
  color: #9ca3af;
  text-align: center;
  margin-top: 10px;
}

/* 微信二维码 */
.cs-qr-box {
  margin-top: 12px;
  padding: 16px;
  background: #f9fafb;
  border-radius: 12px;
  text-align: center;
}
.cs-qr-box .cs-qr-img {
  width: 140px;
  height: 140px;
  border-radius: 10px;
  background: #fff;
  padding: 6px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}
.cs-qr-box .cs-qr-tip {
  font-size: 12px;
  color: #6b7280;
  margin-top: 10px;
}

/* 遮罩层 */
.cs-mask {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 9994;
  display: none;
}

.cs-mask.show {
  display: block;
}
