/* 文章右上角：生成分享图 */
.joe_detail__category .joe_share_poster_btn {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid var(--theme, #409eff);
  background: rgba(64, 158, 255, 0.08);
  color: var(--theme, #409eff);
  font-size: 12px;
  line-height: 1;
  padding: 5px 10px;
  border-radius: 4px;
  cursor: pointer;
  transition: opacity 0.25s, transform 0.25s, background 0.25s;
  white-space: nowrap;
}

.joe_detail__category .joe_share_poster_btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  background: rgba(64, 158, 255, 0.16);
}

.joe_detail__category .joe_share_poster_btn.is-loading {
  opacity: 0.65;
  pointer-events: none;
}

.joe_detail__category .joe_share_poster_btn + .edit {
  margin-left: 10px;
}

.joe_share_poster_mask {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}

.joe_share_poster_dialog {
  background: #fff;
  border-radius: 10px;
  max-width: 420px;
  width: 100%;
  max-height: 90vh;
  overflow: auto;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
  padding: 16px;
}

.joe_share_poster_dialog h3 {
  margin: 0 0 12px;
  font-size: 16px;
  color: #222;
}

.joe_share_poster_dialog .preview {
  width: 100%;
  border-radius: 6px;
  display: block;
  background: #f5f5f5;
}

.joe_share_poster_dialog .actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

.joe_share_poster_dialog .actions button,
.joe_share_poster_dialog .actions a {
  flex: 1;
  text-align: center;
  border: none;
  border-radius: 6px;
  padding: 10px 12px;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
  box-sizing: border-box;
}

.joe_share_poster_dialog .actions .download {
  background: var(--theme, #409eff);
  color: #fff;
}

.joe_share_poster_dialog .actions .close {
  background: #f0f2f5;
  color: #333;
}

.joe_share_poster_dialog .status {
  color: #888;
  font-size: 13px;
  margin: 8px 0 0;
}
