/* ============================================================
   WP-AIPublisher 付费墙前台样式
   ============================================================ */

.aipub-preview {
  position: relative;
  line-height: 1.8;
  color: #333;
  overflow: hidden;
  max-height: 200px;
  -webkit-mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
}

/* ---- 付费墙遮罩 ---- */
.aipub-paywall-overlay {
  position: relative;
  margin: 24px 0;
  clear: both;
}

.aipub-paywall-card {
  background: #fff;
  border: 1.5px solid #e0e0e0;
  border-radius: 16px;
  padding: 36px 24px;
  text-align: center;
  box-shadow: 0 4px 24px rgba(0,0,0,.08);
  max-width: 480px;
  margin: 0 auto;
}

.aipub-lock-icon {
  font-size: 40px;
  margin-bottom: 12px;
}

.aipub-paywall-title {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 8px;
  color: #1a1a1a;
}

.aipub-paywall-desc {
  color: #888;
  font-size: 14px;
  margin: 0 0 18px;
}

.aipub-price-badge {
  display: inline-block;
  background: linear-gradient(135deg, #f97316, #ef4444);
  color: #fff;
  font-size: 26px;
  font-weight: 800;
  padding: 8px 28px;
  border-radius: 40px;
  margin-bottom: 24px;
}

/* ---- 支付按钮 ---- */
.aipub-pay-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.aipub-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 40px;
  font-size: 15px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s;
  text-decoration: none;
}

.aipub-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,.15);
}

.aipub-btn-wechat {
  background: #07c160;
  color: #fff;
}

.aipub-btn-alipay {
  background: #1677ff;
  color: #fff;
}

.aipub-btn-login {
  background: #6366f1;
  color: #fff;
  margin-top: 8px;
}

/* ---- 二维码区域 ---- */
.aipub-qrcode-wrap {
  margin-top: 16px;
}

.aipub-qrcode-container {
  display: inline-block;
  padding: 16px;
  background: #f9f9f9;
  border-radius: 12px;
  border: 1px solid #eee;
}

#aipub-qrcode-canvas {
  display: block;
  margin: 0 auto 8px;
}

.aipub-scan-tip {
  font-size: 13px;
  color: #666;
  margin: 0 0 6px;
}

.aipub-order-no {
  font-size: 11px;
  color: #aaa;
  margin: 0 0 8px;
}

.aipub-pay-status {
  font-size: 13px;
  color: #888;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

/* ---- Spinner ---- */
.aipub-spinner {
  width: 14px;
  height: 14px;
  border: 2px solid #e0e0e0;
  border-top-color: #07c160;
  border-radius: 50%;
  animation: aipub-spin .7s linear infinite;
  display: inline-block;
}

@keyframes aipub-spin {
  to { transform: rotate(360deg); }
}

.aipub-login-tip {
  color: #888;
  font-size: 14px;
  margin-bottom: 12px;
}

.aipub-already-paid {
  font-size: 12px;
  color: #aaa;
  margin-top: 16px;
}

.aipub-already-paid a {
  color: #6366f1;
  text-decoration: underline;
}

/* ---- 配图样式 ---- */
.aipub-figure {
  margin: 24px 0;
  text-align: center;
}

.aipub-figure img {
  max-width: 100%;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0,0,0,.08);
}
