/* 微信分享样式 */

/* 固定分享按钮 */
.share-button-fixed {
  position: fixed;
  bottom: 80px;
  right: 20px;
  z-index: 999;
}

.share-btn {
  padding:14px 28px;
  background:linear-gradient(135deg,#667eea 0%,#764ba2 100%);
  color:#fff;
  border:4px solid #fff;
  border-radius:30px;
  font-size:16px;
  font-weight:900;
  cursor:pointer;
  box-shadow:0 6px 24px rgba(102,126,234,0.6),0 0 0 2px rgba(102,126,234,0.4),inset 0 1px 0 rgba(255,255,255,.4);
  transition:all 0.3s;
  letter-spacing:1px;
  text-shadow:0 2px 4px rgba(0,0,0,.3);
}

.share-btn:hover {
  transform:translateY(-4px) scale(1.05);
  box-shadow:0 10px 32px rgba(102,126,234,0.7),0 0 0 3px rgba(102,126,234,0.5),inset 0 1px 0 rgba(255,255,255,.5);
  background:linear-gradient(135deg,#7c8ef5 0%,#8b5cb8 100%);
  border-color:#fff;
}

.share-btn:active {
  transform:translateY(-2px) scale(1.03);
  box-shadow:0 5px 16px rgba(102,126,234,0.6);
}

/* 分享模态框 */
.share-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.share-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}

.share-modal-content {
  position: relative;
  background: #fff;
  border-radius: 16px;
  padding: 20px;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.share-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.share-modal-header h3 {
  margin: 0;
  font-size: 20px;
  color: #1e293b;
}

.close-btn {
  background: none;
  border: none;
  font-size: 32px;
  color: #64748b;
  cursor: pointer;
  padding: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: all 0.2s;
  font-weight: 700;
}

.close-btn:hover {
  background: #f1f5f9;
  color: #1e293b;
  transform: scale(1.1);
}

.share-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}

.share-option {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 20px;
  background: #f8fafc;
  border: 2px solid transparent;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s;
}

.share-option:hover {
  background: #e2e8f0;
  transform: translateY(-3px);
  border-color: #cbd5e1;
  box-shadow: 0 4px 12px rgba(0,0,0,.1);
}

.share-option:active {
  transform: translateY(-1px);
}

.share-icon {
  font-size: 32px;
}

.share-label {
  font-size: 14px;
  font-weight: 600;
  color: #1e293b;
}

.share-option .tip {
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  background: #1e293b;
  color: #fff;
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 12px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.share-option.wechat-tip:hover .tip {
  opacity: 1;
}

/* 微信登录按钮 */
.wechat-login-btn {
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:14px 28px;
  background:#07c160;
  color:#fff;
  border:4px solid #fff;
  border-radius:10px;
  font-size:17px;
  font-weight:900;
  cursor:pointer;
  text-decoration:none;
  transition:all 0.3s;
  box-shadow:0 5px 20px rgba(7,193,96,0.5),0 0 0 2px rgba(7,193,96,0.4),inset 0 1px 0 rgba(255,255,255,.4);
  letter-spacing:1px;
  text-shadow:0 2px 4px rgba(0,0,0,.3);
}

.wechat-login-btn:hover {
  background:#06ad56;
  transform:translateY(-3px) scale(1.05);
  box-shadow:0 8px 28px rgba(7,193,96,0.6),0 0 0 3px rgba(7,193,96,0.5),inset 0 1px 0 rgba(255,255,255,.5);
  border-color:#fff;
}

.wechat-login-btn:active {
  transform:translateY(-1px) scale(1.03);
  box-shadow:0 4px 16px rgba(7,193,96,0.5);
}

.wechat-login-btn .icon {
  font-size: 18px;
}

/* 响应式 */
@media (max-width: 640px) {
  .share-button-fixed {
    bottom: 60px;
    right: 15px;
  }

  .share-btn {
    padding: 10px 16px;
    font-size: 13px;
  }

  .share-modal-content {
    width: 95%;
  }

  .share-options {
    grid-template-columns: 1fr;
  }
}
