/* 红包区域样式 */
.rp-panel {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.rp-header {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: #fff;
    padding: 12px 15px;
    display: flex;
    align-items: center;
    gap: 15px;
}
.rp-header .rp-title {
    font-size: 14px;
    font-weight: bold;
}
.rp-header .rp-countdown {
    font-size: 13px;
    color: #ffd700;
}
.rp-body {
    padding: 15px;
    background: #fafafa;
}
.hb-container {
    display: flex;
    gap: 12px;
}
.hb-card {
    position: relative;
    width: 85px;
    height: 115px;
    cursor: pointer;
}
.hb-body {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 95px;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    border-radius: 10px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.15);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 6px;
    transition: all 0.3s;
}
.hb-body:hover { transform: translateY(-3px); box-shadow: 0 6px 15px rgba(0,0,0,0.2); }
.hb-flap {
    position: absolute;
    top: 15px;
    width: 100%;
    height: 48px;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    border-radius: 0 0 48px 48px;
    z-index: 2;
    transition: all 0.4s;
}
.hb-btn {
    position: absolute;
    top: 45px;
    left: 50%;
    transform: translateX(-50%);
    width: 32px;
    height: 32px;
    background: radial-gradient(circle at 30% 30%, #ffe066, #f1c40f);
    border: 2px solid #d4ac0d;
    border-radius: 50%;
    z-index: 3;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 14px;
    font-weight: bold;
    color: #5a4a00;
    transition: all 0.3s;
}
.hb-info {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: all 0.4s;
    z-index: 1;
}
.hb-card.is-open .hb-flap,
.hb-card.is-taken .hb-flap { transform: translateY(-45px) scaleY(0.3); opacity: 0; }
.hb-card.is-open .hb-btn,
.hb-card.is-taken .hb-btn { transform: translateX(-50%) scale(0); opacity: 0; }
.hb-card.is-open .hb-info,
.hb-card.is-taken .hb-info { opacity: 1; }
.hb-card.is-open .hb-info { color: #ffd700; text-shadow: 0 1px 3px rgba(0,0,0,0.5); }
.hb-card.is-taken .hb-info { color: #fff; }
.hb-card.is-taken { opacity: 0.7; cursor: default; }
.hb-card.is-taken .hb-body:hover { transform: none; }
@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08); }
}
.hb-card.is-opening { animation: heartbeat 0.3s ease-in-out; }
.rp-records {
    background: #fff;
    border-radius: 6px;
    border: 1px solid #eee;
    max-height: 120px;
    overflow-y: auto;
}
.rp-records-title {
    padding: 8px 12px;
    font-size: 12px;
    font-weight: bold;
    color: #333;
    border-bottom: 1px solid #eee;
    background: #f9f9f9;
}
.rp-record-item {
    padding: 6px 12px;
    font-size: 11px;
    color: #666;
    border-bottom: 1px solid #f5f5f5;
    display: flex;
    justify-content: space-between;
}
.rp-record-item.is-me { background: #fff5f5; color: #e74c3c; }
.rp-record-item .rp-amount { color: #e74c3c; font-weight: bold; }
.rp-waiting {
    text-align: center;
    padding: 0;
    color: #999;
}
.rp-waiting .rp-countdown-big {
    font-size: 48px;
    color: #e74c3c;
    font-weight: bold;
    margin: 10px 0;
}
.rp-waiting .rp-tip {
    display: inline-block;
    margin-top: 6px;
    padding: 6px 14px;
    background: #fff8e1;
    border: 1px dashed #ffb400;
    border-radius: 20px;
    color: #c0392b;
    font-size: 13px;
}
.rp-waiting .rp-tip b { color: #e74c3c; font-weight: bold; }
#rp-toast {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.8);
    color: #fff;
    padding: 10px 25px;
    border-radius: 25px;
    font-size: 13px;
    z-index: 10001;
    display: none;
}
