/* ===== 分享卡片弹窗 ===== */

/* ===== 分享按钮（结局页注入） ===== */
.share-ending-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #65a381 0%, #8fc4a4 100%);
  border: none;
  border-radius: 28px;
  padding: 12px 28px;
  cursor: pointer;
  margin: 6px;
  box-shadow: 0 4px 16px rgba(101,163,129,0.35);
  transition: transform 0.2s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.2s;
  font-family: 'PingFang SC', 'Microsoft YaHei', -apple-system, sans-serif;
}
.share-ending-btn:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 6px 24px rgba(101,163,129,0.45);
}
.share-ending-btn:active {
  transform: scale(0.96);
}
.share-btn-icon {
  font-size: 18px;
  animation: shareIconBounce 2s ease-in-out infinite;
}
@keyframes shareIconBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

.share-card-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.share-card-overlay.active {
  opacity: 1;
  pointer-events: auto;
}
.share-card-panel {
  background: #fff;
  border-radius: 20px;
  padding: 28px 24px 24px;
  max-width: 380px;
  width: 90vw;
  text-align: center;
  position: relative;
  box-shadow: 0 16px 48px rgba(0,0,0,0.2);
  animation: shareSlideUp 0.35s ease;
}
@keyframes shareSlideUp {
  from { transform: translateY(30px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}
.share-card-close {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 22px;
  color: #b2bec3;
  cursor: pointer;
  border: none;
  background: none;
  line-height: 1;
}
.share-card-title {
  font-size: 20px;
  font-weight: 800;
  color: #2d3436;
  margin-bottom: 16px;
}
.share-card-img-wrap {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 16px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}
.share-card-img {
  width: 100%;
  display: block;
}
.share-card-hint {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.55);
  color: #fff;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 12px;
  white-space: nowrap;
}
.share-card-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}
.share-card-btn {
  padding: 10px 22px;
  border-radius: 24px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
  transition: transform 0.15s;
}
.share-card-btn:active {
  transform: scale(0.96);
}
.share-card-btn.primary {
  background: #65a381;
  color: #fff;
}
.share-card-btn.secondary {
  background: #f0f0f0;
  color: #636e72;
}

/* Toast */
.share-toast {
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.75);
  color: #fff;
  padding: 10px 24px;
  border-radius: 24px;
  font-size: 14px;
  z-index: 1001;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
}
.share-toast.show {
  opacity: 1;
}
