.share-sheet[hidden] { display: none !important; }
.share-sheet { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 18px; }
.share-sheet-mask { position: absolute; inset: 0; border: 0; background: rgba(13, 28, 40, .55); backdrop-filter: blur(3px); }
.share-sheet-panel { position: relative; width: min(520px, 100%); max-height: min(720px, calc(100vh - 36px)); overflow: auto; border-radius: 16px; background: #fff; color: #172b40; box-shadow: 0 24px 70px rgba(16, 35, 50, .28); }
.share-sheet-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 22px 22px 14px; }
.share-sheet-head h2 { margin: 0 0 5px; font-size: 23px; line-height: 1.25; }
.share-sheet-head p { margin: 0; color: #708096; font-size: 13px; line-height: 1.55; }
.share-sheet-close { flex: 0 0 auto; display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 50%; background: #f1eee8; color: #536574; font-size: 24px; line-height: 1; }
.share-sheet-guide { margin: 0 22px 14px; padding: 12px 14px; border-left: 3px solid #bd8b3c; background: #fbf5e9; color: #715a36; font-size: 13px; line-height: 1.65; }
.share-sheet-guide strong { display: block; margin-bottom: 2px; color: #172b40; }
.share-sheet-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 0 22px 18px; }
.share-option { display: grid; justify-items: center; gap: 8px; min-width: 0; padding: 13px 5px 11px; border: 1px solid #e7dfd2; border-radius: 9px; background: #fff; color: #31495c; font-size: 12px; text-align: center; }
.share-option:hover, .share-option:focus-visible { border-color: #bd8b3c; background: #faf7f1; outline: none; }
.share-option-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; color: #fff; font-size: 14px; font-weight: 700; letter-spacing: -.02em; }
.share-option[data-share-action="wechat"] .share-option-icon { background: #16b94e; }
.share-option[data-share-action="timeline"] .share-option-icon { background: #08a83e; }
.share-option[data-share-action="qq"] .share-option-icon { background: #1685dc; }
.share-option[data-share-action="qzone"] .share-option-icon { background: #f2a900; }
.share-option[data-share-action="system"] .share-option-icon { background: #6d7682; font-size: 20px; }
.share-option[data-share-action="copy"] .share-option-icon { background: #193b57; font-size: 18px; }
.share-link-box { padding: 16px 22px 22px; border-top: 1px solid #ece6dc; background: #faf9f6; }
.share-link-box label { display: block; margin-bottom: 8px; color: #708096; font-size: 12px; }
.share-link-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.share-link-input { min-width: 0; width: 100%; border: 1px solid #ddd5c8; border-radius: 5px; background: #fff; color: #516171; padding: 11px 12px; font: inherit; font-size: 12px; }
.share-copy-button { border: 1px solid #193b57; border-radius: 5px; background: #193b57; color: #fff; padding: 0 16px; white-space: nowrap; font: inherit; font-size: 13px; }
.share-sheet-status { min-height: 20px; margin: 8px 0 0; color: #bd7e24; font-size: 12px; line-height: 1.5; }
body.share-dialog-open { overflow: hidden; }
@media (max-width: 560px) {
  .share-sheet { align-items: end; padding: 0; }
  .share-sheet-panel { width: 100%; max-height: min(680px, calc(100vh - 16px)); border-radius: 18px 18px 0 0; padding-bottom: env(safe-area-inset-bottom); }
  .share-sheet-head { padding: 19px 18px 12px; }
  .share-sheet-head h2 { font-size: 21px; }
  .share-sheet-guide { margin: 0 18px 12px; }
  .share-sheet-options { padding: 0 18px 16px; gap: 7px; }
  .share-option { padding: 11px 3px 9px; }
  .share-option-icon { width: 40px; height: 40px; }
  .share-link-box { padding: 14px 18px calc(18px + env(safe-area-inset-bottom)); }
}
