/* 弹窗期间不藏滚动条，避免页面横跳 */
html.xu5-has-remote-assist {
  scrollbar-gutter: stable;
}

/* —— 侧栏入口 —— */
.xu5-ra-sidebar-card.xu5-sidebar-card,
.xu5-page-sidebar .xu5-sidebar-card.xu5-ra-sidebar-card,
.single-software.game-platform .xu5-page-sidebar .xu5-sidebar-card.xu5-ra-sidebar-card,
.single-software.game-platform .xu5-sidebar-card.xu5-ra-sidebar-card {
  background: linear-gradient(180deg, #f4f8ff 0%, #fff 72%) !important;
  border: 1px solid #d9e8fb;
  box-shadow: none;
  overflow: hidden;
}
.xu5-ra-sidebar-inner {
  text-align: center;
  padding: 8px 2px 4px;
}
.xu5-ra-sidebar-icon {
  width: 42px;
  height: 42px;
  margin: 0 auto 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: #2b7de9;
  background: #fff;
  border: 1px solid #d6e6fb;
  box-shadow: 0 4px 10px rgba(64, 158, 255, .08);
}
.xu5-page-sidebar .xu5-ra-sidebar-card h3,
.xu5-ra-sidebar-card.xu5-sidebar-card h3,
.xu5-ra-sidebar-inner h3 {
  font-size: 15px;
  color: #1f2a37;
  margin: 0 0 6px;
  font-weight: 600;
  border-bottom: none;
  padding-bottom: 0;
}
.xu5-ra-sidebar-inner p {
  font-size: 12px;
  color: #7a8494;
  margin: 0 0 12px;
  line-height: 1.55;
}
.xu5-ra-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 600;
  border: none;
  color: #fff;
  background: linear-gradient(180deg, #4aa3ff 0%, #2f8ff0 100%);
  border-radius: 8px;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
  box-shadow: 0 6px 14px rgba(47, 143, 240, .22);
}
.xu5-ra-trigger:hover {
  filter: brightness(1.04);
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(47, 143, 240, .28);
}
.xu5-ra-trigger:active {
  transform: translateY(0);
}

/* —— 弹窗 —— */
.xu5-ra-overlay {
  display: none;
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background: rgba(17, 24, 39, .48);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 99999;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity .22s ease;
}
.xu5-ra-overlay.active {
  display: flex;
  opacity: 1;
}
.xu5-ra-box {
  background: #fff;
  border-radius: 14px;
  padding: 22px 22px 20px;
  max-width: 500px;
  width: 92%;
  position: relative;
  transform: translateY(10px) scale(.98);
  transition: transform .22s ease;
  box-shadow: 0 24px 60px rgba(15, 23, 42, .22);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
}
.xu5-ra-overlay.active .xu5-ra-box {
  transform: none;
}
.xu5-ra-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 30px;
  height: 30px;
  border: none;
  background: #f3f5f8;
  border-radius: 50%;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6b7280;
  z-index: 1;
  transition: background .15s ease, color .15s ease;
}
.xu5-ra-close:hover {
  background: #e8ecf1;
  color: #111827;
}
.xu5-ra-head {
  padding: 4px 28px 12px 0;
  margin: 0 0 14px;
  border-bottom: 1px solid #eef1f5;
}
.xu5-ra-title {
  font-size: 18px;
  color: #1f2937;
  margin: 0;
  font-weight: 700;
  letter-spacing: .02em;
  text-align: left;
}
.xu5-ra-free-content,
.xu5-ra-after-content,
.xu5-ra-paid-content {
  color: #4b5563;
  font-size: 14px;
  line-height: 1.8;
}
.xu5-ra-free-content img,
.xu5-ra-after-content img,
.xu5-ra-paid-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}
.xu5-ra-free-content p,
.xu5-ra-after-content p,
.xu5-ra-paid-content p {
  margin: 0 0 10px;
}
.xu5-ra-free-content p:last-child,
.xu5-ra-after-content p:last-child {
  margin-bottom: 0;
}

