/* ===== 浮动客服面板 ===== */
.tp-float-cs {
  position: fixed;
  right: 20px;
  bottom: 80px;
  z-index: 99999;
  font-family: "Noto Sans SC", -apple-system, BlinkMacSystemFont, sans-serif;
}
.tp-cs-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1a3a5c 0%, #2d5a87 100%);
  color: #d4af37;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(26,58,92,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  transition: all 0.3s ease;
  position: relative;
}
.tp-cs-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(26,58,92,0.55);
}
.tp-cs-btn .tp-cs-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 18px;
  height: 18px;
  background: #e74c3c;
  color: #fff;
  border-radius: 50%;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}
.tp-cs-panel {
  position: absolute;
  right: 0;
  bottom: 68px;
  width: 300px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.18);
  overflow: hidden;
  display: none;
  animation: tpCsSlideUp 0.3s ease;
}
.tp-cs-panel.active { display: block; }
@keyframes tpCsSlideUp {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}
.tp-cs-header {
  background: linear-gradient(135deg, #1a3a5c 0%, #2d5a87 100%);
  color: #fff;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.tp-cs-header h4 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: #d4af37;
}
.tp-cs-header span {
  font-size: 12px;
  color: rgba(255,255,255,0.7);
}
.tp-cs-body { padding: 12px 16px; }
.tp-cs-item {
  display: flex;
  align-items: center;
  padding: 10px 8px;
  border-radius: 10px;
  text-decoration: none;
  color: #333;
  transition: background 0.2s;
  margin-bottom: 4px;
}
.tp-cs-item:hover { background: #f5f7fa; }
.tp-cs-item .tp-cs-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #f0f4f8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  margin-right: 12px;
  flex-shrink: 0;
}
.tp-cs-item .tp-cs-text { flex: 1; }
.tp-cs-item .tp-cs-label {
  font-size: 11px;
  color: #999;
  margin-bottom: 2px;
}
.tp-cs-item .tp-cs-value {
  font-size: 14px;
  font-weight: 600;
  color: #1a3a5c;
}
.tp-cs-qrcode {
  text-align: center;
  padding: 12px;
  background: #fafbfc;
  border-radius: 10px;
  margin: 8px 0;
}
.tp-cs-qrcode img {
  width: 120px;
  height: 120px;
  border-radius: 8px;
  border: 3px solid #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.tp-cs-qrcode p {
  margin: 8px 0 0;
  font-size: 12px;
  color: #666;
}
.tp-cs-hours {
  text-align: center;
  padding: 8px;
  font-size: 12px;
  color: #888;
  border-top: 1px solid #f0f0f0;
  margin-top: 8px;
}
.tp-cs-online-btn {
  display: block;
  width: 100%;
  padding: 12px;
  background: linear-gradient(135deg, #d4af37 0%, #c4a030 100%);
  color: #1a3a5c;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 8px;
  transition: all 0.2s;
}
.tp-cs-online-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(212,175,55,0.4);
}
@media (max-width: 768px) {
  .tp-float-cs { right: 12px; bottom: 70px; }
  .tp-cs-btn { width: 48px; height: 48px; font-size: 20px; }
  .tp-cs-panel { width: 260px; bottom: 58px; }
}

/* 微信客服按钮 */
.tp-cs-wechat-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 12px;
  background: linear-gradient(135deg, #07c160 0%, #06ad56 100%);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  margin-bottom: 8px;
  text-decoration: none;
  transition: all 0.2s;
  gap: 6px;
}
.tp-cs-wechat-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(7,193,96,0.4);
  color: #fff;
}
.tp-cs-kf-qrcode {
  text-align: center;
  padding: 10px;
  background: #f0faf4;
  border-radius: 10px;
  margin: 6px 0;
  display: none;
}
.tp-cs-kf-qrcode img {
  width: 130px;
  height: 156px;
  border-radius: 6px;
}
.tp-cs-kf-qrcode p {
  margin: 6px 0 0;
  font-size: 11px;
  color: #07c160;
  font-weight: 600;
}
@media (min-width: 769px) {
  .tp-cs-kf-qrcode { display: block; }
  .tp-cs-wechat-btn-mobile-only { display: none; }
}
.tp-cs-divider {
  text-align: center;
  font-size: 11px;
  color: #ccc;
  margin: 8px 0;
  position: relative;
}
.tp-cs-divider::before, .tp-cs-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 35%;
  height: 1px;
  background: #eee;
}
.tp-cs-divider::before { left: 0; }
.tp-cs-divider::after { right: 0; }
