/* ===== 分享浮动按钮 ===== */
.share-float-btn {
  position: fixed;
  right: 20px;
  bottom: 300px;
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, #FF6B35, #ff8a5c);
  border-radius: 50%;
  box-shadow: 0 4px 16px rgba(255,107,53,0.4);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 9991;
  transition: all 0.2s;
  gap: 2px;
  color: #fff;
}
.share-float-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255,107,53,0.5);
}
.share-float-btn:active {
  transform: scale(0.95);
}
.share-float-btn .share-icon {
  font-size: 20px;
}
.share-float-btn .share-label {
  font-size: 10px;
  color: #666;
}

/* ===== 分享弹窗遮罩 ===== */
.share-modal-mask {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.6);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.share-modal-mask.active {
  display: flex;
}

/* ===== 分享卡片 ===== */
.share-modal-card {
  background: #fff;
  border-radius: 16px;
  width: 100%;
  max-width: 360px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  animation: sharePop 0.3s ease;
}
@keyframes sharePop {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.share-modal-card-close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(0,0,0,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: #666;
  cursor: pointer;
  z-index: 2;
}

.share-modal-card-header {
  padding: 20px 20px 12px;
  text-align: center;
  border-bottom: 1px solid #f0f0f0;
}
.share-modal-card-title {
  font-size: 16px;
  font-weight: 700;
  color: #1A3C6E;
  margin-bottom: 4px;
}
.share-modal-card-subtitle {
  font-size: 12px;
  color: #999;
}

/* 海报画布区域 */
.share-poster-wrap {
  padding: 16px 20px;
  text-align: center;
  background: #f5f5f5;
}
.share-poster-canvas {
  width: 100%;
  max-width: 280px;
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  background: #fff;
}
.share-poster-tip {
  font-size: 11px;
  color: #999;
  margin-top: 8px;
}

/* 操作按钮区 */
.share-actions {
  padding: 16px 20px 20px;
  display: flex;
  gap: 12px;
}
.share-action-btn {
  flex: 1;
  padding: 12px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  border: none;
  transition: all 0.15s;
}
.share-action-btn:active {
  transform: scale(0.97);
}
.share-action-btn.primary {
  background: linear-gradient(135deg, #FF6B35 0%, #ff8a5c 100%);
  color: #fff;
  box-shadow: 0 3px 10px rgba(255,107,53,0.3);
}
.share-action-btn.secondary {
  background: #f5f7fa;
  color: #1A3C6E;
  border: 1px solid #e0e6ef;
}

/* 复制成功提示 */
.share-toast {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0,0,0,0.8);
  color: #fff;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  z-index: 2000;
  display: none;
}
.share-toast.show {
  display: block;
  animation: toastFade 1.5s ease;
}
@keyframes toastFade {
  0%, 100% { opacity: 0; }
  20%, 80% { opacity: 1; }
}

/* 移动端适配 */
@media (max-width: 480px) {
  .share-float-btn {
    bottom: 180px;
    right: 16px;
    width: 46px;
    height: 46px;
  }
}