/* —— 付费遮罩（只挡中间一段） —— */
.xu5-ra-paywall {
  position: relative;
  margin: 14px 0 4px;
}
.xu5-ra-paywall-box {
  text-align: center;
  padding: 18px 16px 16px;
  background: #f7faff;
  border-radius: 12px;
  border: 1px solid #dbeafe;
}
.xu5-ra-paywall-warn {
  margin-top: 14px;
  background: #fffbeb;
  border-color: #fde68a;
}
.xu5-ra-paywall-warn .xu5-ra-paywall-text {
  color: #b45309;
  margin: 0;
}
.xu5-ra-paywall-icon {
  width: 40px;
  height: 40px;
  margin: 0 auto 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  color: #2f8ff0;
  background: #fff;
  border: 1px solid #dbeafe;
}
.xu5-ra-paywall-text {
  font-size: 13px;
  color: #6b7280;
  margin-bottom: 6px;
}
.xu5-ra-paywall-price {
  font-size: 28px;
  font-weight: 700;
  color: #1f2937;
  margin: 0 0 14px;
  letter-spacing: .02em;
  line-height: 1.1;
}
.xu5-ra-paywall-price span {
  font-size: 16px;
  font-weight: 600;
  margin-right: 2px;
  color: #6b7280;
}
.xu5-ra-pay-btn {
  padding: 10px 22px;
  min-width: 180px;
  font-size: 14px;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  background: #1677ff;
  color: #fff;
  box-shadow: 0 6px 14px rgba(22, 119, 255, .22);
  transition: filter .15s ease, transform .15s ease;
}
.xu5-ra-pay-btn:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}
.xu5-ra-pay-btn:disabled {
  opacity: .6;
  cursor: not-allowed;
  transform: none;
}

/* —— 扫码 —— */
.xu5-ra-scan-step {
  text-align: center;
  margin: 14px 0 4px;
  padding: 18px 16px;
  background: #f8fafc;
  border: 1px solid #eef2f7;
  border-radius: 12px;
}
.xu5-ra-scan-title {
  font-size: 14px;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 12px;
}
.xu5-ra-qr-box {
  margin: 0 auto 10px;
  width: 216px;
  height: 216px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, .06);
}
.xu5-ra-qr-box canvas,
.xu5-ra-qr-box img {
  border-radius: 4px;
}
.xu5-ra-amount {
  font-size: 13px;
  color: #6b7280;
  margin: 4px 0 8px;
}
.xu5-ra-amount strong {
  color: #111827;
  font-size: 15px;
}
.xu5-ra-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #1677ff;
  font-size: 13px;
}
.xu5-ra-spinner {
  width: 14px;
  height: 14px;
  border: 2px solid #93c5fd;
  border-top-color: #1677ff;
  border-radius: 50%;
  animation: xu5spin 1s linear infinite;
  display: inline-block;
}
@keyframes xu5spin {
  to { transform: rotate(360deg); }
}
.xu5-ra-note {
  color: #9ca3af;
  font-size: 12px;
  margin-top: 8px;
  text-align: center;
}

/* —— 解锁后的中间段 / 标记后的公开段 —— */
.xu5-ra-paid-content {
  margin: 14px 0 4px;
  padding: 14px 14px 8px;
  background: #f7fbff;
  border: 1px solid #dbeafe;
  border-radius: 12px;
}
.xu5-ra-paid-success {
  text-align: left;
  color: #15803d;
  font-size: 12px;
  font-weight: 600;
  margin: 0 0 10px;
  padding-bottom: 8px;
  border-bottom: 1px dashed #d1fae5;
}
.xu5-ra-after-content {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed #e5e7eb;
}

@media (max-width: 480px) {
  .xu5-ra-box {
    padding: 16px 14px 14px;
    max-height: calc(100vh - 20px);
    border-radius: 12px;
  }
  .xu5-ra-title { font-size: 16px; }
  .xu5-ra-paywall-price { font-size: 24px; }
  .xu5-ra-qr-box { width: 196px; height: 196px; }
}
