/* ============================================
   Share & Fav Bar - 收藏分享按钮组件
   ============================================ */

.share-fav-bar {
  display: flex;
  gap: 8px;
  margin: 12px 0;
  position: relative;
  justify-content: flex-start;
}

.share-fav-btn {
  flex: 0 1 auto;
  padding: 7px 18px;
  background: var(--white);
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  font-size: 13px;
  color: var(--text-muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  white-space: nowrap;
  line-height: 1;
}

.share-fav-btn svg,
.share-fav-icon {
  vertical-align: middle;
  flex-shrink: 0;
}

/* ============================================
   Share Popup - 分享浮层（JS 只负责定位，样式全在这里）
   ============================================ */

.share-popup {
  position: fixed;
  z-index: 10000;
  background: var(--white);
  border: 1px solid #eee;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  padding: 16px 14px;
  width: 220px;
  box-sizing: border-box;
}

.share-popup-title {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text-dark);
}

.share-popup-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 12px;
}

.share-popup-item {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.share-popup-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin: 0 auto 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.share-popup-icon.is-wechat { background: #07C160; }
.share-popup-icon.is-qq     { background: #56B6E7; }
.share-popup-icon.is-weibo  { background: #E6162D; }

.share-popup-label {
  font-size: 11px;
  color: var(--text-muted);
  display: block;
  line-height: 1.2;
}

/* ---------- 微信二维码弹窗 ---------- */

.wechat-qr-overlay {
  position: fixed;
  inset: 0;
  z-index: 10001;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
}

.wechat-qr-card {
  background: var(--white);
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  width: 280px;
}

.wechat-qr-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--text-dark);
}

.wechat-qr-sub {
  font-size: 12px;
  color: var(--text-placeholder);
  margin-bottom: 16px;
}

.wechat-qr-img {
  width: 260px;
  height: 260px;
  margin: 0 auto;
  border-radius: 8px;
}

.wechat-qr-close {
  margin-top: 16px;
  padding: 8px;
  background: var(--bg-gray);
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  color: var(--text-muted);
}
