/* Bright floating WeCom consultation widget (CSP style-src 'self' compliant) */
#ysx-float-consult {
  position: fixed !important;
  right: 20px !important;
  bottom: 22px !important;
  z-index: 2147483000 !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.45;
  color: #0f172a;
  box-sizing: border-box;
  display: block !important;
  color-scheme: light;
}
#ysx-float-consult *,
#ysx-float-consult *:before,
#ysx-float-consult *:after {
  box-sizing: border-box;
}
#ysx-float-consult .ysx-fc-btn {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid #bfdbfe;
  background: #ffffff;
  color: #1e40af;
  font-size: 14px;
  font-weight: 650;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.16);
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}
#ysx-float-consult .ysx-fc-btn:hover {
  background: #eff6ff;
  box-shadow: 0 10px 28px rgba(37, 99, 235, 0.24);
  transform: translateY(-1px);
}
#ysx-float-consult .ysx-fc-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
  flex-shrink: 0;
}
#ysx-float-consult .ysx-fc-icon {
  width: 17px;
  height: 17px;
  stroke: #2563eb;
  fill: none;
  stroke-width: 2;
  flex-shrink: 0;
}
#ysx-float-consult .ysx-fc-card {
  display: none !important;
  position: absolute;
  right: 0;
  bottom: calc(100% + 12px);
  width: 264px;
  padding: 16px;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid #dbeafe;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.14);
}
#ysx-float-consult.is-open .ysx-fc-card {
  display: block !important;
}
#ysx-float-consult .ysx-fc-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}
#ysx-float-consult .ysx-fc-title {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
}
#ysx-float-consult .ysx-fc-close {
  border: 0;
  background: #f1f5f9;
  color: #475569;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  flex-shrink: 0;
}
#ysx-float-consult .ysx-fc-close:hover {
  background: #e2e8f0;
  color: #0f172a;
}
#ysx-float-consult .ysx-fc-desc {
  margin: 0 0 10px;
  font-size: 12px;
  color: #475569;
  line-height: 1.55;
}
#ysx-float-consult .ysx-fc-qrwrap {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 10px;
  text-align: center;
}
#ysx-float-consult .ysx-fc-qrwrap img {
  display: block;
  width: 168px;
  height: 168px;
  object-fit: contain;
  margin: 0 auto;
  border-radius: 6px;
  background: #ffffff;
}
#ysx-float-consult .ysx-fc-qrhint {
  display: block;
  margin-top: 6px;
  font-size: 11px;
  font-weight: 600;
  color: #2563eb;
}
#ysx-float-consult .ysx-fc-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  margin-top: 10px;
  padding: 9px 12px;
  border-radius: 9px;
  background: #2563eb;
  color: #ffffff !important;
  text-decoration: none !important;
  font-size: 13px;
  font-weight: 600;
  transition: background 0.15s;
}
#ysx-float-consult .ysx-fc-link:hover {
  background: #1d4ed8;
}
@media (max-width: 768px) {
  #ysx-float-consult {
    right: 14px !important;
    bottom: 16px !important;
  }
  #ysx-float-consult .ysx-fc-btn {
    padding: 9px 13px;
    font-size: 13px;
  }
  #ysx-float-consult .ysx-fc-card {
    width: 248px;
    padding: 14px;
  }
  #ysx-float-consult .ysx-fc-qrwrap img {
    width: 146px;
    height: 146px;
  }
}
