/* -------- 按钮显隐控制 -------- */
.btn-share-mobile {
  display: block;
}
.btn-share-pc {
  display: none;
  padding: 8px 16px;
  background: #409eff;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

/* 原按钮点击不变色 */
.btn.btn-outline:active,
.btn.btn-outline:focus {
  background-color: transparent !important;
  box-shadow: none !important;
  outline: none !important;
  border-color: inherit !important;
}
.btn.btn-outline {
  -webkit-tap-highlight-color: transparent;
}

/* -------- 遮罩 -------- */
.share-mask {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9997;
}

/* -------- 分享弹窗：移动端默认样式（底部滑出） -------- */
.share-modal {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff;
  border-radius: 16px 16px 0 0;
  z-index: 9998;
  padding: 20px;
  box-sizing: border-box;
}
.share-title {
  text-align: center;
  font-size: 16px;
  margin-bottom: 20px;
}
.share-list {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}
.share-item {
  text-align: center;
  width: 80px;
  cursor: pointer;
}
.share-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}
.share-text {
  font-size: 12px;
  margin-top: 6px;
}
.share-cancel {
  margin-top: 24px;
  text-align: center;
  padding: 12px;
  border-top: 1px solid #eee;
  color: #333;
  cursor: pointer;
}

/* -------- Toast -------- */
.toast {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  padding: 10px 20px;
  border-radius: 8px;
  z-index: 10000;
  font-size: 14px;
  display: none;
  pointer-events: none;
}

/* ========== PC端媒体查询 >=768px ========== */
@media (min-width: 768px) {
  .btn-share-mobile {
    display: none !important;
  }
  .btn-share-pc {
    display: inline-block;
  }

  /* PC：关闭遮罩，不渲染黑色蒙层 */
  .share-mask {
    background: transparent;
    pointer-events: none;
  }

  /* PC弹窗：右下角定位，靠近按钮，小浮层 */
  .share-modal {
    width: 340px;
    max-width: 90vw;
    right: 160px;
    bottom: 100px;
    left: auto;
    top: auto;
    border-radius: 12px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.15);
  }
}