@charset "utf-8";
/* 羊皮卷品牌 - 右侧悬浮沟通工具条（仅在线沟通） */
#ypj-floatbar {
  position: fixed;
  right: 0;
  top: 33vh;                  /* 工具条置于右侧约1/3处（偏下） */
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-family: "Microsoft YaHei", "微软雅黑", Arial, sans-serif;
}

.ypj-fab {
  position: relative;
  width: 56px;
  height: 72px;
  border: none;
  border-radius: 14px 0 0 14px;
  background: linear-gradient(135deg, #cda85a 0%, #a9822f 100%);
  color: #fff;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  box-shadow: 0 6px 18px rgba(120, 90, 20, .28);
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}
.ypj-fab:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 26px rgba(120, 90, 20, .38);
  filter: brightness(1.04);
}
.ypj-fab svg { width: 22px; height: 22px; }
.ypj-fab-text {
  font-size: 10px;
  line-height: 1.15;
  letter-spacing: 1px;
  text-align: center;
}

/* 图标文字（在线/咨询）由 .ypj-fab-text 常显，hover 提示已移除 */

/* ===== 右侧面板（在线沟通） ===== */
.ypj-panel {
  position: absolute;
  right: 66px;
  top: 0;
  width: 270px;
  max-width: calc(100vw - 80px);
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 14px 44px rgba(0, 0, 0, .22);
  padding: 18px 18px 20px;
  color: #222;
  display: none;
  box-sizing: border-box;
}
.ypj-panel.open { display: block; animation: ypjPop .18s ease; }
@keyframes ypjPop {
  from { opacity: 0; transform: translateX(12px); }
  to   { opacity: 1; transform: none; }
}

/* ===== 面板内部样式 ===== */
.ypj-panel h3 {
  margin: 0 0 16px;
  font-size: 17px;
  color: #a9822f;
  border-left: 4px solid #cda85a;
  padding-left: 9px;
}
.ypj-close {
  position: absolute;
  top: 10px;
  right: 14px;
  border: none;
  background: none;
  font-size: 22px;
  line-height: 1;
  color: #bbb;
  cursor: pointer;
}
.ypj-close:hover { color: #888; }

.ypj-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 11px 0;
  border-bottom: 1px dashed #eee;
}
.ypj-row:last-child { border-bottom: none; }
.ypj-row-left { display: flex; align-items: center; gap: 10px; min-width: 0; }
.ypj-row .label { font-size: 12px; color: #999; margin-bottom: 3px; }
.ypj-row .val { font-size: 14px; font-weight: 600; color: #222; word-break: break-all; }

/* 行内符号徽标（微信=浅绿底，电话=品牌金底） */
.ypj-chip {
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}
.ypj-chip svg { width: 18px; height: 18px; display: block; }
.ypj-chip-wx  { background: #07C160; } /* 微信符号 - 浅绿底 */
.ypj-chip-tel { background: #cda85a; } /* 电话符号 - 品牌金 */

.ypj-btn {
  flex: none;
  background: #cda85a;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 7px 14px;
  font-size: 13px;
  cursor: pointer;
  text-decoration: none;
  transition: background .15s ease;
}
.ypj-btn:hover { background: #a9822f; }

/* 微信客服区块 */
.ypj-kf {
  margin-top: 4px;
  padding-top: 12px;
  border-top: 1px dashed #eee;
  text-align: center;
}
.ypj-kf .label { font-size: 12px; color: #999; margin-bottom: 8px; }
.ypj-kf-qr {
  width: 120px;
  height: 120px;
  margin: 0 auto 10px;
  border: 1px solid #eee;
  border-radius: 10px;
  background: #fafafa;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.ypj-kf-qr img { width: 100%; height: 100%; object-fit: contain; display: block; }
.ypj-kf-tip { display: none; font-size: 12px; color: #bbb; line-height: 1.6; padding: 0 8px; }
.ypj-kf-qr.ypj-kf-empty .ypj-kf-tip { display: block; }
.ypj-kf-actions { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }

/* ===== 响应式 ===== */
@media (max-width: 560px) {
  #ypj-floatbar { top: 12px; }
  .ypj-panel { right: 60px; width: calc(100vw - 86px); }
  .ypj-fab { width: 48px; height: 60px; border-radius: 12px 0 0 12px; }
  .ypj-fab svg { width: 20px; height: 20px; }
  .ypj-fab-text { font-size: 9px; }
}

/* 桌面端不显示"拨打"按钮（tel: 在电脑上无法拨号）；仅手机版显示 */
@media (min-width: 561px) {
  .ypj-call { display: none; }
}
