/* 充值弹窗样式 */

.recharge-modal-body {
  padding: var(--spacing-lg);
}

/* 金额选择区域 */
.recharge-amount-section {
  margin-bottom: var(--spacing-lg);
}

.recharge-amount-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: var(--spacing-md);
}

.recharge-options-error {
  padding: var(--spacing-lg);
  text-align: center;
  color: #ff4d4f;
  font-size: 14px;
  background: #fff2f0;
  border-radius: var(--radius-md);
}

.recharge-options-loading {
  padding: var(--spacing-lg);
  text-align: center;
  color: var(--text-secondary);
  font-size: 14px;
}

.recharge-amount-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--spacing-md);
}

.recharge-amount-card {
  position: relative;
  padding: var(--spacing-md);
  border: 2px solid var(--border-light);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s ease;
  background: var(--bg-primary);
}

.recharge-amount-card:hover {
  border-color: var(--primary);
}

.recharge-amount-card.selected {
  border-color: var(--primary);
  background: var(--primary-light);
}

.recharge-amount-card.skeleton {
  cursor: default;
  border-color: var(--border-light);
  background: var(--bg-secondary);
}

.recharge-amount-card.skeleton .skeleton-price {
  width: 60px;
  height: 22px;
  background: var(--border-light);
  border-radius: 4px;
  margin-bottom: 8px;
  animation: recharge-skeleton-pulse 1.5s ease-in-out infinite;
}

.recharge-amount-card.skeleton .skeleton-points {
  width: 80px;
  height: 16px;
  background: var(--border-light);
  border-radius: 4px;
  animation: recharge-skeleton-pulse 1.5s ease-in-out infinite;
}

.recharge-amount-card.skeleton .skeleton-validity {
  width: 60px;
  height: 12px;
  background: var(--border-light);
  border-radius: 4px;
  margin-top: 4px;
  animation: recharge-skeleton-pulse 1.5s ease-in-out infinite;
}

@keyframes recharge-skeleton-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.recharge-amount-card .price {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
}

.recharge-amount-card .points {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 4px;
}

.recharge-amount-card .validity {
  font-size: 11px;
  color: #ff6b6b;
  margin-top: 2px;
  font-weight: 500;
}

.recharge-amount-card .tag {
  position: absolute;
  top: -1px;
  right: -1px;
  background: linear-gradient(135deg, #ff6b6b, #ee5a24);
  color: white;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 0 var(--radius-md) 0 var(--radius-md);
}

/* 二维码区域 */
.recharge-qrcode-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 8px 0 0;
}

.recharge-qrcode-wrapper {
  position: relative;
  padding: var(--spacing-lg);
  background: white;
  border-radius: var(--radius-md);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.recharge-qrcode-wrapper img {
  display: block;
  width: 200px;
  height: 200px;
}

.recharge-qrcode-wrapper.expired img {
  filter: grayscale(100%) opacity(0.3);
}

.recharge-qrcode-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-md);
  background: rgba(255, 255, 255, 0.85);
  border-radius: var(--radius-md);
}

.recharge-qrcode-overlay-text {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
}

.recharge-refresh-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border-light);
  background: white;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.recharge-refresh-btn:hover {
  background: var(--bg-secondary);
  transform: scale(1.05);
}

.recharge-qrcode-tip {
  font-size: 14px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

/* 倒计时 */
.recharge-qrcode-countdown {
  font-size: 13px;
  color: var(--text-secondary);
  text-align: center;
}

.recharge-qrcode-countdown span {
  color: #ff6b6b;
  font-weight: 600;
  font-family: monospace;
}

/* 二维码下方操作按钮 */
.recharge-qrcode-actions {
  display: flex;
  flex-direction: row;
  gap: var(--spacing-md);
  width: 100%;
}

.recharge-qrcode-actions .btn {
  flex: 1;
}

.recharge-qrcode-actions .btn.btn-ghost {
  border: 1px solid var(--border-light);
  background: var(--bg-primary);
}

/* 成功状态 */
.recharge-success-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--spacing-xl) 0;
  text-align: center;
}

.recharge-success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, #36b26a, #18a08a);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--spacing-md);
  color: #fff;
}

.recharge-success-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--spacing-sm);
}

.recharge-success-desc {
  font-size: 14px;
  color: var(--text-secondary);
}

/* 错误/超时状态 */
.recharge-error-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--spacing-xl) 0;
  text-align: center;
}

.recharge-error-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(255, 107, 107, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--spacing-md);
}

.recharge-error-title {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: var(--spacing-sm);
}

.recharge-error-desc {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: var(--spacing-lg);
}

/* 底部按钮区 */
.recharge-modal-footer {
  display: flex;
  gap: var(--spacing-md);
  padding-top: var(--spacing-lg);
  border-top: 1px solid var(--border-light);
}

.recharge-modal-footer .btn {
  flex: 1;
}

.recharge-modal-footer .btn.btn-ghost {
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
}

/* 订单信息 */
.recharge-order-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--spacing-md) var(--spacing-lg);
  background: #fff8f5;
  border: 1px solid #ffe4d9;
  border-radius: var(--radius-md);
  margin-bottom: var(--spacing-lg);
}

.recharge-order-info .label {
  font-size: 14px;
  color: var(--text-secondary);
}

.recharge-order-info .value {
  font-size: 22px;
  font-weight: 700;
  color: #ff4d4f;
}

.recharge-order-info .value.placeholder {
  font-size: 22px;
  font-weight: 400;
  color: var(--text-secondary);
}
