/* ═══════════════════════════════════════════════════════════════
   好评机 H5 · 页面专用样式
   ═══════════════════════════════════════════════════════════════ */

/* ── 首页样式补充 ────────────────────────────────────────────── */
#page-home {
  background: linear-gradient(180deg, #FFF9F0 0%, #FFF5E6 40%, #F7F3EE 100%);
}

/* ── 文案页样式补充 ─────────────────────────────────────────── */
#page-text .text-list {
  padding: 12px 16px 100px;
}

/* ── 照片页样式补充 ─────────────────────────────────────────── */
#page-photo {
  padding-bottom: 90px;
}

/* ── 视频页样式补充 ─────────────────────────────────────────── */
#page-video .video-list {
  padding-bottom: 20px;
}

/* ── OTA页样式补充 ─────────────────────────────────────────── */
#page-ota {
  padding-bottom: 20px;
}

/* ── 等待页样式补充 ─────────────────────────────────────────── */
#page-waiting .waiting-steps {
  padding-bottom: 20px;
}

/* ── 抽奖页样式补充 ─────────────────────────────────────────── */
#page-lottery .lottery-wheel-section {
  padding: 0 16px 24px;
}

/* ═══════════════════════════════════════════════════════════════
   移动端手势优化
   ═══════════════════════════════════════════════════════════════ */

/* 禁用双击缩放 */
* {
  touch-action: manipulation;
  -webkit-touch-callout: none;
}

/* 优化触摸反馈 */
@media (hover: none) {
  .btn:active,
  .card:active,
  .home-action-card:active,
  .text-card:active,
  .photo-item:active,
  .video-card:active,
  .ota-card:active {
    transform: scale(0.97);
    opacity: 0.9;
  }
}

/* ── iOS安全区域 ────────────────────────────────────────────── */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
  .tab-bar {
    padding-bottom: calc(6px + env(safe-area-inset-bottom));
  }

  .text-bottom-bar,
  .photo-bottom-bar {
    padding-bottom: calc(12px + env(safe-area-inset-bottom));
  }
  
  .photo-preview-toolbar {
    padding-bottom: calc(12px + env(safe-area-inset-bottom));
  }
}

/* ── 动画性能优化 ────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ── 图片预览手势 ────────────────────────────────────────────── */
.photo-preview-swipe {
  touch-action: pan-y;
  user-select: none;
  position: relative;
}

/* 图片预览滑动动画 */
.photo-preview-swipe.sliding-left {
  animation: slideLeft 0.2s ease-out;
}

.photo-preview-swipe.sliding-right {
  animation: slideRight 0.2s ease-out;
}

