.pw-page { min-height: 100vh; background: linear-gradient(180deg, #eef4ff 0%, #f5f6fa 220px, #f5f6fa 100%); }

.pw-header { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; height: 48px; padding: 0 12px; background: linear-gradient(135deg, #1787e7 0%, #0d6ecd 100%); color: #fff; box-shadow: 0 2px 12px rgba(13,110,205,.18); }

.pw-back { border: 0; background: transparent; color: #fff; font-size: 20px; width: 40px; }

.pw-title { margin: 0; font-size: 17px; font-weight: 600; }

.pw-header-ph { width: 40px; }

.pw-body { padding: 12px; max-width: 640px; margin: 0 auto; }



.pw-hero {

  background: linear-gradient(135deg, #1787e7 0%, #3b9bff 55%, #5eb0ff 100%);

  border-radius: 16px;

  padding: 16px 14px 12px;

  margin-bottom: 12px;

  color: #fff;

  box-shadow: 0 10px 24px rgba(23,135,231,.22);

}

.pw-hero-grid { display: flex; align-items: stretch; gap: 0; }

.pw-hero-stat { flex: 1; min-width: 0; }

.pw-hero-divider { width: 1px; background: rgba(255,255,255,.22); margin: 4px 10px; flex-shrink: 0; }

.pw-hero-label { font-size: 12px; opacity: .88; }

.pw-hero-value { margin-top: 6px; font-size: 28px; font-weight: 800; line-height: 1.1; letter-spacing: -.02em; }

.pw-hero-value small { font-size: 14px; font-weight: 600; margin-right: 2px; opacity: .92; }

.pw-hero-value span { font-variant-numeric: tabular-nums; }

.pw-hero-sub { margin-top: 6px; font-size: 11px; line-height: 1.35; opacity: .86; min-height: 15px; }



.pw-debt-banner { margin-top: 10px; padding: 8px 10px; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.28); border-radius: 10px; font-size: 12px; color: #fff; }

.pw-invite-row { margin-top: 12px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.18); display: flex; justify-content: space-between; align-items: center; gap: 12px; }

.pw-invite-left { display: flex; align-items: baseline; gap: 6px; min-width: 0; }

.pw-invite-label { font-size: 13px; opacity: .88; flex-shrink: 0; }

.pw-invite-count { display: inline-flex; align-items: baseline; gap: 2px; }

.pw-invite-count strong { font-size: 20px; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }

.pw-invite-unit { font-size: 13px; opacity: .88; }

.pw-invite-link { flex-shrink: 0; font-size: 13px; font-weight: 600; color: #fff; text-decoration: none; padding: 6px 10px; border-radius: 999px; background: rgba(255,255,255,.16); }



.pw-card { background: #fff; border-radius: 14px; padding: 14px; margin-bottom: 12px; box-shadow: 0 4px 16px rgba(15,23,42,.05); }

.pw-section-title { font-weight: 700; margin-bottom: 12px; font-size: 15px; color: #1f2937; }



.pw-action-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }

.pw-action-tile {

  border: 1px solid #eef2f7;

  background: #fafbfd;

  border-radius: 12px;

  padding: 12px 8px;

  display: flex;

  flex-direction: column;

  align-items: center;

  gap: 4px;

  cursor: pointer;

  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;

}

.pw-action-tile:active { transform: scale(.98); }

.pw-action-tile-primary {

  background: linear-gradient(180deg, #eef6ff 0%, #f8fbff 100%);

  border-color: #c7e0ff;

  box-shadow: inset 0 0 0 1px rgba(23,135,231,.06);

}

.pw-action-icon { font-size: 22px; line-height: 1; }

.pw-action-name { font-size: 13px; font-weight: 700; color: #111827; }

.pw-action-desc { font-size: 10px; color: #6b7280; text-align: center; line-height: 1.3; }

.pw-action-tile.is-disabled, .pw-action-tile:disabled { opacity: .45; cursor: not-allowed; transform: none; }



.pw-tip { margin-top: 10px; font-size: 12px; line-height: 1.45; }

.muted { color: #9ca3af; }



.pw-tabs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; margin-bottom: 12px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }

.pw-tabs::-webkit-scrollbar { display: none; }

.pw-tab { border: 0; background: #f3f4f6; padding: 8px 12px; border-radius: 999px; font-size: 12px; cursor: pointer; white-space: nowrap; color: #6b7280; flex-shrink: 0; }

.pw-tab.active { background: #1787e7; color: #fff; font-weight: 600; box-shadow: 0 4px 10px rgba(23,135,231,.22); }



.pw-list { font-size: 13px; }

.pw-record { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding: 12px 0; border-bottom: 1px solid #f1f5f9; }

.pw-record:last-child { border-bottom: 0; padding-bottom: 0; }

.pw-record-main { min-width: 0; flex: 1; }

.pw-record-amt { font-size: 16px; font-weight: 800; line-height: 1.2; font-variant-numeric: tabular-nums; }

.pw-record-amt.plus { color: #1787e7; }

.pw-record-amt.minus { color: #ef4444; }

.pw-record-amt.neutral { color: #111827; }

.pw-record-title { margin-top: 4px; font-size: 13px; color: #374151; font-weight: 600; }

.pw-record-meta { margin-top: 3px; font-size: 11px; color: #9ca3af; line-height: 1.4; }

.pw-record-side { flex-shrink: 0; text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }

.pw-record-time { font-size: 11px; color: #9ca3af; white-space: nowrap; }



.pw-badge { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 600; line-height: 1.4; }

.pw-badge.ok { background: #ecfdf5; color: #059669; }

.pw-badge.wait { background: #fff7ed; color: #ea580c; }

.pw-badge.info { background: #eff6ff; color: #2563eb; }

.pw-badge.gray { background: #f3f4f6; color: #6b7280; }

.pw-badge.bad { background: #fef2f2; color: #dc2626; }



.pw-empty { padding: 28px 12px; text-align: center; color: #9ca3af; font-size: 13px; }



.pw-loading, .pw-blocked { text-align: center; padding: 40px 16px; color: #666; }



.pw-modal.pw-modal-center { align-items: center; }
.pw-modal { position: fixed; inset: 0; background: rgba(15,23,42,.48); display: none; align-items: flex-end; justify-content: center; z-index: 50; padding: 12px; }

.pw-modal.show { display: flex; }

.pw-modal-box { width: 100%; max-width: 420px; background: #fff; border-radius: 18px 18px 0 0; max-height: 88vh; overflow: auto; animation: pwSlideUp .22s ease; }

.pw-modal-box-center { border-radius: 18px; margin: auto 0; max-height: calc(100vh - 24px); }

.pw-modal-hd { padding: 16px 16px 0; font-weight: 700; font-size: 17px; text-align: center; color: #111827; }

.pw-modal-bd { padding: 14px 16px; }

.pw-modal-ft { padding: 0 16px 16px; display: flex; justify-content: flex-end; gap: 8px; }

.pw-modal-ft-stack { flex-direction: column; }

.pw-btn-block { width: 100%; text-align: center; text-decoration: none; display: block; box-sizing: border-box; }



.pw-field { display: block; margin-bottom: 10px; }

.pw-field span { display: block; font-size: 12px; color: #666; margin-bottom: 4px; }

.pw-field input { width: 100%; border: 1px solid #e5e7eb; border-radius: 10px; padding: 10px 12px; font-size: 14px; box-sizing: border-box; }

.pw-field-inline { display: flex; align-items: center; gap: 8px; }

.pw-field-inline input { flex: 1; min-width: 0; }



.pw-btn { border: 1px solid #e5e7eb; background: #fff; color: #374151; padding: 10px 14px; border-radius: 10px; font-size: 14px; cursor: pointer; }

.pw-btn-primary { background: linear-gradient(135deg, #1787e7, #0d6ecd); border-color: transparent; color: #fff; font-weight: 600; }

.pw-btn-outline { background: #fff; color: #1787e7; border: 1px solid #1787e7; white-space: nowrap; flex-shrink: 0; }

.pw-btn.is-disabled, .pw-btn:disabled { opacity: .45; cursor: not-allowed; }



.pw-withdraw-hint {

  margin-bottom: 12px;

  padding: 10px 12px;

  border-radius: 12px;

  background: #eff6ff;

  border: 1px solid #dbeafe;

  font-size: 12px;

  line-height: 1.5;

  color: #1d4ed8;

}

.pw-withdraw-hint strong { color: #1787e7; font-size: 15px; }



.pw-exchange-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 14px;
}

.pw-exchange-opt {
  min-width: 88px;
  padding: 10px 12px;
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
  background: #fff;
  text-align: center;
  cursor: pointer;
  transition: border-color .15s, background .15s, box-shadow .15s;
}

.pw-exchange-opt:active { transform: scale(.98); }

.pw-exchange-opt.is-active {
  border-color: #ea580c;
  background: #fff7ed;
  box-shadow: 0 0 0 1px rgba(234, 88, 12, .15);
}

.pw-exchange-opt.is-disabled {
  opacity: .45;
  cursor: not-allowed;
  pointer-events: none;
}

.pw-exchange-opt-face {
  font-size: 16px;
  font-weight: 700;
  color: #ea580c;
  line-height: 1.2;
}

.pw-exchange-opt-pts {
  margin-top: 4px;
  font-size: 11px;
  color: #6b7280;
}

.pw-exchange-preview {

  text-align: center;

  padding: 18px 12px;

  border-radius: 14px;

  background: linear-gradient(180deg, #fff7ed 0%, #fff 100%);

  border: 1px dashed #fdba74;

}

.pw-exchange-coupon-face { font-size: 34px; font-weight: 800; color: #ea580c; line-height: 1.1; }

.pw-exchange-coupon-title { margin-top: 8px; font-size: 14px; font-weight: 600; color: #374151; }

.pw-exchange-cost { margin-top: 6px; font-size: 12px; color: #6b7280; }

.pw-exchange-note { margin-top: 12px; font-size: 12px; color: #6b7280; text-align: center; line-height: 1.5; }



.pw-success-icon {

  width: 56px; height: 56px; margin: 8px auto 0; border-radius: 50%;

  background: linear-gradient(135deg, #22c55e, #16a34a); color: #fff;

  display: flex; align-items: center; justify-content: center; font-size: 28px; font-weight: 800;

  box-shadow: 0 8px 20px rgba(34,197,94,.28);

}

.pw-success-title { margin-top: 12px; text-align: center; font-size: 20px; font-weight: 800; color: #111827; }

.pw-success-coupon { margin-top: 10px; text-align: center; font-size: 32px; font-weight: 800; color: #ea580c; }

.pw-success-name { margin-top: 6px; text-align: center; font-size: 14px; color: #374151; font-weight: 600; padding: 0 12px; }

.pw-success-meta { margin-top: 8px; text-align: center; font-size: 12px; color: #6b7280; line-height: 1.5; padding: 0 12px 4px; }



.pw-toast {

  position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%);

  background: rgba(17,24,39,.88); color: #fff; padding: 11px 16px; border-radius: 12px;

  font-size: 13px; display: none; z-index: 60; max-width: calc(100vw - 32px); text-align: center;

  box-shadow: 0 8px 24px rgba(0,0,0,.18);

}

.pw-toast.show { display: block; animation: pwFadeUp .2s ease; }



.pw-wechat-upload { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.pw-wechat-status { font-size: 12px; }

.pw-wechat-preview { margin-top: 8px; display: flex; align-items: flex-start; gap: 10px; }

.pw-wechat-preview img { width: 96px; height: 96px; object-fit: contain; border: 1px solid #e5e5e5; border-radius: 8px; background: #fafafa; }

.pw-wechat-clear { padding: 4px 10px; font-size: 12px; }



@keyframes pwSlideUp {

  from { transform: translateY(16px); opacity: .92; }

  to { transform: translateY(0); opacity: 1; }

}

@keyframes pwFadeUp {

  from { transform: translate(-50%, 8px); opacity: 0; }

  to { transform: translate(-50%, 0); opacity: 1; }

}



@media (min-width: 640px) {

  .pw-modal { align-items: center; }

  .pw-modal-box { border-radius: 18px; }

}

