/* 全域红包内容流入口组件（member.html / product.html 复用） */
.rpf-section { max-width: 1200px; margin: 0 auto; padding: 0 16px 26px; }
.rpf-section[hidden] { display: none; }

.rpf-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.rpf-title { display: flex; align-items: baseline; gap: 8px; min-width: 0; flex-wrap: nowrap; }
.rpf-lantern { font-size: 22px; line-height: 1; transform: translateY(3px); flex: none; }
.rpf-title b { font-size: 18px; letter-spacing: .5px; white-space: nowrap; color: var(--primary-dark);
  background: linear-gradient(120deg, var(--primary-dark), var(--gold)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.rpf-title small { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rpf-more { margin-left: auto; font-size: 13px; color: var(--primary); font-weight: 700; white-space: nowrap; }
.rpf-more:hover { color: var(--primary-dark); }

/* 横滑卡片流（红包雨） */
.rpf-track { display: flex; gap: 12px; overflow-x: auto; padding: 4px 2px 10px;
  scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.rpf-track::-webkit-scrollbar { display: none; }
.rpf-card { flex: 0 0 236px; scroll-snap-align: start; display: flex; flex-direction: column;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
  box-shadow: 0 2px 10px rgba(27, 67, 50, .07); transition: transform .18s, box-shadow .18s; }
.rpf-card:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(27, 67, 50, .13); }
.rpf-card.rp { border-color: #e8c9c0; }

/* 视觉区：玉绿 / 有红包朱砂渐变 */
.rpf-visual { position: relative; height: 92px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary-light)); overflow: hidden; }
.rpf-card.rp .rpf-visual { background: linear-gradient(135deg, #8c2f23, #d64b33 55%, #e8845c); }
.rpf-emo { font-size: 34px; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .25)); }
.rpf-drop { position: absolute; top: 8px; right: 8px; font-style: normal; font-size: 11px; font-weight: 700;
  color: #fff; background: rgba(184, 121, 31, .92); padding: 3px 8px; border-radius: 999px; white-space: nowrap; }
.rpf-card.rp .rpf-drop { background: linear-gradient(120deg, #b7791f, #e2b45c);
  animation: rpfShine 2.6s ease-in-out infinite; }
.rpf-drop.plain { background: rgba(27, 67, 50, .55); font-weight: 500; }
@keyframes rpfShine {
  0%, 100% { box-shadow: 0 0 0 0 rgba(226, 180, 92, .0); }
  50% { box-shadow: 0 0 0 5px rgba(226, 180, 92, .28); }
}

.rpf-body { padding: 10px 12px 8px; display: flex; flex-direction: column; gap: 5px; flex: 1; min-height: 0; }
.rpf-name { font-size: 14px; line-height: 1.4; color: var(--text); display: -webkit-box;
  -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rpf-desc { font-size: 12px; color: var(--muted); line-height: 1.5; display: -webkit-box;
  -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 18px; }
.rpf-meta { display: flex; gap: 6px; flex-wrap: wrap; font-size: 11px; color: var(--muted); margin-top: auto; }
.rpf-meta span { background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: 1px 8px; white-space: nowrap; }

/* 领取按钮 */
.rpf-claim { margin: 0 12px 12px; padding: 8px 0; border: none; border-radius: 9px; cursor: pointer;
  font-size: 13px; font-weight: 700; letter-spacing: .5px; color: #fff;
  background: linear-gradient(120deg, var(--primary-dark), var(--primary-light)); transition: opacity .15s, transform .15s; }
.rpf-card.rp .rpf-claim { background: linear-gradient(120deg, #a83226, #d64b33); }
.rpf-claim:hover { opacity: .92; transform: translateY(-1px); }
.rpf-claim.busy { opacity: .65; cursor: wait; }
.rpf-claim.done { background: var(--primary); cursor: default; pointer-events: none; }
.rpf-claim:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

.rpf-note { font-size: 11.5px; color: var(--muted); margin-top: 6px; line-height: 1.6; }

@media (max-width: 560px) {
  .rpf-section { padding: 0 12px 20px; }
  .rpf-card { flex-basis: 216px; }
  .rpf-title b { font-size: 16px; }
  .rpf-title small { display: none; }
  .rpf-head { gap: 6px; }
}
