/* 收藏五角星 + 未登录弹窗 */
.qmt-fav-star {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  margin: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  line-height: 1;
  vertical-align: middle;
  transition: transform 0.15s ease, color 0.15s ease;
}
.qmt-fav-star:hover {
  transform: scale(1.08);
}
.qmt-fav-star--off {
  color: #64748b;
}
.qmt-fav-star--off:hover {
  color: #d4af37;
}
.qmt-fav-star--on {
  color: #d4af37;
}
.qmt-fav-star-svg {
  display: block;
  pointer-events: none;
}

.qmt-fav-guest-dialog {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(3, 6, 11, 0.82);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
}
.qmt-fav-guest-dialog[hidden] {
  display: none !important;
  pointer-events: none !important;
}
.qmt-fav-guest-dialog--show,
.qmt-fav-guest-dialog--hide {
  display: flex;
  pointer-events: auto;
}
.qmt-fav-guest-dialog--show {
  opacity: 1;
}
.qmt-fav-guest-dialog--hide {
  opacity: 0;
}
.qmt-fav-guest-dialog__card {
  position: relative;
  width: min(420px, 100%);
  padding: 24px 24px 20px;
  border-radius: 12px;
  border: 1px solid rgba(0, 212, 255, 0.28);
  background: #0f172a;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.65);
  transform: translateY(12px) scale(0.98);
  transition: transform 0.28s ease;
  color: #f1f5f9;
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
.qmt-fav-guest-dialog--show .qmt-fav-guest-dialog__card {
  transform: translateY(0) scale(1);
}
.qmt-fav-guest-dialog__close {
  position: absolute;
  top: 10px;
  right: 12px;
  border: 0;
  background: transparent;
  color: #94a3b8;
  font-size: 26px;
  font-weight: 400;
  line-height: 1;
  cursor: pointer;
}
.qmt-fav-guest-dialog__close:hover {
  color: #ffffff;
}
.qmt-fav-guest-dialog__head {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 20px;
  padding-right: 28px;
}
.qmt-fav-guest-dialog__icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  color: #f0d060;
  background: rgba(212, 175, 55, 0.18);
}
.qmt-fav-guest-dialog__title {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.35;
  color: #ffffff;
  letter-spacing: 0.02em;
}
.qmt-fav-guest-dialog__desc {
  margin: 0;
  font-size: 15px;
  line-height: 1.65;
  font-weight: 400;
  color: #e2e8f0;
  letter-spacing: 0.01em;
}
.qmt-fav-guest-dialog__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}
.qmt-fav-guest-dialog__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 18px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  letter-spacing: 0.02em;
  -webkit-text-fill-color: currentColor;
  background-clip: border-box;
}
.qmt-fav-guest-dialog__btn--text {
  border: 0;
  background: transparent;
  color: #cbd5e1;
}
.qmt-fav-guest-dialog__btn--text:hover {
  color: #ffffff;
}
.qmt-fav-guest-dialog__btn--ghost {
  color: #ffffff;
  border-color: rgba(0, 212, 255, 0.55);
  background: rgba(0, 212, 255, 0.15);
}
.qmt-fav-guest-dialog__btn--ghost:hover {
  color: #ffffff;
  background: rgba(0, 212, 255, 0.28);
  text-decoration: none;
}
.qmt-fav-guest-dialog__btn--primary {
  color: #041018;
  background: #00d4ff;
  font-weight: 700;
}
.qmt-fav-guest-dialog__btn--primary:hover {
  color: #041018;
  background: #66e5ff;
  text-decoration: none;
}

/* 覆盖全站 a { color: accent }，避免「去登录」字色与按钮背景同为青色 */
body.qmt-theme-openclaw .qmt-fav-guest-dialog .qmt-fav-guest-dialog__btn--text {
  color: #cbd5e1;
}
body.qmt-theme-openclaw .qmt-fav-guest-dialog .qmt-fav-guest-dialog__btn--text:hover {
  color: #ffffff;
}
body.qmt-theme-openclaw .qmt-fav-guest-dialog a.qmt-fav-guest-dialog__btn--ghost,
body.qmt-theme-openclaw .qmt-fav-guest-dialog a.qmt-fav-guest-dialog__btn--ghost:hover {
  color: #ffffff;
  -webkit-text-fill-color: #ffffff;
}
body.qmt-theme-openclaw .qmt-fav-guest-dialog a.qmt-fav-guest-dialog__btn--primary,
body.qmt-theme-openclaw .qmt-fav-guest-dialog a.qmt-fav-guest-dialog__btn--primary:hover {
  color: #041018;
  -webkit-text-fill-color: #041018;
}
