/* ════════════════════════════════════════════════════════════════
 *  灰尘红心  ·  dust-heart.css
 *  想调红心大小 / 颜色 / 提示语位置，改这里的数值就行。
 * ════════════════════════════════════════════════════════════════ */

/* ───────── 红心按钮 ───────── */
.dust-heart {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
  padding: 10px 4px;
  -webkit-tap-highlight-color: transparent;
}

.dust-heart svg {
  width: 30px;                 /* ← 红心大小 */
  height: 30px;
  transition: transform .22s cubic-bezier(.34, 1.56, .64, 1);
}

/* 未点亮：空心灰线 */
.dust-heart svg path {
  fill: none;
  stroke: #c9ccd1;             /* ← 未点亮时的线条颜色 */
  stroke-width: 1.8;
  transition: stroke .28s, fill .28s;
}
.dust-heart:hover svg path { stroke: #b0b4ba; }

/* 点亮：实心 */
.dust-heart.on svg path {
  fill: #e8637a;               /* ← 点亮后的颜色 */
  stroke: #e8637a;
}

.dust-heart:active svg { transform: scale(.82); }

.dust-heart.pop svg { animation: dustPop .42s cubic-bezier(.34, 1.56, .64, 1); }

@keyframes dustPop {
  0%   { transform: scale(1); }
  38%  { transform: scale(1.32); }
  100% { transform: scale(1); }
}

/* 红心旁边的文字 */
.dust-heart-label {
  font-size: 13px;
  color: #a8aeb6;
  transition: color .28s;
}
.dust-heart.on .dust-heart-label { color: #e8637a; }

/* 键盘聚焦时的轮廓（无障碍） */
.dust-heart:focus-visible {
  outline: 2px solid rgba(232, 99, 122, .5);
  outline-offset: 4px;
  border-radius: 6px;
}

/* ───────── 浮出的提示语 ───────── */
.dust-toast {
  position: fixed;
  left: 50%;
  bottom: 84px;                /* ← 距底部高度 */
  transform: translateX(-50%) translateY(14px);
  background: rgba(28, 28, 30, .94);
  color: #fff;
  padding: 11px 20px;
  border-radius: 22px;
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: .02em;
  max-width: 78vw;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  z-index: 9999;
  transition: opacity .34s ease, transform .34s cubic-bezier(.34, 1.4, .64, 1);
  box-shadow: 0 6px 24px rgba(0, 0, 0, .18);
}
.dust-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* 手机上提示语抬高一点，避免被底部工具栏挡 */
@media (max-width: 600px) {
  .dust-toast { bottom: 110px; font-size: 13.5px; padding: 10px 16px; }
  .dust-heart svg { width: 26px; height: 26px; }
}

/* 尊重系统的"减少动效"设置 */
@media (prefers-reduced-motion: reduce) {
  .dust-heart svg,
  .dust-heart.pop svg,
  .dust-toast { animation: none !important; transition: opacity .2s !important; }
}
