/* 比工房论坛红包 —— 样式（红金主题，纯 CSS 图标，无 emoji） */

/* ---------------- 发红包：输入框 ---------------- */
.bee-rp-compose {
    margin: 12px 0;
    font-size: 14px;
}

.bee-rp-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    border: 1px solid #f0c9c0;
    background: #fff5f3;
    color: #d4380d;
    border-radius: 999px;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s ease, transform .15s ease;
}
.bee-rp-toggle:hover { background: #ffe9e4; transform: translateY(-1px); }
.bee-rp-toggle.is-ready { background: #e9f7ef; border-color: #b7e4c7; color: #16794c; }
.bee-rp-toggle.is-ready .bee-rp-toggle-ico { background: linear-gradient(135deg,#52c41a,#16794c); }
.bee-rp-toggle.is-ready .bee-rp-toggle-ico::after { content: "✓"; }
.bee-rp-toggle-ico {
    width: 16px; height: 16px; border-radius: 4px;
    background: linear-gradient(135deg, #ff7a59, #d4380d);
    position: relative; flex: 0 0 16px;
}
.bee-rp-toggle-ico::after {
    content: "¥"; position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 11px; font-weight: 700;
}

.bee-rp-panel {
    margin-top: 10px;
    padding: 14px 16px;
    border: 1px solid #f3d6cf;
    border-radius: 14px;
    background: #fffafa;
}
.bee-rp-row { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.bee-rp-row label { flex: 0 0 110px; color: #6b4a3a; font-weight: 500; }
.bee-rp-row input, .bee-rp-row select {
    flex: 1; height: 38px; padding: 0 12px;
    border: 1px solid #e7c7bf; border-radius: 9px; background: #fff;
    font-size: 14px; color: #3a2a22;
}
.bee-rp-row input:focus, .bee-rp-row select:focus {
    outline: none; border-color: #ff7a59;
    box-shadow: 0 0 0 3px rgba(212,56,13,.12);
}
.bee-rp-balance { font-size: 12px; color: #a07b6c; margin-bottom: 10px; }
.bee-rp-balance b { color: #d4380d; }
.bee-rp-msg {
    margin-bottom: 10px; padding: 8px 10px; border-radius: 8px;
    font-size: 12.5px; background: #eef; color: #345;
}
.bee-rp-msg.is-err { background: #fff1f0; color: #cf1322; }
.bee-rp-hint {
    margin-bottom: 10px; font-size: 12px; color: #a07b6c; line-height: 1.5;
}
.bee-rp-actions { display: flex; gap: 10px; justify-content: flex-end; }
.bee-rp-actions button {
    height: 36px; padding: 0 16px; border-radius: 9px; cursor: pointer;
    font-size: 13.5px; font-weight: 600; border: 1px solid transparent;
}
.bee-rp-cancel { background: #f5f5f5; color: #666; border-color: #e5e5e5; }
.bee-rp-cancel:hover { background: #ececec; }
.bee-rp-submit { background: linear-gradient(135deg,#ff7a59,#d4380d); color: #fff; }
.bee-rp-submit:hover { filter: brightness(1.05); }
.bee-rp-submit:disabled { opacity: .6; cursor: default; }
.bee-rp-ready {
    margin-top: 10px; padding: 10px 14px; border-radius: 12px;
    background: #fff5f3; border: 1px dashed #f0c9c0; color: #d4380d; font-weight: 600;
}
.bee-rp-ready .bee-rp-redo { color: #d4380d; margin-left: 4px; }

/* ---------------- 发红包：弹窗 ---------------- */
.bee-rp-compose-modal {
    position: fixed; inset: 0; z-index: 9998; display: none;
    align-items: center; justify-content: center; padding: 16px;
    background: rgba(0,0,0,.5); backdrop-filter: blur(2px);
}
.bee-rp-compose-modal.is-open { display: flex; }
.bee-rp-compose-inner {
    position: relative; width: 340px; max-width: 100%; max-height: 88vh; overflow-y: auto;
    padding: 22px 20px 20px; border-radius: 18px; background: #fffafa; color: #3a2a22;
    box-shadow: 0 24px 60px -20px rgba(0,0,0,.6); animation: beeRpPop .28s ease;
}
.bee-rp-compose-close {
    position: absolute; top: 8px; right: 10px; width: 28px; height: 28px;
    border: 0; background: rgba(212,56,13,.08); color: #d4380d; border-radius: 50%;
    font-size: 18px; line-height: 1; cursor: pointer;
}
.bee-rp-compose-close:hover { background: rgba(212,56,13,.16); }
.bee-rp-compose-title { margin: 0 0 14px; font-size: 16px; font-weight: 700; color: #d4380d; }
.bee-rp-compose-modal .bee-rp-panel { margin: 0; padding: 0; border: 0; background: transparent; border-radius: 0; }

/* ---------------- 红包卡（回复内展示） ---------------- */
.bee-rp {
    margin: 14px 0 4px;
    border-radius: 16px;
    overflow: hidden;
    background: linear-gradient(135deg, #ff6a3d 0%, #d4380d 100%);
    color: #fff;
    box-shadow: 0 10px 24px -12px rgba(212,56,13,.55);
}
.bee-rp-card {
    display: flex; align-items: center; gap: 12px;
    padding: 16px 18px 14px;
}
.bee-rp-ico {
    width: 44px; height: 44px; border-radius: 12px; flex: 0 0 44px;
    background: rgba(255,255,255,.18);
    display: flex; align-items: center; justify-content: center;
    border: 1px solid rgba(255,255,255,.35);
}
.bee-rp-ico-cny { font-size: 22px; font-weight: 800; line-height: 1; }
.bee-rp-main { flex: 1; min-width: 0; }
.bee-rp-top { font-size: 15px; font-weight: 700; }
.bee-rp-sub { font-size: 12.5px; opacity: .9; margin-top: 2px; }
.bee-rp-foot {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    padding: 11px 18px;
    background: rgba(0,0,0,.12);
}
.bee-rp-meta { font-size: 12.5px; opacity: .92; }
.bee-rp-btn {
    display: inline-flex; align-items: center; justify-content: center;
    height: 36px; padding: 0 20px; border-radius: 999px;
    background: linear-gradient(135deg,#ffe08a,#f5b400);
    color: #7a3b00; font-weight: 700; font-size: 14px; cursor: pointer;
    border: 0; text-decoration: none;
    box-shadow: 0 4px 10px -3px rgba(0,0,0,.3);
    transition: transform .15s ease, filter .15s ease;
}
.bee-rp-btn:hover { transform: translateY(-1px); filter: brightness(1.04); }
.bee-rp-mine { font-size: 13px; font-weight: 600; opacity: .95; }

.bee-rp.is-done .bee-rp-foot, .bee-rp.is-expired .bee-rp-foot { opacity: .92; }
.bee-rp.is-expired { filter: saturate(.6); }
.bee-rp-tail {
    padding: 0 18px 12px; font-size: 12.5px; opacity: .95;
}
.bee-rp-tail b { font-size: 14px; }

@media (max-width: 480px) {
    .bee-rp-row { flex-direction: column; align-items: stretch; gap: 4px; }
    .bee-rp-row label { flex: none; }
    .bee-rp-card { padding: 14px; }
}

/* ---------------- 发红包：领取条件 ---------------- */
.bee-rp-conds-edit {
    margin: 4px 0 10px; padding: 10px 12px;
    border: 1px dashed #f0c9c0; border-radius: 10px; background: #fff8f6;
}
.bee-rp-conds-edit-title { font-size: 12.5px; font-weight: 600; color: #b35; margin-bottom: 6px; }
.bee-rp-cond { display: block; font-size: 13px; color: #6b4a3a; margin: 4px 0; cursor: pointer; }
.bee-rp-cond input { margin-right: 6px; vertical-align: middle; }
.bee-rp-cond select {
    height: 30px; padding: 0 8px; border: 1px solid #e7c7bf; border-radius: 7px; background: #fff; font-size: 13px;
}

/* ---------------- 红包卡：领取条件徽标 + 禁用按钮 ---------------- */
.bee-rp-conds {
    padding: 6px 18px; font-size: 12px; color: #ffe9d6;
    background: rgba(0,0,0,.14); border-top: 1px solid rgba(255,255,255,.18);
}
.bee-rp-btn-disabled {
    display: inline-flex; align-items: center; justify-content: center;
    height: 36px; padding: 0 16px; border-radius: 999px;
    background: rgba(255,255,255,.2); color: rgba(255,255,255,.7);
    font-size: 13px; font-weight: 600; border: 0; cursor: not-allowed;
}

/* ---------------- 抢/发红包：居中弹窗（统一对话框样式） ---------------- */
.bee-rp-modal {
    position: fixed; inset: 0; z-index: 9999; display: none;
    align-items: center; justify-content: center; padding: 16px;
    background: rgba(0,0,0,.55); backdrop-filter: blur(2px);
}
.bee-rp-modal.is-open { display: flex; }
.bee-rp-modal-inner {
    position: relative; width: 320px; max-width: 100%; padding: 26px 22px 22px;
    border-radius: 16px; text-align: center; color: #3a2a22; background: #fff;
    box-shadow: 0 24px 60px -20px rgba(0,0,0,.6);
    animation: beeRpPop .26s ease;
}
@keyframes beeRpPop { from { transform: scale(.9); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.bee-rp-modal-close {
    position: absolute; top: 10px; right: 12px; width: 28px; height: 28px;
    border: 0; background: #f2f2f2; color: #888; border-radius: 50%;
    font-size: 18px; line-height: 1; cursor: pointer;
}
.bee-rp-modal-close:hover { background: #e6e6e6; color: #555; }
.bee-rp-modal-ico {
    width: 56px; height: 56px; margin: 0 auto 12px; border-radius: 50%;
    background: linear-gradient(135deg,#ff7a59,#d4380d);
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 28px; font-weight: 800;
    box-shadow: 0 6px 14px -4px rgba(212,56,13,.5);
}
.bee-rp-modal-sender { font-size: 15px; font-weight: 700; margin-bottom: 16px; }

.bee-rp-result { min-height: 60px; }
.bee-rp-result-amt {
    font-size: 38px; font-weight: 800; line-height: 1.1; color: #d4380d;
    animation: beeRpAmt .4s ease;
}
.bee-rp-result-sub { font-size: 13px; color: #999; margin-top: 6px; }
@keyframes beeRpAmt { from { transform: scale(.6); } 60% { transform: scale(1.12); } to { transform: scale(1); } }

.bee-rp-err {
    display: none; margin-top: 14px; padding: 10px 12px; border-radius: 10px;
    background: #fff1f0; color: #cf1322; font-size: 13.5px; font-weight: 600;
}
.bee-rp-err.show { display: block; }

.bee-rp-modal-foot { margin-top: 18px; }
.bee-rp-modal-ok {
    display: inline-flex; align-items: center; justify-content: center;
    height: 42px; padding: 0 28px; border: 0; border-radius: 999px; cursor: pointer;
    background: linear-gradient(135deg,#ff7a59,#d4380d); color: #fff;
    font-size: 15px; font-weight: 700;
    box-shadow: 0 6px 14px -4px rgba(212,56,13,.5);
}
.bee-rp-modal-ok:hover { filter: brightness(1.05); }

/* ---------- 话题列表：红包标记徽章（列表页前端注入） ---------- */
.bee-rp-list-badge {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    height: 24px;
    padding: 0 8px;
    border-radius: 9999px;
    flex-shrink: 0;
    font-size: 12px;
    font-weight: 500;
    line-height: 1;
    color: #e11d48;
    background: #fff1f2;
    overflow: hidden;
    white-space: nowrap;
    max-width: 140px;
    cursor: default;
}
.bee-rp-list-badge .bee-rp-list-badge-txt {
    overflow: hidden;
    text-overflow: ellipsis;
}
.dark .bee-rp-list-badge,
.dark-mode .bee-rp-list-badge {
    color: #fb7185;
    background: rgba(76, 5, 25, 0.45);
}

/* 列表徽章内的红包 SVG 图标 */
.bee-rp-list-badge-ico {
    display: inline-flex;
    line-height: 0;
}
.bee-rp-list-badge-ico svg {
    width: 14px;
    height: 14px;
    display: block;
}
