/* wb-pop 全站 hover 弹窗样式 —— 品牌色默认 #f7682e，可自行调整 */
.wb-pop {
  position: fixed;
  z-index: 99999;
  width: 320px;
  max-width: calc(100vw - 24px);
  padding: 16px;
  background: #fff;
  border: 1px solid rgba(247, 104, 46, 0.25);
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
  box-sizing: border-box;
}

.wb-pop-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* 指向按钮的小箭头（跟随实际定位，--arrow-side 由 JS 设置） */
.wb-pop::after {
  content: "";
  position: absolute;
  left: var(--arrow-x, 50%);
  width: 12px;
  height: 12px;
  background: inherit;
  border: inherit;
  border-top: none;
  border-left: none;
  transform: rotate(45deg);
}

.wb-pop[data-side="bottom"]::after {
  top: -7px;
  transform: rotate(45deg);
}

.wb-pop[data-side="top"]::after {
  bottom: -7px;
  transform: rotate(225deg);
}

.wb-pop img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  display: block;
}

.wb-pop-title {
  font-size: 18px;
  font-weight: 600;
  margin: 10px 0 4px;
  color: #222;
  line-height: 1.3;
}

.wb-pop-spec {
  font-size: 13px;
  color: #f7682e;
  line-height: 1.7;
}

.wb-pop-desc {
  font-size: 13px;
  color: #555;
  line-height: 1.6;
  margin-top: 6px;
}

.wb-pop-more {
  display: inline-block;
  margin-top: 10px;
  font-size: 13px;
  color: #fff;
  background: #f7682e;
  padding: 6px 14px;
  border-radius: 20px;
  text-decoration: none;
}

.wb-pop-more:hover {
  background: #d85a12;
  color: #fff;
}

/* v1.2.0：关闭按钮（右上角 X） */
.wb-pop-close {
  position: absolute;
  top: 8px;
  right: 10px;
  width: 26px;
  height: 26px;
  line-height: 1;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 18px;
  font-weight: 400;
  cursor: pointer;
  z-index: 20;
  transition: background 0.2s;
}

.wb-pop-close:hover {
  background: rgba(0, 0, 0, 0.7);
}

/* 仅当触发器带 data-pop-close="1"（JS 会加 .wb-pop-has-btn）时才显示 X */
.wb-pop-has-btn .wb-pop-close {
  display: block;
}

/* 显示关闭按钮时，给弹窗右上留出间距，避免遮挡标题 */
.wb-pop-has-btn .wb-pop-title {
  padding-right: 26px;
}

/* v1.2.0：sticky 弹窗（不自动关闭，必须手动 X）——加边框强调"需手动关闭" */
.wb-pop-sticky {
  border-color: rgba(247, 104, 46, 0.55);
}

/* 页面隐藏模板默认不显示（用户可能忘了加 inline style，这里兜底） */
.wb-pop-tpl {
  display: none !important;
}

/* 自动内联关键词触发器：虚线下划线提示可悬停 */
.wb-pop-auto {
  text-decoration: underline dotted;
  text-underline-offset: 3px;
  cursor: help;
  transition: background 0.15s ease;
}

.wb-pop-auto:hover {
  background: rgba(247, 104, 46, 0.12);
}