/* 积分商城 · LZW 红金 + 五星红旗元素 */

.pm-page {
  min-height: 100vh;
  min-height: 100dvh;
  padding-bottom: calc(env(safe-area-inset-bottom) + 28px);
  background: linear-gradient(180deg, #f8f2f3 0%, #f5f6f8 220px, #f0f1f4 100%);
}

.pm-hero {
  position: relative;
  overflow: hidden;
  padding-bottom: 14px;
  color: #fff;
  background:
    radial-gradient(ellipse 55% 70% at 92% 8%, rgba(212, 160, 23, 0.28), transparent 55%),
    radial-gradient(ellipse 40% 50% at 0% 100%, rgba(200, 16, 46, 0.35), transparent 50%),
    linear-gradient(155deg, #7a1020 0%, #8b1a2a 52%, #8b1528 100%);
  border-radius: 0 0 22px 22px;
}
.pm-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: linear-gradient(180deg, #000 40%, transparent 100%);
  pointer-events: none;
  border-radius: inherit;
}
.pm-hero-glow {
  position: absolute;
  top: -50px;
  right: -30px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 215, 110, 0.28) 0%, transparent 70%);
  pointer-events: none;
}
.pm-hero-flag {
  position: absolute;
  top: calc(6px + env(safe-area-inset-top, 0px));
  right: -14px;
  width: 96px;
  opacity: 0.16;
  transform: rotate(8deg);
  pointer-events: none;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.2));
}
.pm-hero-flag svg {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 4px;
}
.pm-hero-star {
  position: absolute;
  top: calc(22px + env(safe-area-inset-top, 0px));
  left: 18px;
  font-size: 42px;
  line-height: 1;
  color: rgba(245, 215, 110, 0.1);
  pointer-events: none;
}

.pm-hero-nav {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: calc(10px + env(safe-area-inset-top, 0px)) 14px 8px;
}
.pm-back {
  border: 0;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  font-size: 22px;
  line-height: 1;
}
.pm-hero-title {
  flex: 1;
  min-width: 0;
}
.pm-hero-title .eyebrow {
  font-size: 10px;
  letter-spacing: 0.14em;
  font-weight: 600;
  color: rgba(232, 176, 106, 0.92);
}
.pm-hero-title .title {
  font-size: 17px;
  font-weight: 800;
  font-family: var(--app-display, sans-serif);
  line-height: 1.25;
  color: #fff;
}
.pm-nav-btn {
  flex-shrink: 0;
  border: 0;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.pm-wallet {
  position: relative;
  z-index: 2;
  margin: 0 14px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.32);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}
.pm-wallet-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.pm-wallet-label {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.78);
}
.pm-wallet-val {
  margin-top: 2px;
  font-size: 36px;
  font-weight: 800;
  line-height: 1.1;
  font-family: var(--app-display, sans-serif);
  color: #fff;
}
.pm-wallet-val small {
  font-size: 14px;
  font-weight: 700;
  margin-left: 4px;
  opacity: 0.75;
}
.pm-wallet-side {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-end;
}
.pm-wallet-side button {
  border: 0;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}
.pm-wallet-meta {
  display: flex;
  gap: 14px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 600;
}

