/* ============================================================
   分享海报弹窗
   海报是服务端生成的整张图片，这里只做遮罩、容器与按钮，
   不参与海报排版（版式在 DefaultShareCardSkin 里）。
   ============================================================ */
.share-layer {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.share-layer[hidden] { display: none; }

.share-mask {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .72);
}

.share-dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 360px;
  max-height: calc(100vh - 32px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.share-close {
  position: absolute;
  top: -8px;
  right: -8px;
  z-index: 2;
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, .94);
  color: #333;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .25);
}

.share-close:hover { background: #fff; }

.share-poster {
  width: 100%;
  min-height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 10px;
  background: var(--c-surface);
  box-shadow: 0 12px 40px rgba(0, 0, 0, .35);
}

.share-poster img {
  display: block;
  width: 100%;
  height: auto;
}

.share-loading {
  padding: 80px 0;
  font-size: 13px;
  color: var(--c-text-3);
}

.share-error {
  padding: 36px 20px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--c-text-2);
  text-align: center;
}

.share-tip {
  margin: 0;
  font-size: 12px;
  color: #fff;
  opacity: .86;
  text-align: center;
}

.share-actions { display: flex; gap: 10px; }
.share-actions .btn { min-width: 104px; justify-content: center; }

/* 弹窗打开时锁住页面滚动（避免移动端背景跟着滑） */
body.share-open { overflow: hidden; }

@media (max-width: 380px) {
  .share-dialog { max-width: 100%; }
  .share-actions .btn { flex: 1; min-width: 0; }
}

@media (min-width: 721px) {
  .share-dialog { max-width: 380px; }
}
