/* 客服浮窗样式 —— 粉紫玫瑰色系（与主图一致） */
#ysKefuMask {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(40, 10, 28, 0.55);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .22s ease, visibility .22s ease;
  padding: 20px;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}
#ysKefuMask.show {
  opacity: 1;
  visibility: visible;
}

.ys-kefu-panel {
  width: 100%;
  max-width: 340px;
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 18px 48px rgba(83, 21, 51, 0.28);
  transform: translateY(14px) scale(.97);
  transition: transform .24s cubic-bezier(.22, .9, .3, 1);
}
#ysKefuMask.show .ys-kefu-panel {
  transform: translateY(0) scale(1);
}

.ys-kefu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  background: linear-gradient(135deg, #f472b6 0%, #db2777 100%);
  color: #fff;
}
.ys-kefu-title {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: .5px;
}
.ys-kefu-close {
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  opacity: .85;
  transition: opacity .15s;
  user-select: none;
}
.ys-kefu-close:hover { opacity: 1; }

.ys-kefu-body {
  padding: 20px 18px 22px;
  max-height: 70vh;
  overflow-y: auto;
  text-align: center;
}

.ys-kefu-loading {
  padding: 26px 0;
  color: #b78aa0;
  font-size: 14px;
}

.ys-kefu-qr-wrap {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-bottom: 10px;
}
.ys-kefu-qr {
  width: 180px;
  height: 180px;
  object-fit: contain;
  border-radius: 12px;
  border: 1px solid #f9d3e4;
  background: #fff;
  padding: 6px;
}
.ys-kefu-qr-tip {
  margin: 0 0 16px;
  font-size: 12px;
  color: #a97b90;
  line-height: 1.6;
}

.ys-kefu-field {
  background: #fdf2f8;
  border: 1px solid #f9d3e4;
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 14px;
  text-align: left;
}
.ys-kefu-label {
  font-size: 12px;
  color: #a97b90;
  margin-bottom: 6px;
}
.ys-kefu-value-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.ys-kefu-value {
  font-size: 17px;
  font-weight: 700;
  color: #831843;
  letter-spacing: .5px;
  word-break: break-all;
  -webkit-user-select: all;
  user-select: all;
}
.ys-kefu-copy {
  flex-shrink: 0;
  border: none;
  background: linear-gradient(135deg, #f472b6 0%, #db2777 100%);
  color: #fff;
  font-size: 13px;
  padding: 7px 16px;
  border-radius: 999px;
  cursor: pointer;
  transition: transform .12s, opacity .15s;
}
.ys-kefu-copy:active { transform: scale(.95); }
.ys-kefu-copy.done {
  background: #146b3c;
}

.ys-kefu-note {
  margin: 0 0 14px;
  font-size: 13px;
  color: #8a6274;
  line-height: 1.7;
  text-align: left;
  background: #fdf7fa;
  border-left: 3px solid #f472b6;
  border-radius: 6px;
  padding: 10px 12px;
}

.ys-kefu-tip {
  margin: 0 0 6px;
  font-size: 12px;
  color: #a97b90;
  line-height: 1.6;
}

.ys-kefu-empty {
  margin: 20px 0;
  font-size: 14px;
  color: #a97b90;
  line-height: 1.7;
}

.ys-kefu-link {
  display: block;
  margin-top: 12px;
  font-size: 13px;
  color: #db2777;
  text-decoration: none;
  font-weight: 500;
}
.ys-kefu-link:hover { text-decoration: underline; }

.ys-kefu-toast {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 100000;
  background: rgba(51, 12, 35, .92);
  color: #fff;
  font-size: 14px;
  padding: 12px 20px;
  border-radius: 10px;
  max-width: 78vw;
  text-align: center;
  line-height: 1.5;
  transition: opacity .3s;
  pointer-events: none;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
}
