/* 分享按钮与分享图弹窗（share-poster.js），竞赛页与首页共用 */
.share-trigger { display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0; min-height: 34px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: var(--r-pill); background: var(--bg-elevated); color: var(--accent); font: inherit; font-size: var(--fs-footnote); font-weight: 600; cursor: pointer; transition: background var(--dur-1) var(--ease), border-color var(--dur-1) var(--ease); }
.share-trigger:hover { background: var(--accent-soft); border-color: var(--accent-soft-2); }
.share-trigger:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.share-trigger svg { width: 16px; height: 16px; }

.share-sheet { width: min(440px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: 0; border: 0; border-radius: 24px; background: var(--bg-elevated); color: var(--text); box-shadow: 0 24px 80px rgba(16,34,80,.28); overflow: hidden; }
.share-sheet[open] { display: flex; flex-direction: column; }
.share-sheet::backdrop { background: rgba(7,15,36,.55); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.share-sheet__head { display: flex; align-items: center; justify-content: space-between; padding: 16px 16px 12px 22px; }
.share-sheet__head h2 { font-size: var(--fs-headline); font-weight: 600; }
.share-sheet__close { width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--bg-inset); color: var(--text-2); font-size: 22px; line-height: 1; cursor: pointer; }
.share-sheet__body { flex: 1; min-height: 160px; overflow-y: auto; margin: 0 16px; border-radius: 16px; background: var(--bg); }
.share-sheet__img { display: block; width: 100%; height: auto; -webkit-touch-callout: default; }
.share-sheet__status { padding: 64px 16px; text-align: center; color: var(--text-3); font-size: var(--fs-footnote); }
.share-sheet__hint { padding: 12px 22px 0; text-align: center; color: var(--text-2); font-size: var(--fs-footnote); }
.share-sheet__hint:empty { display: none; }
.share-sheet__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; padding: 14px 16px 20px; }
.share-sheet__actions:not(:has(> :not([hidden]))) { display: none; }
/* 详情页的按钮位置：竞赛详情顶栏、通知详情工具条、专业详情头图右上角 */
.reading-masthead__actions { display: flex; align-items: center; gap: var(--space-4); }
.reading-masthead .share-trigger span { color: inherit; font-weight: 600; }
.art-toolbar-actions { display: inline-flex; align-items: center; gap: var(--space-2); }
.detail-share { position: absolute; top: clamp(16px, 3vw, 28px); right: clamp(16px, 3vw, 28px); z-index: 1; }

@media (max-width: 480px) {
  .share-trigger { padding: 0 11px; }
  .share-trigger span { display: none; }
}