@keyframes slideLeft {
  from { transform: translateX(30px); opacity: 0.5; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes slideRight {
  from { transform: translateX(-30px); opacity: 0.5; }
  to { transform: translateX(0); opacity: 1; }
}

/* ── 瀑布流照片网格 ─────────────────────────────────────────── */
.photo-grid {
  /* 增强的瀑布流样式 */
  column-count: 3;
  column-gap: 4px;
  padding: 4px;
}

.photo-grid .photo-item {
  /* 断开列布局，使每项独立 */
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  margin-bottom: 4px;
}

/* 不同高度的照片增加变化 */
.photo-item:nth-child(3n+1) {
  aspect-ratio: 1;
}

.photo-item:nth-child(3n+2) {
  aspect-ratio: 4/5;
}

.photo-item:nth-child(3n) {
  aspect-ratio: 3/4;
}

/* ── 下拉刷新指示器 ─────────────────────────────────────────── */
.pull-indicator {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px 0;
  gap: 8px;
  font-size: 13px;
  color: var(--text-sub);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}

.pull-indicator.show {
  opacity: 1;
}

.pull-indicator svg {
  width: 24px;
  height: 24px;
  stroke: var(--primary);
  transition: transform 0.3s;
}

.pull-indicator.pulled svg {
  transform: rotate(180deg);
}

.pull-indicator.loading svg {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ── 长按菜单样式 ────────────────────────────────────────────── */
.context-menu {
  position: fixed;
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  z-index: 1000;
  min-width: 160px;
  padding: 8px 0;
  display: none;
}

.context-menu.show {
  display: block;
  animation: fadeIn 0.15s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.context-menu-item {
  padding: 12px 20px;
  font-size: 14px;
  color: var(--text-body);
  cursor: pointer;
  transition: background 0.15s;
}

.context-menu-item:active {
  background: var(--bg);
}

.context-menu-item.danger {
  color: var(--danger);
}

/* ── 骨架屏加载 ─────────────────────────────────────────────── */
.skeleton-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 12px;
}

.skeleton-line {
  height: 14px;
  background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 4px;
  margin-bottom: 8px;
}

.skeleton-line:last-child {
  width: 60%;
  margin-bottom: 0;
}

.skeleton-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ── 虚拟列表优化 ────────────────────────────────────────────── */
.virtual-list {
  will-change: transform;
  transform: translateZ(0);
}

/* ── 页面过渡动画 ────────────────────────────────────────────── */
.page-transition-enter {
  opacity: 0;
  transform: translateX(30px);
}

.page-transition-enter-active {
  opacity: 1;
  transform: translateX(0);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.page-transition-exit {
  opacity: 1;
  transform: translateX(0);
}

.page-transition-exit-active {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* ── 移动端输入优化 ─────────────────────────────────────────── */
input, textarea {
  font-size: 16px !important; /* 防止iOS缩放 */
}

/* ── 惯性滚动优化 ───────────────────────────────────────────── */
.page {
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

/* ── 打印样式隐藏 ────────────────────────────────────────────── */
@media print {
  .tab-bar,
  .toast-container,
  .photo-preview-overlay,
  .pull-indicator {
    display: none !important;
  }
}

/* ── 触摸高亮禁用 ────────────────────────────────────────────── */
button, a, .clickable {
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

/* ── 图片预览页码指示器动画 ─────────────────────────────────── */
.photo-preview-counter {
  transition: opacity 0.2s;
}

.photo-preview-counter.changing {
  animation: counterPulse 0.3s ease;
}

@keyframes counterPulse {
  0% { opacity: 1; transform: translateX(-50%) scale(1); }
  50% { opacity: 0.5; transform: translateX(-50%) scale(1.1); }
  100% { opacity: 1; transform: translateX(-50%) scale(1); }
}

/* ═══════════════════════════════════════════════════════════════
   钱包/积分提现页面样式
   ═══════════════════════════════════════════════════════════════ */

/* ── 钱包页头部 ───────────────────────────────────────────── */
#page-wallet {
  background: linear-gradient(180deg, #FFF5F5 0%, #FFF9F0 100%);
  padding-bottom: 100px;
}

.wallet-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px 20px;
  background: linear-gradient(135deg, #FF6B6B 0%, #FF8E53 100%);
  border-radius: 0 0 24px 24px;
  box-shadow: 0 4px 20px rgba(255, 107, 107, 0.3);
}

.wallet-avatar {
  width: 56px;
  height: 56px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}

.wallet-balance-section {
  flex: 1;
}

.wallet-balance-label {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 4px;
}

.wallet-balance {
  font-size: 36px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -1px;
}

.wallet-balance-tip {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 2px;
}

/* ── 钱包操作按钮 ─────────────────────────────────────────── */
.wallet-actions {
  display: flex;
  gap: 12px;
  padding: 16px 20px;
  margin-top: -20px;
}

.wallet-action-btn {
  flex: 1;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
}

.wallet-action-btn:active {
  transform: scale(0.97);
}

.wallet-action-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.wallet-action-text {
  font-size: 13px;
  color: var(--text-body);
  font-weight: 500;
}

/* ── 钱包规则卡片 ─────────────────────────────────────────── */
.wallet-rule-card {
  margin: 16px 20px;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.wallet-rule-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-body);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.wallet-rule-item {
  font-size: 13px;
  color: var(--text-sub);
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
}

.wallet-rule-item:last-child {
  border-bottom: none;
}

/* ── 钱包统计卡片 ─────────────────────────────────────────── */
.wallet-stat-card {
  margin: 16px 20px;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.wallet-stat-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-body);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.wallet-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.wallet-stat-item {
  text-align: center;
  padding: 8px 4px;
}

.wallet-stat-value {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
}

.wallet-stat-label {
  font-size: 12px;
  color: var(--text-hint);
  margin-top: 4px;
}

/* ── 钱包信息卡片 ─────────────────────────────────────────── */
.wallet-info-card {
  margin: 16px 20px;
  background: linear-gradient(135deg, #E8F5E9 0%, #C8E6C9 100%);
  border-radius: var(--radius-lg);
  padding: 16px;
}

.wallet-info-title {
  font-size: 14px;
  font-weight: 600;
  color: #2E7D32;
  margin-bottom: 12px;
}

.wallet-info-item {
  font-size: 13px;
  color: #388E3C;
  padding: 6px 0;
}

/* ═══════════════════════════════════════════════════════════════
   提现弹窗样式
   ═══════════════════════════════════════════════════════════════ */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: none;
  align-items: flex-end;
  justify-content: center;
  animation: fadeIn 0.2s ease;
}

.modal-overlay.show {
  display: flex;
}

/* ── 提现弹窗 ─────────────────────────────────────────────── */
.withdraw-modal {
  width: 100%;
  max-width: 420px;
  background: var(--bg-card);
  border-radius: 24px 24px 0 0;
  padding: 24px;
  max-height: 90vh;
  overflow-y: auto;
  animation: slideUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.withdraw-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.withdraw-modal-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-body);
}

.withdraw-modal-close {
  width: 32px;
  height: 32px;
  background: var(--bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--text-sub);
  cursor: pointer;
}

.withdraw-balance-info {
  background: linear-gradient(135deg, #FF6B6B 0%, #FF8E53 100%);
  border-radius: var(--radius-lg);
  padding: 20px;
  text-align: center;
  margin-bottom: 20px;
}

.withdraw-balance-label {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.8);
}

.withdraw-balance-value {
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  margin: 8px 0;
}

.withdraw-balance-tip {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
}

.withdraw-input-group {
  margin-bottom: 16px;
}

.withdraw-input-group label {
  display: block;
  font-size: 13px;
  color: var(--text-sub);
  margin-bottom: 8px;
}

.withdraw-input-wrap {
  display: flex;
  align-items: center;
  background: var(--bg);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  border: 1px solid var(--border);
}

.withdraw-input-wrap input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 18px;
  font-weight: 600;
  color: var(--text-body);
  outline: none;
}

.withdraw-input-suffix {
  font-size: 14px;
  color: var(--text-sub);
  margin-left: 8px;
}

.withdraw-input-tip {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 12px;
  color: var(--text-hint);
}

.withdraw-input-tip a {
  color: var(--primary);
  text-decoration: none;
}

.withdraw-quick-btns {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.withdraw-quick-btn {
  flex: 1;
  padding: 10px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--text-body);
  cursor: pointer;
  transition: all 0.2s;
}

.withdraw-quick-btn:active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.withdraw-fee-info {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-hint);
  margin-bottom: 20px;
  padding: 10px;
  background: #FFF9E6;
  border-radius: var(--radius-sm);
}

.withdraw-agreement {
  text-align: center;
  font-size: 12px;
  color: var(--text-hint);
  margin-top: 12px;
}

.withdraw-agreement a {
  color: var(--primary);
  text-decoration: none;
}

/* ═══════════════════════════════════════════════════════════════
   提现记录弹窗样式
   ═══════════════════════════════════════════════════════════════ */

.records-modal {
  width: 100%;
  max-width: 420px;
  background: var(--bg-card);
  border-radius: 24px 24px 0 0;
  padding: 24px;
  max-height: 80vh;
  overflow-y: auto;
  animation: slideUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.records-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.records-modal-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-body);
}

.records-modal-close {
  width: 32px;
  height: 32px;
  background: var(--bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--text-sub);
  cursor: pointer;
}

.records-list {
  max-height: 400px;
  overflow-y: auto;
}

.records-empty,
.records-loading {
  text-align: center;
  padding: 40px 20px;
  font-size: 14px;
  color: var(--text-hint);
}

.record-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  background: var(--bg);
  border-radius: var(--radius-md);
  margin-bottom: 8px;
}

.record-left {
  flex: 1;
}

.record-points {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-body);
}

.record-date {
  font-size: 12px;
  color: var(--text-hint);
  margin-top: 4px;
}

.record-right {
  text-align: right;
}

.record-amount {
  font-size: 16px;
  font-weight: 600;
  color: var(--primary);
}

.record-status {
  font-size: 12px;
  margin-top: 4px;
  padding: 2px 8px;
  border-radius: 10px;
  display: inline-block;
}

.record-status.success {
  background: #E8F5E9;
  color: #2E7D32;
}

.record-status.processing {
  background: #FFF3E0;
  color: #E65100;
}

.record-status.failed {
  background: #FFEBEE;
  color: #C62828;
}

/* ═══════════════════════════════════════════════════════════════
   提现成功弹窗样式
   ═══════════════════════════════════════════════════════════════ */

.success-modal {
  width: 300px;
  background: var(--bg-card);
  border-radius: 24px;
  padding: 32px 24px;
  text-align: center;
  animation: popIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes popIn {
  from { transform: scale(0.8); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.success-icon {
  font-size: 64px;
  margin-bottom: 16px;
}

.success-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-body);
  margin-bottom: 16px;
}

.success-content {
  background: linear-gradient(135deg, #FF6B6B 0%, #FF8E53 100%);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 16px;
}

.success-amount {
  font-size: 32px;
  font-weight: 700;
  color: #fff;
}

.success-tip {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
  margin-top: 8px;
}

.success-order {
  font-size: 12px;
  color: var(--text-hint);
  margin-bottom: 20px;
}

/* ═══════════════════════════════════════════════════════════════
   充值页面样式
   ═══════════════════════════════════════════════════════════════ */

/* ── 充值页头部 ─────────────────────────────────────────── */
#page-recharge {
  background: linear-gradient(180deg, #FFF9F0 0%, #FFF5E6 40%, #F7F3EE 100%);
  padding-bottom: 90px;
}

.recharge-intro {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
  border-radius: var(--radius-lg);
  margin: 16px;
}

.recharge-intro-icon {
  font-size: 40px;
}

.recharge-intro-title {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
}

.recharge-intro-desc {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.9);
  margin-top: 4px;
}

/* ── 充值金额选择 ─────────────────────────────────────────── */
.recharge-amount-section {
  padding: 0 16px;
  margin-top: 20px;
}

.section-title {
  font-size: 14px;
  color: var(--text-sub);
  margin-bottom: 12px;
}

.recharge-amount-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.recharge-amount-item {
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 8px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
}

.recharge-amount-item:active {
  transform: scale(0.95);
}

.recharge-amount-item.active {
  border-color: var(--primary);
  background: linear-gradient(135deg, rgba(255, 107, 107, 0.1) 0%, rgba(255, 142, 83, 0.1) 100%);
}

.recharge-amount-value {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-body);
}

.recharge-amount-label {
  font-size: 12px;
  color: var(--text-hint);
}

.recharge-amount-points {
  font-size: 12px;
  color: var(--primary);
  margin-top: 4px;
}

.recharge-amount-item[data-amount="custom"] .recharge-amount-value {
  font-size: 14px;
  color: var(--text-sub);
}

/* ── 自定义金额输入 ─────────────────────────────────────────── */
.recharge-custom-input {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 16px;
}

.recharge-custom-input input {
  flex: 1;
  border: none;
  background: none;
  font-size: 16px;
  color: var(--text-body);
  outline: none;
}

.recharge-custom-suffix {
  font-size: 14px;
  color: var(--text-sub);
}

/* ── 充值按钮 ─────────────────────────────────────────── */
.recharge-action {
  padding: 20px 16px;
}

.recharge-current-balance {
  text-align: center;
  font-size: 13px;
  color: var(--text-hint);
  margin-top: 8px;
}

/* ── 二维码支付弹窗 ─────────────────────────────────────────── */
.recharge-qr-modal {
  width: 320px;
  background: var(--bg-card);
  border-radius: 24px;
  padding: 24px;
  text-align: center;
}

.recharge-qr-modal .modal-header {
  padding: 0 0 16px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
}

.recharge-qr-modal .modal-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-body);
}

