.xm-share {
  position: relative;
  margin: 0 0 14px;
  padding: 18px 20px 16px;
  border-radius: 20px;
  overflow: hidden;
  background:
    radial-gradient(120px 90px at 92% 12%, rgba(88, 156, 255, .14), transparent 70%),
    linear-gradient(180deg, #f4f8ff 0%, #ffffff 42%);
  border: 1px solid #e4eefc;
  box-shadow: 0 10px 28px rgba(47, 107, 255, .08);
}
.xm-share-hd {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  padding-bottom: 10px;
  position: relative;
  width: fit-content;
  font-size: 16px;
  font-weight: 800;
  color: #163a7a;
  letter-spacing: .02em;
}
.xm-share-hd::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 52px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, #3b82f6, #60a5fa);
}
.xm-share-hd-ico {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  background: url("./icons/share_hd.png") center / contain no-repeat;
}
.xm-share-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.xm-share-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 118px;
  height: 48px;
  padding: 0 16px 0 10px;
  border: 0;
  border-radius: 999px;
  color: #334155;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
}
.xm-share-item i {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-block;
  flex: 0 0 32px;
  background: center / 32px 32px no-repeat;
}
.xm-share-item:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(15, 23, 42, .08);
}
.xm-share-wechat {
  background: #e8f7ed;
}
.xm-share-wechat i {
  background-image: url("./icons/wechat.png");
}
.xm-share-weibo {
  background: #fff1f0;
}
.xm-share-weibo i {
  background-image: url("./icons/weibo.png");
}
.xm-share-qq {
  background: #e6f4ff;
}
.xm-share-qq i {
  background-image: url("./icons/qq.png");
}
.xm-share-copy {
  background: #f3efff;
}
.xm-share-copy i {
  background-image: url("./icons/copy.png");
}
.xm-share-wechat:hover { color: #07c160; }
.xm-share-weibo:hover { color: #e6162d; }
.xm-share-qq:hover { color: #1288f6; }
.xm-share-copy:hover { color: #6d5cff; }
.xm-share-tip {
  margin-top: 10px;
  font-size: 12px;
  color: #15803d;
}
.xm-share-mask {
  position: fixed;
  inset: 0;
  z-index: 1300;
  background: rgba(15, 23, 42, .45);
  display: grid;
  place-items: center;
  padding: 20px;
}
.xm-share-mask[hidden] { display: none !important; }
.xm-share-panel {
  width: min(320px, 100%);
  padding: 20px;
  border-radius: 16px;
  background: #fff;
  text-align: center;
  box-shadow: 0 18px 40px rgba(15, 23, 42, .2);
}
.xm-share-panel img {
  width: 160px;
  height: 160px;
  margin: 10px auto 0;
  display: block;
  border-radius: 8px;
  background: #f8fafc;
}
.xm-share-panel p { margin: 0; color: #475569; font-size: 13px; line-height: 1.5; }
.xm-share-panel button {
  margin-top: 14px;
  border: 0;
  border-radius: 999px;
  background: #2f6bff;
  color: #fff;
  height: 36px;
  padding: 0 18px;
  cursor: pointer;
}

@media (max-width: 720px) {
  .xm-share {
    padding: 14px 12px 12px;
    border-radius: 16px;
  }
  .xm-share-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .xm-share-item {
    min-width: 0;
    width: 100%;
    height: 44px;
    justify-content: flex-start;
  }
}
