.kanshan-share {
  --share-ink: #eff5fc;
  --share-muted: #b2c5d5;
  box-sizing: border-box;
  width: 100%;
  max-width: 520px;
  padding: 16px;
  color: var(--share-ink);
  background: rgba(5, 12, 22, .98);
  border: 1px solid rgba(192, 220, 245, .24);
  border-radius: 18px;
  font: 400 14px/1.6 "Inter", "D-DIN", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  overflow-wrap: anywhere;
}
.kanshan-share [hidden], .kanshan-share[hidden] { display: none !important; }
.kanshan-share *, .kanshan-share *::before, .kanshan-share *::after { box-sizing: border-box; }
.kanshan-share__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.kanshan-share__title { margin: 0; color: inherit; font: inherit; font-size: 17px; font-weight: 600; line-height: 1.4; }
.kanshan-share__status { margin: 8px 0 12px; color: var(--share-muted); font-size: 13px; }
.kanshan-share__preview {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: min(48dvh, 460px);
  aspect-ratio: 3 / 4;
  margin: 0 auto;
  border-radius: 10px;
  background: #030813;
  object-fit: contain;
}
.kanshan-share__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.kanshan-share__action, .kanshan-share__close {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border: 1px solid rgba(203, 226, 246, .34);
  border-radius: 999px;
  background: rgba(225, 239, 255, .07);
  color: var(--share-ink);
  font: inherit;
  text-decoration: none;
  cursor: pointer;
}
.kanshan-share__close { flex: 0 0 auto; padding-inline: 12px; }
.kanshan-share__action:hover, .kanshan-share__close:hover { background: rgba(225, 239, 255, .15); }
.kanshan-share__action:focus-visible, .kanshan-share__close:focus-visible, .kanshan-share__link:focus-visible {
  outline: 2px solid #c7e9ff;
  outline-offset: 3px;
}
.kanshan-share__action:disabled { opacity: .55; cursor: wait; }
.kanshan-share__link {
  width: 100%;
  margin-top: 12px;
  padding: 12px;
  border: 1px solid rgba(203, 226, 246, .34);
  border-radius: 8px;
  background: #0c1725;
  color: var(--share-ink);
  font: inherit;
}
@media (max-width: 430px) {
  .kanshan-share { padding: 12px; border-radius: 14px; }
  .kanshan-share__preview { max-height: 40dvh; }
  .kanshan-share__action { flex: 1 1 auto; padding-inline: 12px; }
}