.pm-filters {
  display: flex;
  gap: 8px;
  padding: 14px 14px 0;
}
.pm-filter {
  border: 0;
  padding: 8px 14px;
  border-radius: 999px;
  background: #fff;
  color: #666;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(122, 16, 32, 0.06);
  border: 1px solid rgba(139, 26, 42, 0.06);
}
.pm-filter.is-active {
  background: linear-gradient(135deg, #c8102e, #8b1a2a);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(200, 16, 46, 0.22);
}

.pm-tip {
  margin: 10px 14px 0;
  padding: 9px 12px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid rgba(139, 26, 42, 0.08);
  font-size: 11px;
  color: #888;
  line-height: 1.45;
}

.pm-skeleton {
  margin: 14px;
}

.pm-empty {
  margin: 20px 14px;
  padding: 36px 20px;
  text-align: center;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 16px rgba(122, 16, 32, 0.05);
}
.pm-empty-ico {
  font-size: 40px;
  margin-bottom: 10px;
}
.pm-empty p {
  margin: 0 0 14px;
  color: #999;
  font-size: 13px;
}
.pm-empty button {
  border: 0;
  padding: 10px 22px;
  border-radius: 999px;
  background: linear-gradient(135deg, #c8102e, #8b1a2a);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}

.pm-grid {
  list-style: none;
  margin: 12px 14px 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.pm-card {
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(122, 16, 32, 0.06);
  border: 1px solid rgba(139, 26, 42, 0.06);
}
.pm-card-tag {
  display: inline-block;
  margin: 8px 10px 0;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.4;
}
.pm-card-tag.qual {
  color: #8b1a2a;
  background: rgba(200, 16, 46, 0.1);
}
.pm-card-tag.merch {
  color: #5c4a00;
  background: rgba(255, 215, 0, 0.22);
}
.pm-card.is-soldout {
  opacity: 0.55;
}
.pm-card-cover {
  position: relative;
  aspect-ratio: 1;
  background: #f5f5f5;
}
.pm-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pm-card-ph {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #fdf2f4, #fde8eb);
}
.pm-card-ph svg {
  width: 32px;
  height: 32px;
  fill: #c8102e;
  opacity: 0.45;
}
.pm-card-badge {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.42);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}
.pm-card-body {
  padding: 10px 10px 12px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.pm-card-body h3 {
  margin: 0;
  font-size: 13px;
  font-weight: 800;
  color: #1c1c1c;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.pm-card-body p {
  margin: 4px 0 0;
  font-size: 10px;
  color: #aaa;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.pm-card-foot {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-top: 8px;
}
.pm-price .num {
  font-size: 17px;
  font-weight: 800;
  color: #c8102e;
}
.pm-price .unit {
  font-size: 10px;
  font-weight: 700;
  color: #c8102e;
  margin-left: 2px;
}
.pm-stock {
  font-size: 10px;
  color: #bbb;
}
.pm-card-btn {
  width: 100%;
  margin-top: 10px;
  border: 0;
  padding: 9px 0;
  border-radius: 10px;
  background: linear-gradient(135deg, #c8102e, #8b1a2a);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}
.pm-card-btn:disabled {
  background: #eceef2;
  color: #aaa;
}

.pm-test-badge {
  margin: 16px 14px 0;
  text-align: center;
  font-size: 11px;
  color: #999;
}

.pm-sheet {
  padding: 8px 20px calc(24px + env(safe-area-inset-bottom));
  text-align: center;
}
.pm-sheet-cover {
  width: 120px;
  height: 120px;
  margin: 0 auto 14px;
  border-radius: 16px;
  overflow: hidden;
  background: #f5f5f5;
}
.pm-sheet-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pm-sheet h3 {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 800;
}
.pm-sheet p {
  margin: 0;
  font-size: 13px;
  color: #999;
}
.pm-sheet-desc {
  margin-top: 8px !important;
  color: #666 !important;
  line-height: 1.5;
  font-size: 12px !important;
}
.pm-sheet-btn {
  width: 100%;
  margin-top: 20px;
  border: 0;
  padding: 14px;
  border-radius: 14px;
  background: linear-gradient(135deg, #c8102e, #8b1a2a);
  color: #fff;
  font-size: 16px;
  font-weight: 800;
}
.pm-sheet-btn:disabled {
  background: #e8e8e8;
  color: #aaa;
}

/* 兑换记录 · 积分说明（与商城同款红 Hero） */

.po-page,
.ps-page {
  padding-bottom: calc(env(safe-area-inset-bottom) + 28px);
}

.po-list {
  list-style: none;
  margin: 12px 14px 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.po-card {
  display: flex;
  gap: 12px;
  padding: 12px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 4px 16px rgba(122, 16, 32, 0.06);
  border: 1px solid rgba(139, 26, 42, 0.06);
}

.po-card-cover {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #fdf2f4, #fde8eb);
}
.po-card-cover svg {
  width: 26px;
  height: 26px;
  fill: #c8102e;
  opacity: 0.55;
}

.po-card-body {
  flex: 1;
  min-width: 0;
}
.po-card-body h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 800;
  color: #1c1c1c;
  line-height: 1.35;
}
.po-time {
  margin: 4px 0 0;
  font-size: 11px;
  color: #aaa;
}
.po-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
  gap: 8px;
}
.po-tag {
  font-size: 10px;
  font-weight: 700;
  color: #c8102e;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(200, 16, 46, 0.08);
}
.po-pts {
  font-size: 13px;
  font-weight: 800;
  color: #c8102e;
  white-space: nowrap;
}

.po-empty {
  margin-top: 20px;
}

.ps-body {
  padding: 0 0 8px;
}

.ps-section {
  margin: 14px 14px 0;
}

.ps-hd {
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 800;
  color: #1c1c1c;
}

.ps-hd-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.ps-hd-row .ps-hd {
  margin: 0;
}

.ps-more {
  font-size: 12px;
  font-weight: 700;
  color: #c8102e;
  text-decoration: none;
}

.ps-earn-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  align-items: stretch;
}

.ps-earn-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 6px 10px;
  text-align: center;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(122, 16, 32, 0.05);
  border: 1px solid rgba(139, 26, 42, 0.06);
  text-decoration: none;
  color: inherit;
}
.ps-earn-ico {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 28px;
  line-height: 1;
}
.ps-earn-ico img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  display: block;
}
.ps-earn-t {
  margin-top: 6px;
  width: 100%;
  font-size: 12px;
  font-weight: 800;
  color: #1c1c1c;
  line-height: 1.25;
}
.ps-earn-d {
  margin-top: 4px;
  width: 100%;
  font-size: 10px;
  color: #999;
  line-height: 1.35;
  min-height: 27px;
}

.ps-rules {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ps-rules li {
  display: flex;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(139, 26, 42, 0.06);
  box-shadow: 0 2px 10px rgba(122, 16, 32, 0.04);
}
.ps-rules-n {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, #c8102e, #8b1a2a);
}
.ps-rules strong {
  display: block;
  font-size: 13px;
  font-weight: 800;
  color: #1c1c1c;
  margin-bottom: 4px;
}
.ps-rules p {
  margin: 0;
  font-size: 11px;
  color: #888;
  line-height: 1.5;
}

.ps-gift-scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.ps-gift-scroll::-webkit-scrollbar {
  display: none;
}

.ps-gift-card {
  flex: 0 0 120px;
  text-decoration: none;
  color: inherit;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(139, 26, 42, 0.06);
  box-shadow: 0 4px 12px rgba(122, 16, 32, 0.05);
}

.ps-gift-cover {
  aspect-ratio: 1;
  background: #f5f5f5;
}
.ps-gift-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ps-gift-ph {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #fdf2f4, #fde8eb);
}
.ps-gift-ph svg {
  width: 28px;
  height: 28px;
  fill: #c8102e;
  opacity: 0.45;
}

.ps-gift-name {
  padding: 8px 8px 0;
  font-size: 11px;
  font-weight: 800;
  color: #1c1c1c;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ps-gift-pts {
  padding: 4px 8px 10px;
  font-size: 13px;
  font-weight: 800;
  color: #c8102e;
}
.ps-gift-pts small {
  font-size: 10px;
  font-weight: 700;
}
