.hk-share-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  place-items: center;
  padding: 24px;
  background: rgba(35, 28, 23, 0.52);
  backdrop-filter: blur(14px);
}

.hk-share-overlay.is-open {
  display: grid;
}

.hk-share-panel {
  position: relative;
  width: min(820px, 100%);
  max-height: min(850px, calc(100vh - 32px));
  overflow: auto;
  padding: 30px;
  border: 1px solid rgba(73, 56, 45, 0.1);
  border-radius: 24px;
  background: #fbf8f3;
  color: #2d241f;
  box-shadow: 0 32px 100px rgba(45, 33, 25, 0.26);
}

.hk-share-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgba(73, 56, 45, 0.07);
  color: #6f6259;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}

.hk-share-heading {
  padding-right: 48px;
}

.hk-share-kicker {
  display: block;
  margin-bottom: 8px;
  color: #8f674c;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hk-share-heading h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 32px);
  letter-spacing: 0;
}

.hk-share-heading p {
  margin: 9px 0 0;
  color: #81766e;
  line-height: 1.65;
}

.hk-share-content {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(250px, 0.9fr);
  gap: 22px;
  margin-top: 24px;
}

.hk-share-preview {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 164px;
  align-items: center;
  gap: 18px;
  min-height: 230px;
  padding: 20px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(62, 43, 31, 0.07);
}

.hk-share-artwork {
  display: grid;
  place-items: center;
  min-height: 190px;
  overflow: hidden;
  border-radius: 12px;
  background: #eee8e1;
}

.hk-share-artwork img {
  display: block;
  width: 100%;
  height: 210px;
  object-fit: contain;
}

.hk-share-qr {
  display: grid;
  justify-items: center;
  gap: 9px;
  color: #81766e;
  font-size: 12px;
  text-align: center;
}

.hk-share-qr-box {
  width: 148px;
  height: 148px;
  padding: 8px;
  border: 1px solid rgba(73, 56, 45, 0.1);
  border-radius: 12px;
  background: #fff;
}

.hk-share-qr-box canvas,
.hk-share-qr-box img,
.hk-share-qr-box svg {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

.hk-share-groups {
  display: grid;
  gap: 16px;
}

.hk-share-group {
  display: grid;
  gap: 9px;
}

.hk-share-group > strong {
  color: #71665e;
  font-size: 12px;
}

.hk-share-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.hk-share-option {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 62px;
  padding: 10px 12px;
  border: 1px solid rgba(73, 56, 45, 0.11);
  border-radius: 14px;
  background: #fff;
  color: #2d241f;
  cursor: pointer;
  text-align: left;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.hk-share-option:hover {
  transform: translateY(-2px);
  border-color: rgba(106, 75, 56, 0.35);
  box-shadow: 0 9px 22px rgba(52, 36, 26, 0.08);
}

.hk-share-option:disabled {
  cursor: wait;
  opacity: 0.58;
}

.hk-share-option span:last-child {
  min-width: 0;
  font-size: 13px;
  font-weight: 800;
}

.hk-share-channel-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: #f1ebe5;
  color: #684b39;
  font-size: 15px;
  font-weight: 900;
}

.hk-share-option[data-channel="wechat"] .hk-share-channel-icon,
.hk-share-option[data-channel="moments"] .hk-share-channel-icon {
  background: #e7f8ec;
  color: #16a05a;
}

.hk-share-option[data-channel="xiaohongshu"] .hk-share-channel-icon {
  background: #fff0f1;
  color: #e7434f;
}

.hk-share-option[data-channel="douyin"] .hk-share-channel-icon {
  background: #201d22;
  color: #fff;
}

.hk-share-option[data-channel="qq"] .hk-share-channel-icon {
  background: #eaf4ff;
  color: #2586df;
}

.hk-share-option[data-channel="weibo"] .hk-share-channel-icon {
  background: #fff1e9;
  color: #e95b26;
}

.hk-share-status {
  min-height: 22px;
  margin: 18px 0 0;
  padding: 11px 14px;
  border-radius: 12px;
  background: rgba(15, 139, 141, 0.07);
  color: #176f70;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
}

.hk-share-status:empty {
  display: none;
}

.hk-share-poster-canvas {
  position: fixed;
  left: -10000px;
  top: 0;
  width: 1080px;
  height: 1440px;
  pointer-events: none;
}

@media (max-width: 760px) {
  .hk-share-overlay { padding: 12px; }
  .hk-share-panel { padding: 24px 18px; border-radius: 20px; }
  .hk-share-content { grid-template-columns: 1fr; }
  .hk-share-preview { grid-template-columns: minmax(0, 1fr) 126px; padding: 14px; }
  .hk-share-qr-box { width: 116px; height: 116px; }
}

@media (max-width: 430px) {
  .hk-share-preview { grid-template-columns: 1fr; }
  .hk-share-artwork img { height: 180px; }
  .hk-share-options { grid-template-columns: 1fr 1fr; }
  .hk-share-option { grid-template-columns: 32px minmax(0, 1fr); padding: 8px; }
  .hk-share-channel-icon { width: 32px; height: 32px; border-radius: 10px; }
}
