/* ===== 微信分享引导组件样式 ===== */

/* 分享浮层遮罩 */
.wx-share-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  z-index: 99999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 12px 16px;
  animation: wxFadeIn 0.3s ease;
  -webkit-tap-highlight-color: transparent;
}
@keyframes wxFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* 右上角箭头指向 ··· */
.wx-share-arrow-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  animation: wxArrowBounce 1.6s ease-in-out infinite;
}
@keyframes wxArrowBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.wx-share-arrow {
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-bottom: 16px solid #fff;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.2));
  margin-right: 22px;
}

.wx-share-dot-menu {
  display: flex;
  align-items: center;
  gap: 4px;
  background: #fff;
  border-radius: 20px;
  padding: 8px 16px;
  font-size: 15px;
  font-weight: 500;
  color: #1a1a18;
  box-shadow: 0 2px 16px rgba(0,0,0,0.2);
  margin-right: 8px;
}
.wx-share-dot-menu .dots {
  font-weight: 700;
  letter-spacing: 1px;
  font-size: 18px;
  color: #555;
}

.wx-share-tip {
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  text-align: center;
  margin-top: 8px;
  margin-right: 12px;
  line-height: 1.6;
  text-shadow: 0 1px 3px rgba(0,0,0,0.3);
  max-width: 260px;
}
.wx-share-tip .highlight {
  color: #FFD700;
  font-weight: 700;
}

/* 底部知道按钮 */
.wx-share-dismiss {
  position: fixed;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255,255,255,0.95);
  color: #1a1a18;
  border: none;
  border-radius: 24px;
  padding: 10px 36px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  box-shadow: 0 2px 12px rgba(0,0,0,0.2);
  -webkit-tap-highlight-color: transparent;
  z-index: 100000;
}
.wx-share-dismiss:active {
  background: rgba(255,255,255,0.8);
  transform: translateX(-50%) scale(0.96);
}

/* ===== 通用底部分享栏（非微信环境降级） ===== */
.share-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  border-top: 1px solid #e8e6de;
  padding: 10px 16px;
  padding-bottom: max(10px, env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 9998;
  box-shadow: 0 -2px 12px rgba(0,0,0,0.06);
  transform: translateY(100%);
  transition: transform 0.3s ease;
}
.share-bar.visible {
  transform: translateY(0);
}

.share-bar-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #e8e6de;
  background: #faf9f5;
  font-size: 14px;
  color: #3d3d38;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  font-family: inherit;
  transition: background 0.15s;
}
.share-bar-btn:active {
  background: #e8e6de;
}
.share-bar-btn.primary {
  background: var(--teal);
  color: #fff;
  border-color: var(--teal);
}
.share-bar-btn.primary:active {
  background: var(--teal-mid);
}

.share-bar-icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

/* ===== 分享Toast ===== */
.share-toast {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%) scale(0.8);
  background: rgba(0,0,0,0.8);
  color: #fff;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  z-index: 100001;
  opacity: 0;
  transition: all 0.3s ease;
  pointer-events: none;
  white-space: nowrap;
}
.share-toast.show {
  opacity: 1;
  transform: translate(-50%,-50%) scale(1);
}

/* ===== 微信环境检测标识类 ===== */
.is-wechat .share-bar {
  /* 微信中隐藏通用分享栏，使用微信原生分享 */
  display: none;
}

/* ===== 页面底部留白（为分享栏腾空间） ===== */
body.has-share-bar {
  padding-bottom: 70px;
}