.qr-amount-display {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 16px;
}

.qr-amount-label {
  font-size: 14px;
  color: var(--text-sub);
}

.qr-amount-value {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary);
}

.qr-image-container {
  width: 200px;
  height: 200px;
  margin: 0 auto 16px;
  background: #fff;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.qr-image-container img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.qr-loading {
  font-size: 14px;
  color: var(--text-hint);
}

.qr-tip {
  font-size: 13px;
  color: var(--text-hint);
  margin-bottom: 8px;
}

.qr-order-info {
  font-size: 12px;
  color: var(--text-hint);
}

/* ── 充值成功弹窗 ─────────────────────────────────────────── */
.recharge-success-modal {
  width: 300px;
  background: var(--bg-card);
  border-radius: 24px;
  padding: 32px 24px;
  text-align: center;
  animation: popIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.recharge-success-modal .success-content {
  background: linear-gradient(135deg, #4CAF50 0%, #8BC34A 100%);
}

/* ── OTA 小程序直达面板（客人端 H5，2026-09-16）─────────────────── */
.mj-mask { position: fixed; inset: 0; background: rgba(0, 0, 0, .55); z-index: 9999;
  display: flex; align-items: flex-end; justify-content: center; }
.mj-card { width: 100%; max-width: 520px; background: #fff; border-radius: 16px 16px 0 0;
  padding: 0 0 20px; animation: mjUp .22s ease-out; }
@keyframes mjUp { from { transform: translateY(24px); opacity: .6 } to { transform: none; opacity: 1 } }
.mj-head { display: flex; align-items: center; justify-content: space-between;
  padding: 16px 18px 12px; font-size: 16px; font-weight: 700; border-bottom: 1px solid #f0f0f0; }
.mj-close { background: none; border: none; font-size: 22px; line-height: 1; color: #6B7484;
  padding: 0 4px; cursor: pointer; }
.mj-body { padding: 16px 18px 0; }
.mj-tip { font-size: 14px; color: #333; line-height: 1.7; margin: 0 0 12px; }
.mj-sub { font-size: 12px; color: #6B7484; line-height: 1.7; margin: 14px 0 0; }
.mj-loading { text-align: center; color: #6B7484; font-size: 14px; padding: 24px 0; }
.mj-slot { text-align: center; padding: 8px 0; }
.mj-launch-btn { display: block; width: 100%; padding: 13px 0; border: none; border-radius: 24px;
  background: #07c160; color: #fff; font-size: 16px; font-weight: 600; }
.mj-qr { text-align: center; }
.mj-qr img { width: 200px; height: 200px; object-fit: contain; background: #fff;
  border-radius: 12px; padding: 6px; border: 1px solid #eee; }
.mj-name { display: flex; align-items: center; gap: 10px; margin-bottom: 12px;
  background: #f7f9ff; border-radius: 10px; padding: 12px 14px; }
.mj-name b { flex: 1; font-size: 16px; }
.mj-copy { background: #1677ff; color: #fff; border: none; border-radius: 16px;
  padding: 6px 14px; font-size: 13px; }
.mj-steps { margin: 0; padding-left: 20px; font-size: 13px; color: #555; line-height: 2; }
.mj-steps b { color: #1677ff; }

/* 微信「小程序链接」短链按钮（第一优先直达路径）*/
.mj-link-btn { display: block; width: 100%; box-sizing: border-box; text-align: center;
  padding: 14px 0; border-radius: 24px; background: #07c160; color: #fff;
  font-size: 16px; font-weight: 600; text-decoration: none; margin-bottom: 6px; }
.mj-link-btn:active { opacity: .85; }
.mj-link-text { font-size: 12px; font-weight: 400; color: #666; word-break: break-all; }
/* 平台卡片正版 logo */
.ota-card-img { width: 40px; height: 40px; object-fit: contain; border-radius: 8px; display: block; }

/* ── OTA 合并小程序码单图（2026-09-17）─────────────────────────────
   一张图含 4 个平台的小程序码：微信内长按 → 多码箭头切换 → 识别进对应小程序。
   ⚠️ 关键：上面的 `* { -webkit-touch-callout: none }` 会**吃掉 iOS 长按菜单**
   （长按图片不出「识别图中二维码」），所以这里必须给这些图单独放开 callout。 */
.ota-poster-card { margin: 0 0 14px; padding: 12px 12px 10px; background: #fff;
  border-radius: 14px; box-shadow: 0 2px 10px rgba(0, 0, 0, .05); }
.ota-poster-hint { font-size: 13px; color: #4b5563; line-height: 1.6; margin-bottom: 10px; }
.ota-poster-box { position: relative; width: 100%; }
.ota-poster-img { display: block; width: 100%; height: auto; border-radius: 10px;
  background: #fff; }
.ota-poster-zones { position: absolute; inset: 0; }
.ota-poster-zone { position: absolute; border-radius: 12px; }
.ota-poster-zone:active { background: rgba(255, 90, 95, .07); }
.ota-poster-foot { display: flex; align-items: center; justify-content: space-between;
  gap: 10px; margin-top: 10px; font-size: 12px; color: #6B7484; line-height: 1.5; }
.ota-poster-switch { color: #ff5a5f; text-decoration: underline; white-space: nowrap; }

/* 让「可长按识别」的图恢复系统长按菜单（pages.css 顶部全局禁用了 callout） */
.ota-poster-img,
.mj-qr img,
.mj-qr-img {
  -webkit-touch-callout: default !important;
  -webkit-user-select: auto !important;
  user-select: auto !important;
}

/* ★2026-09-21：**客人要保存的图**也必须放开长按菜单 ——
   顶部 `* { -webkit-touch-callout: none }` 会让 iOS/微信长按图片**弹不出「存储图片/保存到相册」**，
   而 H5 里客人存图**只有长按这一条路**（下载/无感下载都会被微信拦）。
   覆盖：照片页格子图、全屏预览图、照片页长按保存引导（psg）、获奖凭证保存引导（rcsg）。 */
.photo-item img,
.photo-preview-img,
#photoPreviewImg,
.photo-save-guide .psg-img,
.rc-save-guide .rcsg-img {
  -webkit-touch-callout: default !important;
  -webkit-user-select: auto !important;
  user-select: auto !important;
  pointer-events: auto !important;
}


/* ══════════════════════════════════════════════════════════════
 * ★2026-09-22 用户要求：精选照片页底部「文字提醒 + 两个按钮」
 *   （下载到相册 / 不下载图片，直接去写评价）原来是**横着排列**的，
 *   改为**从上到下**排列：提示行 → 下载到相册 → 直接去写评价 → 建议文案。
 *   说明：main.css 里 .photo-bottom-bar 是 display:flex + align-items:center（横排），
 *   这里在 pages.css（**在 main.css 之后加载**）里用同权重覆盖。
 *   .photo-tip 在原样式里有 flex:1 —— 竖排下必须置为 none，否则它会把高度吃掉。
 * ══════════════════════════════════════════════════════════════ */
.photo-bottom-bar {
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
}
.photo-bottom-bar .photo-tip { flex: none; margin-bottom: 2px; }
.photo-bottom-bar .photo-download-btn {
  width: 100%;
  justify-content: center;
}
.photo-bottom-bar .photo-hint { order: 9; margin-top: 2px; }


/* ══════════════════════════════════════════════════════════════════════════
 * ★2026-09-23 UI/配色/布局优化（第一轮 · 可量化部分）
 *   依据是实测（见 docs/待办提醒.md §70）：字号过小、部分文字对比度不达标、
 *   点按尺寸不足 44px。本层**只改表现**（颜色/字号/圆角/点按高度），
 *   不动任何结构、不动布局方向，因此不会影响既有交互逻辑。
 *   为什么写在 pages.css：它在 main.css **之后**加载，同权重即可覆盖。
 * ────────────────────────────────────────────────────────────────────────── */
:root {
  /* 主色：原 #C8974F 上白字仅 2.63:1（WCAG AA 要求 4.5:1）。
     取同色系加深的 #A0682F —— 仍是品牌金，白字对比度 4.65:1 ✓ */
  --primary: #A0682F;
  --primary-dark: #8B5A26;
  --primary-rgb: 160, 104, 47;

  /* 文字灰三档（全部 >=4.5:1）：正文 / 次要 / 提示 */
  --text-main: #1C2333;   /* 15.7:1 */
  --text-sub: #4B5563;    /*  7.6:1（原 #999 只有 2.85:1） */
  --text-hint: #6B7484;   /*  4.7:1（刚达标，用于最小号辅助文字） */

  /* 语义色统一（原来散落 6 种以上） */
  --success: #2E7D32;
  --warning: #B26A00;
  --danger: #C62828;
  --info: #1677FF;

  /* 圆角节奏：小控件 8 / 卡片 12 / 大卡 16 / 胶囊 999 */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 22px;
  --radius-full: 999px;

  /* 间距节奏 */
  --gap-sm: 8px;
  --gap-md: 12px;
  --gap-lg: 16px;
}

/* 点按尺寸下限 44px（iOS/Android 人机指南的通用最小值）——只加高度，不改宽度与布局 */
.btn,
.photo-download-btn,
.home-login-btn,
.mine-main-btn,
.ota-chip,
.tag,
.tab-item {
  min-height: 44px;
}
.tag, .ota-chip { min-height: 32px; }   /* 行内标签不需要 44px，但别小于 32px */

/* 极小号字可用于辅助位，但不低于 12px（低于此在手机上难以辨认） */
.photo-bottom-bar .photo-hint,
.ota-summary-card, .psg-tip, .mp-tip {
  font-size: 12px;
}
