.xd-heart-panel{
  width:min(860px,calc(100% - 24px));margin:20px auto;color:#3d5a73;
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;
}
.xd-heart-card{
  position:relative;overflow:hidden;border:2px solid #c9e9ff;border-radius:26px;padding:22px;
  background:
    radial-gradient(circle at 92% 4%,rgba(255,255,255,.96) 0 5%,transparent 5.5%),
    radial-gradient(circle at 8% 92%,rgba(255,255,255,.8) 0 4%,transparent 4.5%),
    linear-gradient(155deg,#f7fcff 0%,#e8f7ff 48%,#dff2ff 100%);
  box-shadow:0 18px 45px rgba(80,150,200,.18),inset 0 1px 0 rgba(255,255,255,.95)
}
.xd-heart-card::before{
  content:"☁";position:absolute;right:18px;top:10px;font-size:54px;line-height:1;
  color:rgba(255,255,255,.86);text-shadow:0 5px 0 rgba(168,221,255,.16);pointer-events:none
}
.xd-heart-card::after{
  content:"✦";position:absolute;left:18px;bottom:14px;font-size:22px;color:#9ddcff;opacity:.55;pointer-events:none
}
.xd-heart-head{position:relative;z-index:1;display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.xd-heart-eyebrow{font-size:10px;letter-spacing:.22em;color:#7cb9df;font-weight:700}
.xd-heart-head h2{margin:4px 0 0;font-size:22px;color:#35536d;letter-spacing:.02em;display:flex;align-items:center;gap:7px}
.xd-heart-head h2::before{content:"♡";color:#78c8f6;font-size:20px;font-weight:400}
.xd-heart-sub{margin:5px 0 0;font-size:11px;color:#8bb0c7}
.xd-heart-key{font:11px ui-monospace,Consolas,monospace;color:#7b9bb3;word-break:break-all;max-width:50%;text-align:right;
  background:rgba(255,255,255,.72);border:1px solid #d8efff;border-radius:10px;padding:6px 8px}
.xd-heart-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:9px;margin:16px 0 14px;position:relative;z-index:1}
.xd-heart-stats>div{padding:11px 12px;border:1.5px solid #d5efff;border-radius:14px;background:rgba(255,255,255,.78);
  box-shadow:0 5px 12px rgba(121,191,235,.08)}
.xd-heart-stats span{display:block;font-size:11px;color:#7fa4bd;margin-bottom:2px}
.xd-heart-stats b{font-size:20px;color:#4a7897}
.xd-heart-tabs{display:flex;gap:6px;padding:5px;border-radius:14px;background:rgba(185,226,255,.42);
  border:1px solid #d4efff;margin-bottom:14px;position:relative;z-index:1}
.xd-heart-tab{flex:1;height:40px;border:0;border-radius:10px;background:transparent;color:#6f94ad;
  font-size:13px;font-weight:600;cursor:pointer;transition:background .18s ease,color .18s ease,box-shadow .18s ease}
.xd-heart-tab.is-on{background:#fff;color:#3d6f90;box-shadow:0 4px 12px rgba(110,180,225,.18)}
.xd-heart-body{min-height:70px;position:relative;z-index:1}
.xd-heart-muted{font-size:12px;line-height:1.7;color:#7396ad;margin:0 0 14px}
.xd-heart-actions{display:flex;gap:9px;flex-wrap:wrap;margin-top:14px}
.xd-heart-btn{display:inline-flex;align-items:center;justify-content:center;height:42px;padding:0 16px;
  border-radius:13px;border:1.5px solid #c9eaff;background:#fff;color:#4c7e9e;font-size:13px;
  font-weight:600;cursor:pointer;text-decoration:none;box-shadow:0 4px 10px rgba(116,185,228,.08);
  transition:transform .16s ease,box-shadow .16s ease,background .16s ease}
.xd-heart-btn:hover{transform:translateY(-1px);box-shadow:0 7px 15px rgba(116,185,228,.16)}
.xd-heart-btn.primary{background:linear-gradient(135deg,#9fdcff,#73c8f5);border-color:#7ccbf4;color:#2f5d7c;
  box-shadow:0 7px 16px rgba(102,190,235,.24)}
.xd-heart-btn:disabled{opacity:.45;cursor:not-allowed;transform:none;box-shadow:none}
.xd-heart-bind{display:grid;grid-template-columns:minmax(0,1fr);gap:9px;margin:12px 0}
.xd-heart-input{width:100%;min-width:0;height:48px;border-radius:13px;border:1.5px solid #c9e8fc;
  background:#fff;color:#3d5a73;padding:0 15px;font-size:14px;outline:none;
  box-shadow:inset 0 2px 5px rgba(150,205,235,.08)}
.xd-heart-input::placeholder{color:#a2bccd}
.xd-heart-input:focus{border-color:#7ccbf4;box-shadow:0 0 0 4px rgba(124,203,244,.16)}
.xd-heart-code{margin:12px 0;padding:17px 12px;border:2px dashed #a9dcf9;border-radius:18px;
  text-align:center;font-size:24px;font-weight:800;letter-spacing:.14em;color:#376c8d;
  background:linear-gradient(180deg,#fff,#effaff)}
.xd-heart-result{margin-top:12px}
.xd-heart-ok,.xd-heart-error{padding:10px 12px;border-radius:12px;font-size:12px;line-height:1.65;word-break:break-all}
.xd-heart-ok{background:#eafff5;color:#3e8f6d;border:1px solid #bcebd6}
.xd-heart-error{background:#fff2f4;color:#b86676;border:1px solid #ffd0d8}
.xd-heart-line{display:flex;justify-content:space-between;gap:10px;padding:9px 11px;border-radius:11px;
  background:rgba(255,255,255,.78);border:1px solid #e0f2fd;font-size:12px;color:#7a9ab0;margin-top:7px}
.xd-heart-line b{color:#426e8b;font-weight:700;text-align:right;word-break:break-all}
.xd-heart-notice{margin:12px 0 0;padding:10px 12px;border-radius:12px;font-size:12px;line-height:1.65;
  background:#fff9e9;color:#9a762e;border:1px solid #ffe6ae}
.xd-heart-notice.is-error{background:#fff2f4;color:#b86676;border-color:#ffd0d8}
.xd-heart-btn.is-attention{box-shadow:0 0 0 3px rgba(255,199,92,.35)}
.xd-heart-progress{height:10px;border-radius:999px;background:#e6f1fb;overflow:hidden;margin:12px 0 6px}
.xd-heart-progress-bar{height:100%;border-radius:999px;background:linear-gradient(90deg,#9ed5ff,#5aa9ff);transition:width .5s ease}
.xd-heart-countdown{display:flex;justify-content:space-between;align-items:center;color:#6b7f99;font-size:12px;margin-bottom:12px}
.xd-heart-countdown b{color:#2f6fd0;font-size:13px;font-variant-numeric:tabular-nums}
@media(max-width:560px){
  .xd-heart-panel{width:calc(100% - 14px);margin:12px auto}
  .xd-heart-card{padding:16px 14px;border-radius:22px}
  .xd-heart-card::before{font-size:42px;right:10px;top:8px}
  .xd-heart-head h2{font-size:20px}
  .xd-heart-key{max-width:46%;font-size:10px}
.xd-heart-bind{grid-template-columns:minmax(0,1fr)}
  .xd-heart-btn{width:100%}
  .xd-heart-code{font-size:20px;padding:14px 8px}
}
@keyframes xd-spin{to{transform:rotate(360deg)}}
.xd-heart-btn.is-loading{position:relative;color:transparent!important;pointer-events:none}
.xd-heart-btn.is-loading::after{content:"";position:absolute;left:50%;top:50%;width:16px;height:16px;margin:-8px 0 0 -8px;border:2px solid rgba(47,111,208,.25);border-top-color:#2f6fd0;border-radius:50%;animation:xd-spin .7s linear infinite}
.xd-heart-btn.primary.is-loading::after{border-color:rgba(255,255,255,.45);border-top-color:#fff}
.xd-heart-spinner{display:inline-block;width:14px;height:14px;border:2px solid rgba(47,111,208,.25);border-top-color:#2f6fd0;border-radius:50%;animation:xd-spin .8s linear infinite;vertical-align:-2px;margin-right:6px}
.xd-heart-btn:disabled,.xd-heart-btn.is-disabled{opacity:.5;cursor:not-allowed}

/* 好友码：允许长按选中/复制，点击也能复制 */
.xd-heart-code{-webkit-user-select:text;user-select:text;-webkit-touch-callout:default;cursor:pointer}
.xd-heart-code::selection{background:#bfe9ff}
