/* 智能付费看帖 — PC 与移动端 */

.spr-article-preview {
  position: relative;
  padding-bottom: 0.5rem;
}

.spr-fade-mask {
  pointer-events: none;
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 120px;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.92) 55%,
    #fff 100%
  );
}

.spr-paywall {
  text-align: center;
  margin: 1.5rem auto 2rem;
  max-width: 520px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.spr-fade-wrap {
  margin-bottom: 0.25rem;
}

@keyframes spr-chevron-bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(6px);
  }
}

.spr-chevron {
  display: inline-block;
  color: #2b6cb0;
  font-size: 1.25rem;
  line-height: 1;
  animation: spr-chevron-bounce 1.2s ease-in-out infinite;
  will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
  .spr-chevron {
    animation: none;
  }
}

.spr-box {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.25rem 1rem 1rem;
  background: #fafbfd;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
}

.spr-main-line {
  font-size: 0.95rem;
  color: #334155;
  margin: 0 0 1rem;
  line-height: 1.6;
}

.spr-num,
.spr-price {
  color: #e53e3e;
  font-weight: 700;
}

.spr-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: 0.75rem;
}

.spr-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 120px;
  padding: 0.5rem 1.25rem;
  border-radius: 8px;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: opacity 0.15s ease;
}

.spr-btn:hover {
  opacity: 0.92;
}

.spr-btn-primary {
  background: #2b6cb0;
  color: #fff !important;
}

.spr-btn-outline {
  background: #fff;
  color: #2b6cb0 !important;
  border: 1px solid #2b6cb0;
}

.spr-btn-block {
  width: 100%;
  min-width: 0;
}

.spr-hint {
  font-size: 0.8rem;
  color: #718096;
  margin: 0;
  line-height: 1.5;
}

.spr-social {
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid #edf2f7;
}

.spr-social-line {
  font-size: 0.8rem;
  color: #a0aec0;
  margin-bottom: 0.5rem;
}

.spr-avatars {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  justify-content: center;
}

.spr-av {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #e2e8f0 center/cover no-repeat;
  border: 2px solid #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

/* 弹窗 */
.spr-modal {
  position: fixed;
  inset: 0;
  z-index: 100050;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.spr-modal.is-open {
  display: flex;
}

.spr-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
}

.spr-modal-panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 400px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

.spr-modal-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid #edf2f7;
}

.spr-modal-title {
  font-weight: 600;
  font-size: 1rem;
}

.spr-modal-x {
  border: none;
  background: none;
  font-size: 1.35rem;
  line-height: 1;
  color: #a0aec0;
  cursor: pointer;
  padding: 0 0.25rem;
}

.spr-modal-bd {
  padding: 1rem 1.25rem 1.25rem;
}

.spr-modal-tip {
  font-size: 0.9rem;
  color: #4a5568;
  margin: 0 0 0.75rem;
  text-align: center;
}

.spr-modal-price {
  text-align: center;
  margin-bottom: 1rem;
}

.spr-modal-sym {
  color: #e53e3e;
  font-size: 1rem;
  font-weight: 600;
}

.spr-modal-num {
  color: #e53e3e;
  font-size: 1.85rem;
  font-weight: 800;
}

.spr-pay-list {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
}

.spr-pay-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 0.5rem;
  border-radius: 8px;
  cursor: pointer;
  border: 1px solid transparent;
}

.spr-pay-item.is-active {
  border-color: #bee3f8;
  background: #ebf8ff;
}

.spr-pay-name {
  flex: 1;
  text-align: left;
  font-size: 0.9rem;
}

.spr-pay-radio {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid #cbd5e0;
}

.spr-pay-item.is-active .spr-pay-radio {
  border-color: #2b6cb0;
  background: radial-gradient(circle, #2b6cb0 45%, #fff 46%);
}

.spr-ico-wechat::before {
  content: '微';
  display: inline-flex;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: #07c160;
  color: #fff;
  font-size: 0.7rem;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.spr-ico-alipay::before {
  content: '支';
  display: inline-flex;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: #1677ff;
  color: #fff;
  font-size: 0.7rem;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.spr-ico-credit::before {
  content: '积';
  display: inline-flex;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: #ecc94b;
  color: #744210;
  font-size: 0.7rem;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.spr-ico-mock::before {
  content: '测';
  display: inline-flex;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: #718096;
  color: #fff;
  font-size: 0.65rem;
  align-items: center;
  justify-content: center;
}

@media (max-width: 576px) {
  .spr-paywall {
    max-width: 100%;
    margin: 1rem 0 1.5rem;
    padding: 0 0.25rem;
  }

  .spr-box {
    padding: 1rem 0.75rem;
  }

  .spr-main-line {
    font-size: 0.88rem;
  }

  .spr-actions {
    flex-direction: column;
  }

  .spr-btn {
    width: 100%;
  }

  .spr-modal-panel {
    max-width: 100%;
  }
}

/* ── 二维码区 ─────────────────────────────── */
.spr-qr-wrap {
  margin: 0.75rem auto;
  padding: 0.5rem;
  background: #fff;
  border: 1px solid #edf2f7;
  border-radius: 8px;
  display: inline-block;
}

.spr-qr-img {
  display: block;
  width: 200px;
  height: 200px;
}

.spr-qr-tip {
  font-size: 0.8rem;
  color: #a0aec0;
  margin: 0.5rem 0 0;
}

.spr-pay-countdown {
  font-size: 0.8rem;
  color: #718096;
  margin-top: 0.5rem;
}

/* ── loading ─────────────────────────────── */
.spr-spinner {
  width: 40px;
  height: 40px;
  margin: 0 auto;
  border: 3px solid #edf2f7;
  border-top-color: #2b6cb0;
  border-radius: 50%;
  animation: spr-spin 0.8s linear infinite;
}

@keyframes spr-spin {
  to { transform: rotate(360deg); }
}

/* ── 错误提示 ─────────────────────────────── */
.spr-pay-err {
  text-align: center;
  color: #e53e3e;
  font-size: 0.9rem;
  padding: 1rem 0;
}
