/* ==========================================================================
   拍呗富媒体分享卡片预览面板（公众号文章级带缩略图链接卡片 + 微信右上角引导蒙层）
   ========================================================================== */

.pb-share-sheet {
  border: 0;
  border-radius: 24px;
  padding: 22px 20px 20px;
  width: min(92vw, 400px);
  max-width: 400px;
  margin: auto;
  background: #f7f9f8;
  color: #1b2f29;
  box-shadow: 0 24px 64px rgba(12, 28, 23, 0.26);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  box-sizing: border-box;
}
.pb-share-sheet::backdrop {
  background: rgba(14, 28, 24, 0.46);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.pb-share-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.pb-share-head h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: #162a24;
}
.pb-share-head p {
  margin: 4px 0 0;
  font-size: 12.5px;
  line-height: 1.45;
  color: #62756e;
}
.pb-share-close-x {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 0;
  background: rgba(30, 77, 66, 0.08);
  color: #355047;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
}

/* 仿真微信聊天公众号文章转发卡片预览 */
.pb-wechat-card-stage {
  padding: 14px;
  border-radius: 16px;
  background: #e9eeec;
  margin-bottom: 14px;
}
.pb-wechat-card-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: #647770;
  margin-bottom: 8px;
}
.pb-wechat-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 12px 13px 10px;
  box-shadow: 0 2px 10px rgba(18, 36, 30, 0.06);
  border: 1px solid rgba(25, 52, 44, 0.06);
}
.pb-wechat-card-title {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.38;
  color: #141917;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.pb-wechat-card-body {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.pb-wechat-card-desc {
  margin: 0;
  flex: 1;
  min-width: 0;
  font-size: 12.5px;
  line-height: 1.48;
  color: #7c8581;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.pb-wechat-card-thumb {
  width: 58px;
  height: 58px;
  border-radius: 6px;
  object-fit: cover;
  background: #dce5e1;
  flex-shrink: 0;
  border: 1px solid rgba(0, 0, 0, 0.04);
}
.pb-wechat-card-foot {
  margin-top: 9px;
  padding-top: 7px;
  border-top: 1px solid #f1f3f2;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: #8b9692;
}
.pb-wechat-card-dot {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  background: #1e4d42;
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  display: inline-grid;
  place-items: center;
}

.pb-share-url-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border: 1px solid #d8e2dd;
  border-radius: 11px;
  padding: 8px 10px;
  margin-bottom: 12px;
}
.pb-share-url-box input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  color: #2c5449;
  font: 12px/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.pb-share-actions {
  display: grid;
  gap: 9px;
}
.pb-share-btn-primary,
.pb-share-btn-secondary,
.pb-share-btn-ghost {
  width: 100%;
  min-height: 45px;
  border-radius: 13px;
  font: 600 14.5px/1.2 -apple-system, BlinkMacSystemFont, "PingFang SC", sans-serif;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  transition: transform 0.14s ease, opacity 0.14s ease, background-color 0.14s ease;
}
.pb-share-btn-primary {
  border: 0;
  background: #185447;
  color: #ffffff;
  box-shadow: 0 6px 16px rgba(24, 84, 71, 0.22);
}
.pb-share-btn-primary:hover {
  background: #134439;
}
.pb-share-btn-secondary {
  border: 1px solid #cfe0d9;
  background: #ffffff;
  color: #1d3f36;
}
.pb-share-btn-ghost {
  min-height: 38px;
  border: 0;
  background: transparent;
  color: #5c7069;
  font-size: 13px;
  font-weight: 500;
}

.pb-share-qr-box {
  margin-top: 10px;
  padding: 12px;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid #dde6e2;
  text-align: center;
}
.pb-share-qr-box canvas,
.pb-share-qr-box img {
  display: block;
  margin: 0 auto 6px;
  width: 136px;
  height: 136px;
  border-radius: 8px;
}
.pb-share-qr-box small {
  display: block;
  font-size: 11.5px;
  color: #647770;
}

/* 微信内置浏览器右上角 ··· 引导蒙层 */
.pb-wechat-guide-mask {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(10, 22, 18, 0.78);
  backdrop-filter: blur(3px);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  padding: 18px 22px;
  color: #ffffff;
  cursor: pointer;
}
.pb-wechat-guide-card {
  max-width: 280px;
  padding: 16px 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.24);
  text-align: left;
  margin-top: 8px;
}
.pb-wechat-guide-arrow {
  font-size: 28px;
  line-height: 1;
  margin-right: 8px;
  animation: pbBounceUpRight 1.1s infinite alternate ease-in-out;
}
.pb-wechat-guide-card h3 {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 700;
}
.pb-wechat-guide-card p {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.88);
}
@keyframes pbBounceUpRight {
  from { transform: translate(0, 4px); }
  to { transform: translate(4px, -4px); }
}
