/* ============ 分享助力弹窗 ============ */

.share-modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 10000;
  align-items: center;
  justify-content: center;
}

.share-modal-panel {
  background: #fff;
  border-radius: 12px;
  width: 520px;
  max-width: 90vw;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.18);
  animation: shareModalIn 0.25s ease-out;
}

@keyframes shareModalIn {
  from { transform: translateY(-20px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

.share-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid #f0f0f0;
}

.share-modal-title {
  font-size: 18px;
  font-weight: 600;
  color: #1a1a2e;
}

.share-modal-close {
  font-size: 24px;
  color: #999;
  cursor: pointer;
  line-height: 1;
  padding: 0 4px;
  transition: color 0.2s;
}

.share-modal-close:hover {
  color: #333;
}

.share-modal-body {
  padding: 24px;
}

.share-tip {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
  margin-bottom: 20px;
}

.share-url-box {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
}

.share-url-input {
  flex: 1;
  height: 42px;
  padding: 0 14px;
  border: 1px solid #d9d9d9;
  border-radius: 6px;
  font-size: 13px;
  color: #333;
  background: #fafafa;
  outline: none;
}

.share-url-input:focus {
  border-color: #ff8c00;
}

.share-copy-btn {
  flex-shrink: 0;
  height: 42px;
  padding: 0 20px;
  background: linear-gradient(135deg, #ff8c00, #ffa940);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: opacity 0.2s;
  white-space: nowrap;
}

.share-copy-btn:hover {
  opacity: 0.85;
}

.share-copy-btn:active {
  opacity: 0.7;
}

.share-copy-tip {
  font-size: 13px;
  color: #999;
  min-height: 20px;
}

/* 商品卡片中的分享助力按钮 */
.share-help-btn {
  display: inline-block;
  padding: 4px 14px;
  margin-left: 8px;
  background: linear-gradient(135deg, #ff8c00, #ffa940);
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 13px;
  cursor: pointer;
  transition: opacity 0.2s;
  vertical-align: middle;
  line-height: 1.6;
}

.share-help-btn:hover {
  opacity: 0.85;
}

.share-help-btn:active {
  opacity: 0.7;
}

/* 下载弹窗内的分享助力样式 */
.share-help-inline {
  display: inline-block;
  padding: 8px 20px;
  margin-left: 12px;
  background: linear-gradient(135deg, #ff8c00, #ffa940);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: opacity 0.2s;
}

.share-help-inline:hover {
  opacity: 0.85;
}
