/* ══════════════════════════════════════════════════════════════
   waerfa floating sidebar  —  wfs-*
   位置：右侧 sidebar，"下一篇"卡片下方，sticky 固定
   ══════════════════════════════════════════════════════════════ */

/* ── 卡片容器 ─────────────────────────────────────────────── */
.wfs-bar {
  position: sticky;
  top: 20px;
  background: #fff;
  border: 1px solid var(--color-border, #e8edf3);
  border-radius: 12px;
  padding: 14px 14px 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,.05);
}

/* ── 顶部：喜欢 + 评价（两列） ───────────────────────────── */
.wfs-top-row {
  display: flex;
  gap: 8px;
}

/* ── 通用按钮 ─────────────────────────────────────────────── */
.wfs-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  padding: 10px 12px;
  border: 1px solid var(--color-border, #e8edf3);
  border-radius: 10px;
  background: #f8fafc;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
  color: var(--color-text, #374151);
  transition: background .15s, border-color .15s, transform .1s;
  -webkit-tap-highlight-color: transparent;
  white-space: nowrap;
}
.wfs-btn:hover {
  background: #f1f5f9;
  border-color: #d1d9e0;
  color: var(--color-text, #374151);
  transform: translateY(-1px);
}
.wfs-btn:active { transform: scale(.97); }

/* ── 图标 ─────────────────────────────────────────────────── */
.wfs-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  color: #94a3b8;
  transition: color .15s;
}

/* ── 数字 + 标签（竖排在图标右侧） ──────────────────────── */
.wfs-btn-label {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}
.wfs-num {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1;
  color: var(--color-text, #1a202c);
}
.wfs-lbl {
  font-size: 0.7rem;
  color: var(--color-text-muted, #94a3b8);
  line-height: 1;
}
.wfs-lbl-star {
  color: #f59e0b;
  font-size: 0.7rem;
}

/* ── 喜欢按钮 ─────────────────────────────────────────────── */
.wfs-like .wfs-icon { color: #cbd5e1; }
.wfs-like:hover .wfs-icon { color: #f87171; }
.wfs-like.active {
  background: #fff5f5;
  border-color: #fecaca;
}
.wfs-like.active .wfs-icon { color: #ef4444; fill: #ef4444; stroke: #ef4444; }
.wfs-like.active .wfs-num  { color: #ef4444; }

@keyframes wfs-pop {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.3); }
  70%  { transform: scale(.92); }
  100% { transform: scale(1); }
}
.wfs-like.pop .wfs-icon { animation: wfs-pop .3s ease; }

/* ── 评价按钮 ─────────────────────────────────────────────── */
.wfs-review:hover .wfs-icon { color: #3b82f6; }

/* ── 水平分隔线 ───────────────────────────────────────────── */
.wfs-sep-h {
  height: 1px;
  background: var(--color-border, #e8edf3);
  margin: 12px 0;
}

/* ── 分享区域 ─────────────────────────────────────────────── */
.wfs-share-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.wfs-share-label {
  font-size: 0.72rem;
  color: var(--color-text-muted, #94a3b8);
  font-weight: 500;
}

/* ── 三个分享按钮横排 ─────────────────────────────────────── */
.wfs-share-btns {
  display: flex;
  gap: 8px;
}
.wfs-share-btns .wfs-btn {
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 9px 0;
  flex: 1;
}
.wfs-share-btns .wfs-lbl {
  font-size: 0.68rem;
}

/* ── 分享平台配色 ─────────────────────────────────────────── */
.wfs-wechat:hover { background: #f0fdf4; border-color: #bbf7d0; }
.wfs-wechat:hover .wfs-icon { color: #16a34a; }

.wfs-weibo:hover { background: #fff5f5; border-color: #fecaca; }
.wfs-weibo:hover .wfs-icon { color: #ef4444; }

.wfs-copy:hover { background: #f5f3ff; border-color: #ddd6fe; }
.wfs-copy:hover .wfs-icon { color: #6366f1; }
.wfs-copy.done { background: #f0fdf4; border-color: #bbf7d0; }
.wfs-copy.done .wfs-icon { color: #16a34a; }
.wfs-copy.done .wfs-lbl  { color: #16a34a; }

/* ── 分享次数 ─────────────────────────────────────────────── */
.wfs-share-count {
  font-size: 0.72rem;
  color: var(--color-text-muted, #94a3b8);
  text-align: center;
}
.wfs-share-count span { font-weight: 600; color: #64748b; }

/* ── 微信二维码浮层 ───────────────────────────────────────── */
.wfs-qr-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}
.wfs-qr-overlay.open { display: flex; }

.wfs-qr-card {
  position: relative;
  background: #fff;
  border-radius: 18px;
  padding: 28px 32px 24px;
  box-shadow: 0 20px 60px rgba(0,0,0,.18);
  text-align: center;
  max-width: 280px;
  width: 90vw;
  animation: wfs-qr-in .2s ease;
}
@keyframes wfs-qr-in {
  from { opacity: 0; transform: scale(.88); }
  to   { opacity: 1; transform: scale(1); }
}
.wfs-qr-close {
  position: absolute;
  top: 12px; right: 14px;
  border: none;
  background: #f1f5f9;
  border-radius: 50%;
  width: 28px; height: 28px;
  font-size: 0.8rem;
  cursor: pointer;
  color: #64748b;
  line-height: 28px;
  padding: 0;
  transition: background .15s;
}
.wfs-qr-close:hover { background: #e2e8f0; color: #1a202c; }

.wfs-qr-canvas {
  display: inline-block;
  padding: 8px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  margin-bottom: 12px;
}
.wfs-qr-canvas canvas { display: block; border-radius: 4px; }

.wfs-qr-title {
  margin: 0 0 4px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #1a202c;
}
.wfs-qr-hint {
  margin: 0;
  font-size: 0.78rem;
  color: #64748b;
}

/* ── Toast 提示 ───────────────────────────────────────────── */
.wfs-toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(12px);
  background: rgba(30,30,30,.88);
  color: #fff;
  padding: 9px 20px;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
  z-index: 99999;
  backdrop-filter: blur(6px);
}
.wfs-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
