/**
 * 饺子福袋（Emlog 版）前台样式
 * 自包含样式，不依赖任何主题 CSS 变量/框架
 * Author: 饺子 | http://YYBK.COM
 */

/* ============ 浮动福袋按钮 ============ */

.yjfbr-fab {
    position: fixed;
    z-index: 9990;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    transition: transform .18s ease, opacity .18s ease;
}
.yjfbr-fab:hover { transform: translateY(-3px); }
.yjfbr-fab .yjfbr-fab-ball {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--yjfbr-accent, #ff4d6d), color-mix(in srgb, var(--yjfbr-accent, #ff4d6d) 78%, #7b2ff7));
    background: linear-gradient(135deg, var(--yjfbr-accent, #ff4d6d), #7b2ff7);
    box-shadow: 0 8px 22px color-mix(in srgb, var(--yjfbr-accent, #ff4d6d) 38%, transparent), 0 3px 8px rgba(0,0,0,.12);
    box-shadow: 0 8px 22px rgba(255, 77, 109, .35), 0 3px 8px rgba(0,0,0,.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #fff;
    position: relative;
    animation: yjfbrFloat 3.2s ease-in-out infinite;
}
.yjfbr-fab .yjfbr-fab-text {
    background: rgba(255,255,255,.95);
    color: #1f2937;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 999px;
    box-shadow: 0 4px 14px rgba(0,0,0,.10);
    white-space: nowrap;
    letter-spacing: .5px;
}
.yjfbr-fab .yjfbr-fab-hide {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(0,0,0,.45);
    color: #fff;
    font-size: 12px;
    line-height: 20px;
    text-align: center;
    display: none;
    cursor: pointer;
}
.yjfbr-fab:hover .yjfbr-fab-hide,
.yjfbr-fab .yjfbr-fab-hide.show { display: block; }
.yjfbr-fab [data-hide="1"] .yjfbr-fab-hide { display: block; }
.yjfbr-fab.hidden { opacity: 0; transform: scale(.6); pointer-events: none; }

@keyframes yjfbrFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

@keyframes yjfbrPing {
    0% { transform: scale(1); opacity: .7; }
    80%, 100% { transform: scale(1.7); opacity: 0; }
}
.yjfbr-fab-ball .yjfbr-ping {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: var(--yjfbr-accent, #ff4d6d);
    animation: yjfbrPing 2s cubic-bezier(0, 0, .2, 1) infinite;
    z-index: -1;
}

/* ============ 浮动福袋弹窗（下拉式） ============ */

.yjfbr-pop {
    position: fixed;
    z-index: 9995;
    width: 300px;
    max-width: calc(100vw - 32px);
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 20px 50px rgba(15, 23, 42, .22);
    overflow: hidden;
    opacity: 0;
    transform: translateY(10px) scale(.97);
    transform-origin: bottom left;
    transition: .2s ease;
    pointer-events: none;
}
.yjfbr-pop.show { opacity: 1; transform: none; pointer-events: auto; }
.yjfbr-pop .phd {
    padding: 16px 18px;
    background: linear-gradient(135deg, var(--yjfbr-accent, #ff4d6d), #7b2ff7);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.yjfbr-pop .phd b { font-size: 15px; letter-spacing: .5px; }
.yjfbr-pop .phd .x { cursor: pointer; font-size: 16px; opacity: .85; width: 26px; height: 26px; display: flex; align-items: center; justify-content: center; border-radius: 50%; }
.yjfbr-pop .phd .x:hover { background: rgba(255,255,255,.18); }
.yjfbr-pop .pbd { padding: 10px; max-height: 380px; overflow: auto; }
.yjfbr-pop .pbd .item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border-radius: 12px;
    cursor: pointer;
    transition: background .12s;
}
.yjfbr-pop .pbd .item:hover { background: #f6f8fb; }
.yjfbr-pop .pbd .item .ic { width: 38px; height: 38px; border-radius: 12px; background: var(--yjfbr-accent-soft, #fff0f3); display: flex; align-items: center; justify-content: center; font-size: 19px; flex-shrink: 0; }
.yjfbr-pop .pbd .item .nm { flex: 1; min-width: 0; }
.yjfbr-pop .pbd .item .nm b { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.yjfbr-pop .pbd .item .nm small { color: #9ca3af; font-size: 12px; }
.yjfbr-pop .pbd .item .go { color: var(--yjfbr-accent, #ff4d6d); flex-shrink: 0; }
.yjfbr-pop .pbd .empty { text-align: center; color: #9ca3af; padding: 26px 10px; font-size: 13px; line-height: 1.7; }
.yjfbr-pop .pft {
    padding: 10px 16px 14px;
    text-align: center;
    border-top: 1px solid #f1f3f8;
}
.yjfbr-pop .pft a { font-size: 13px; color: var(--yjfbr-accent, #ff4d6d); text-decoration: none; font-weight: 600; }

/* ============ 通用弹窗（活动详情 / 参与抽奖） ============ */

.yjfbr-modal-wrap {
    position: fixed;
    inset: 0;
    background: rgba(17, 24, 39, .55);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.yjfbr-modal-wrap.show { display: flex; }
.yjfbr-modal {
    position: relative;
    background: #fff;
    border-radius: 22px;
    width: 100%;
    max-width: 460px;
    max-height: 88vh;
    overflow: hidden;
    box-shadow: 0 24px 70px rgba(15, 23, 42, .30);
    animation: yjfbrPop .22s cubic-bezier(.2,.8,.3,1.1);
    display: flex;
    flex-direction: column;
}
@keyframes yjfbrPop { from { transform: scale(.92) translateY(14px); opacity: 0; } to { transform: scale(1) translateY(0); opacity: 1; } }

/* 关闭按钮悬浮于 hero 右上角 */
.yjfbr-modal .mhd {
    position: absolute;
    top: 0; right: 0;
    z-index: 3;
    padding: 12px;
}
.yjfbr-modal .mhd .x {
    cursor: pointer;
    width: 32px; height: 32px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    color: rgba(255,255,255,.92);
    background: rgba(255,255,255,.18);
    font-size: 15px;
    transition: .15s;
}
.yjfbr-modal .mhd .x:hover { background: rgba(255,255,255,.32); transform: rotate(90deg); }

/* 表单类弹窗（收货信息）：头部走正常文档流、带标题 */
.yjfbr-modal-form .mhd {
    position: static;
    padding: 18px 22px;
    border-bottom: 1px solid #f0f2f7;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.yjfbr-modal-form .mhd h4 { margin: 0; font-size: 17px; color: #1f2937; }
.yjfbr-modal-form .mhd .x { color: #9ca3af; background: #f3f5f9; }
.yjfbr-modal-form .mhd .x:hover { background: #e8ecf3; color: #374151; }
.yjfbr-modal-form .mbd { padding: 20px 22px; }

.yjfbr-modal .mbd {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    flex: 1;
}
.yjfbr-modal .mft {
    padding: 14px 20px 18px;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    border-top: 1px solid #f1f3f9;
    background: #fff;
}

/* ---- 顶部渐变横幅 ---- */
.yjfbr-bag-hero {
    position: relative;
    padding: 26px 22px 22px;
    color: #fff;
    text-align: center;
    overflow: hidden;
}
.yjfbr-bag-hero.is-on {
    background: linear-gradient(135deg, var(--yjfbr-accent, #ff4d6d) 0%, #ff6d8f 45%, #8b5cf6 100%);
}
.yjfbr-bag-hero.is-off {
    background: linear-gradient(135deg, #6b7280 0%, #9ca3af 100%);
}
.yjfbr-bag-hero::before,
.yjfbr-bag-hero::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,.14);
}
.yjfbr-bag-hero::before { width: 130px; height: 130px; top: -60px; left: -40px; }
.yjfbr-bag-hero::after { width: 90px; height: 90px; bottom: -50px; right: -24px; background: rgba(255,255,255,.10); }
.yjfbr-bag-hero-ic {
    position: relative;
    width: 62px; height: 62px;
    margin: 0 auto 10px;
    border-radius: 20px;
    background: rgba(255,255,255,.22);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.35), 0 8px 18px rgba(0,0,0,.12);
    display: flex; align-items: center; justify-content: center;
    font-size: 32px;
    animation: yjfbrFloat 3.2s ease-in-out infinite;
}
.yjfbr-bag-hero-title {
    position: relative;
    margin: 0 28px 10px;
    font-size: 19px;
    font-weight: 800;
    line-height: 1.4;
    text-shadow: 0 1px 6px rgba(0,0,0,.12);
    word-break: break-all;
}
.yjfbr-bag-hero-tags {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}
.yjfbr-hero-badge {
    background: rgba(255,255,255,.22);
    border: 1px solid rgba(255,255,255,.35);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    padding: 3px 12px;
}
.yjfbr-hero-stat {
    background: rgba(0,0,0,.16);
    border-radius: 999px;
    font-size: 12px;
    padding: 3px 12px;
}

.yjfbr-bag-body { padding: 18px 20px 4px; }
.yjfbr-bag-desc {
    color: #6b7280;
    font-size: 13.5px;
    line-height: 1.7;
    margin: 0 0 14px;
    padding: 10px 12px;
    background: #f8f9fd;
    border-radius: 12px;
}

/* ---- 信息三宫格 ---- */
.yjfbr-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 18px;
}
.yjfbr-info-grid .yi {
    background: #f8f9fd;
    border: 1px solid #eef1f7;
    border-radius: 12px;
    padding: 9px 8px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}
.yjfbr-info-grid .yi .k { font-size: 11px; color: #9ca3af; white-space: nowrap; }
.yjfbr-info-grid .yi .v {
    font-size: 12.5px;
    font-weight: 700;
    color: #374151;
    line-height: 1.4;
    word-break: break-all;
}

/* ---- 奖品池 ---- */
.yjfbr-prize-title {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 9px;
}
.yjfbr-prize-title span { font-size: 14.5px; font-weight: 800; color: #1f2937; }
.yjfbr-prize-title small { font-size: 12px; color: #9ca3af; }
.yjfbr-prize-list { list-style: none; margin: 0 0 6px; padding: 0; display: grid; gap: 8px; }
.yjfbr-prize-list li {
    display: flex;
    align-items: center;
    gap: 11px;
    background: #fff;
    border: 1px solid #eef1f6;
    border-radius: 14px;
    padding: 10px 13px;
    transition: .15s;
}
.yjfbr-prize-list li:hover { border-color: var(--yjfbr-accent-soft, #ffe0e8); box-shadow: 0 6px 16px rgba(30,40,80,.07); transform: translateY(-1px); }
.yjfbr-prize-list li .ic {
    width: 40px; height: 40px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}
.yjfbr-prize-list li .nm { flex: 1; font-size: 14px; font-weight: 700; color: #1f2937; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.yjfbr-prize-list li .qt {
    font-size: 11.5px;
    color: #6b7280;
    background: #f3f5f9;
    border-radius: 999px;
    padding: 3px 10px;
    white-space: nowrap;
    flex-shrink: 0;
}

/* ---- 按钮 ---- */
.yjfbr-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: 0;
    border-radius: 999px;
    padding: 10px 22px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    background: #f3f5f9;
    color: #4b5563;
    transition: .15s;
}
.yjfbr-btn:hover { color: #1f2937; text-decoration: none; }
.yjfbr-btn.ghost { background: #f3f5f9; color: #4b5563; }
.yjfbr-btn.ghost:hover { background: #e8ecf3; }
.yjfbr-btn-primary {
    flex: 1;
    padding: 11px 22px;
    color: #fff;
    background: linear-gradient(135deg, var(--yjfbr-accent, #ff4d6d), #ff7a4d);
    box-shadow: 0 8px 20px color-mix(in srgb, var(--yjfbr-accent, #ff4d6d) 35%, transparent);
    box-shadow: 0 8px 20px rgba(255,77,109,.30);
}
.yjfbr-btn-primary:hover { color: #fff; opacity: .94; transform: translateY(-1px); }
.yjfbr-card .yjfbr-btn-primary,
.yjfbr-panel .yjfbr-btn-primary,
.yjfbr-modal-form .mft .yjfbr-btn-primary { flex: 0 0 auto; }
.yjfbr-btn:disabled { opacity: .55; cursor: not-allowed; transform: none !important; box-shadow: none; }

.yjfbr-tip {
    background: #fff8ee;
    border: 1px solid #fde9cf;
    color: #a05a00;
    font-size: 13px;
    border-radius: 12px;
    padding: 10px 14px;
    margin: 12px 0 4px;
    line-height: 1.6;
}
.yjfbr-tip.win { background: #ecfdf5; border-color: #a7f3d0; color: #047857; }

.yjfbr-badge { display: inline-block; border-radius: 999px; padding: 2px 10px; font-size: 12px; font-weight: 600; }
.yjfbr-badge.on { background: #ecfdf5; color: #059669; }
.yjfbr-badge.off { background: #f3f4f6; color: #6b7280; }
.yjfbr-badge.win { background: #fef3c7; color: #b45309; }
.yjfbr-badge.gray { background: #eef1f6; color: #6b7280; }

/* ---- 加载 / 结果 ---- */
.yjfbr-loading { text-align: center; padding: 56px 20px; color: #9ca3af; }
.yjfbr-loading p { margin: 14px 0 0; font-size: 13.5px; }
.yjfbr-spinner {
    width: 38px; height: 38px;
    border: 3px solid var(--yjfbr-accent-soft, #ffe0e8);
    border-top-color: var(--yjfbr-accent, #ff4d6d);
    border-radius: 50%;
    display: inline-block;
    animation: yjfbrSpin .8s linear infinite;
}
@keyframes yjfbrSpin { to { transform: rotate(360deg); } }

.yjfbr-result { text-align: center; padding: 40px 22px 30px; }
.yjfbr-result-rays {
    width: 96px; height: 96px;
    margin: 0 auto 16px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    position: relative;
}
.yjfbr-result.is-win .yjfbr-result-rays {
    background: radial-gradient(circle, var(--yjfbr-accent-soft, #ffe0e8) 0%, rgba(255,240,243,0) 70%);
    animation: yjfbrPulse 1.6s ease-in-out infinite;
}
.yjfbr-result.is-lose .yjfbr-result-rays {
    background: radial-gradient(circle, #f0f2f7 0%, rgba(240,242,247,0) 70%);
}
.yjfbr-result .emo { font-size: 54px; line-height: 1; animation: yjfbrFloat 2.6s ease-in-out infinite; }
.yjfbr-result .emo.is-off { animation: none; }
.yjfbr-result h3 { margin: 4px 0 8px; font-size: 19px; font-weight: 800; color: #1f2937; }
.yjfbr-result-sub { color: #9ca3af; font-size: 13.5px; margin: 0; }
.yjfbr-result-prize {
    display: inline-block;
    margin: 4px 0 6px;
    font-size: 15px;
    font-weight: 800;
    color: var(--yjfbr-accent, #ff4d6d);
    background: var(--yjfbr-accent-soft, #fff0f3);
    border-radius: 999px;
    padding: 6px 18px;
}
@keyframes yjfbrPulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.08); } }

/* ============ 实时倒计时 ============ */
.yjfbr-cd-bar {
    margin: 12px 0 2px;
    border-radius: 14px;
    padding: 11px 16px;
    font-size: 13.5px;
    color: #9a3412;
    background: linear-gradient(90deg, #fff4e8, #fff0f3);
    border: 1px solid #ffdfc4;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.yjfbr-cd-bar b.yjfbr-cd {
    font-weight: 800;
    font-size: 16px;
    color: var(--yjfbr-accent, #ff4d6d);
    font-variant-numeric: tabular-nums;
    letter-spacing: .5px;
}
.yjfbr-cd-bar.is-start { color: #1e40af; background: linear-gradient(90deg, #eef4ff, #f0f9ff); border-color: #c7dcff; }
.yjfbr-cd-bar.is-start b.yjfbr-cd { color: #2563eb; }
.yjfbr-cd-bar.is-endbar { color: #6b7280; background: #f3f5f9; border-color: #e5e9f0; }
.yjfbr-cd-bar.is-drawn { color: #047857; background: #ecfdf5; border-color: #a7f3d0; }
.yjfbr-cd.is-end { color: #9ca3af !important; }

.yjfbr-card-cd {
    color: var(--yjfbr-accent, #ff4d6d) !important;
    background: var(--yjfbr-accent-soft, #ffe0e8) !important;
    font-weight: 600;
}
.yjfbr-card-cd .yjfbr-cd { font-weight: 800; font-variant-numeric: tabular-nums; }
.yjfbr-card-cd .yjfbr-cd.is-end { color: #9ca3af; font-weight: 600; }

/* ============ 开奖结果弹窗（中奖 / 未中奖 / 参与成功） ============ */
.r2 { animation: yjfbrR2In .35s cubic-bezier(.2,.8,.3,1.05); }
@keyframes yjfbrR2In { from { opacity: 0; transform: translateY(10px) scale(.97); } to { opacity: 1; transform: none; } }

.r2-head {
    position: relative;
    overflow: hidden;
    padding: 32px 24px 24px;
    text-align: center;
    color: #fff;
}
.r2-head.r2-win { background: linear-gradient(135deg, #ff8a3d 0%, #ff4d6d 48%, #b45af5 100%); }
.r2-head.r2-lose { background: linear-gradient(135deg, #64748b 0%, #7c8db5 55%, #8ea2ce 100%); }
.r2-head.r2-ok { background: linear-gradient(135deg, var(--yjfbr-accent, #ff4d6d) 0%, #ff7eb0 100%); }
.r2-head::before, .r2-head::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, .14);
}
.r2-head::before { width: 170px; height: 170px; top: -70px; left: -50px; }
.r2-head::after { width: 120px; height: 120px; bottom: -60px; right: -30px; background: rgba(255, 255, 255, .10); }

.r2-emoji {
    position: relative;
    width: 76px;
    height: 76px;
    margin: 0 auto 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .2);
    border: 2px solid rgba(255, 255, 255, .55);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    box-shadow: 0 10px 26px rgba(0, 0, 0, .18);
    animation: yjfbrTrophy 2.4s ease-in-out infinite;
}
@keyframes yjfbrTrophy { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-6px) rotate(3deg); } }
.r2-lose .r2-emoji { animation: none; background: rgba(255,255,255,.18); }

.r2-head h3 {
    position: relative;
    margin: 0 0 4px;
    font-size: 22px;
    font-weight: 900;
    letter-spacing: 1px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, .18);
}
.r2-sub { position: relative; margin: 0; font-size: 13px; opacity: .92; }
.r2-date {
    position: relative;
    margin: 9px 0 0;
    display: inline-block;
    font-size: 12px;
    background: rgba(255, 255, 255, .2);
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 999px;
    padding: 3px 13px;
}
.r2-spark { position: absolute; font-style: normal; color: rgba(255, 255, 255, .9); z-index: 1; }
.r2-spark::before { content: '✦'; }
.r2-spark.s1 { top: 18px; left: 26px; font-size: 16px; animation: yjfbrSpark 2s ease-in-out infinite; }
.r2-spark.s2 { top: 42px; right: 30px; font-size: 13px; animation: yjfbrSpark 2.4s .5s ease-in-out infinite; }
.r2-spark.s3 { bottom: 22px; left: 42px; font-size: 11px; animation: yjfbrSpark 2.8s 1s ease-in-out infinite; }
@keyframes yjfbrSpark { 0%, 100% { opacity: .3; transform: scale(.8) rotate(0); } 50% { opacity: 1; transform: scale(1.15) rotate(20deg); } }
.r2-lose .r2-spark { display: none; }

.r2-body { padding: 18px 22px 22px; }
.r2-note {
    text-align: center;
    font-size: 13px;
    color: #6b7280;
    background: #f8fafc;
    border: 1px dashed #dbe2ec;
    border-radius: 12px;
    padding: 9px 12px;
    margin: 0 0 12px;
}
.r2-items { display: flex; flex-direction: column; gap: 10px; }
.r2-item {
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid #eef1f6;
    border-radius: 16px;
    padding: 13px 14px;
    background: linear-gradient(180deg, #fff, #fbfcff);
    box-shadow: 0 4px 14px rgba(31, 41, 55, .05);
    animation: yjfbrR2In .4s both;
}
.r2-item:nth-child(2) { animation-delay: .08s; }
.r2-item:nth-child(3) { animation-delay: .16s; }
.r2-item:nth-child(4) { animation-delay: .24s; }
.r2-ic {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex: 0 0 auto;
}
.r2-mid { flex: 1; min-width: 0; }
.r2-mid b { display: block; font-size: 15px; color: #1f2937; }
.r2-mid small { display: block; color: #9ca3af; font-size: 12px; margin-top: 2px; }
.r2-mid small.r2-desc { color: #6b7280; margin-top: 3px; }
.r2-amt { text-align: right; flex: 0 0 auto; color: var(--yjfbr-accent, #ff4d6d); }
.r2-amt b { display: block; font-size: 21px; font-weight: 900; line-height: 1.1; font-variant-numeric: tabular-nums; }
.r2-amt b.r2-amt-txt { font-size: 14px; }
.r2-amt small { font-size: 11px; color: #9ca3af; }
.r2-amt.is-ok b { color: #059669; }

.r2-status {
    margin: 12px 0 0;
    border-radius: 12px;
    padding: 10px 14px;
    font-size: 13px;
    color: #6b7280;
    background: #f6f8fb;
    border: 1px solid #eaeef5;
    line-height: 1.6;
}
.r2-status.ok { color: #047857; background: #ecfdf5; border-color: #a7f3d0; }
.r2-status.warn { color: #b45309; background: #fffbeb; border-color: #fde68a; }

.r2-losebox { text-align: center; padding: 20px 6px 8px; }
.r2-losebox p { margin: 0 0 8px; color: #4b5563; font-size: 14px; line-height: 1.7; }
.r2-cheer { color: #9ca3af !important; font-size: 13px !important; }

@media (max-width: 600px) {
    .yjfbr-fab .yjfbr-fab-ball { width: 54px; height: 54px; font-size: 24px; }
    .yjfbr-fab .yjfbr-fab-text { font-size: 11px; }
    .yjfbr-modal { max-width: 100%; border-radius: 18px; }
    .yjfbr-info-grid { grid-template-columns: 1fr; }
    .yjfbr-info-grid .yi { flex-direction: row; align-items: center; justify-content: space-between; text-align: left; }
    .yjfbr-info-grid .yi .v { text-align: right; }
}

/* ============ 福袋中心独立页（yjfbr_show.php） ============ */

.yjfbr-center-body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    color: #1f2937;
    background:
        radial-gradient(900px 340px at 85% -120px, var(--yjfbr-accent-soft, #ffe0e8) 0%, rgba(255,240,243,0) 70%),
        linear-gradient(180deg, #fafbfe 0%, #f4f6fb 100%);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}
.yjfbr-center-page { max-width: 1000px; margin: 0 auto; padding: 24px 16px 60px; }

/* 顶部导航卡 */
.yjfbr-center-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    padding: 12px 18px;
    background: rgba(255,255,255,.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,.9);
    border-radius: 18px;
    box-shadow: 0 8px 30px rgba(30,40,80,.07);
    margin-bottom: 22px;
}
.yjfbr-center-top .logo { font-size: 21px; font-weight: 800; display: flex; align-items: center; gap: 10px; letter-spacing: .5px; }
.yjfbr-center-top .logo i {
    font-style: normal;
    width: 38px; height: 38px;
    border-radius: 12px;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 20px;
    background: linear-gradient(135deg, var(--yjfbr-accent, #ff4d6d), #8b5cf6);
    box-shadow: 0 6px 14px rgba(255,77,109,.30);
}
.yjfbr-center-top .right { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.yjfbr-center-top a.back {
    color: #4b5563;
    font-size: 13.5px;
    text-decoration: none;
    font-weight: 600;
    padding: 7px 14px;
    border-radius: 999px;
    transition: .15s;
}
.yjfbr-center-top a.back:hover { background: #f3f5f9; color: var(--yjfbr-accent, #ff4d6d); }
.yjfbr-center-top a.back.cur { background: var(--yjfbr-accent-soft, #fff0f3); color: var(--yjfbr-accent, #ff4d6d); }
.yjfbr-show-avatar {
    width: 32px; height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--yjfbr-accent, #ff4d6d), #8b5cf6);
    color: #fff !important;
    display: inline-flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 14px;
    margin-right: 4px;
}
.yjfbr-center-top .uname { font-size: 14px; font-weight: 600; }
.yjfbr-top-sep { color: #dfe4ec; margin: 0 4px; }

/* 横幅 */
.yjfbr-banner {
    border-radius: 20px;
    padding: 26px 26px;
    color: #fff;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(120deg, var(--yjfbr-accent, #ff4d6d) 0%, #ff6d8f 45%, #8b5cf6 100%);
    box-shadow: 0 14px 36px rgba(255,77,109,.25);
}
.yjfbr-banner::before { content: ''; position: absolute; width: 180px; height: 180px; border-radius: 50%; background: rgba(255,255,255,.12); top: -90px; right: 60px; }
.yjfbr-banner::after { content: ''; position: absolute; width: 110px; height: 110px; border-radius: 50%; background: rgba(255,255,255,.10); bottom: -60px; right: -20px; }
.yjfbr-banner h2 { position: relative; margin: 0 0 6px; font-size: 22px; font-weight: 800; }
.yjfbr-banner p { position: relative; margin: 0; font-size: 13.5px; opacity: .9; }
.yjfbr-banner .b-emoji { position: absolute; right: 26px; top: 50%; transform: translateY(-50%); font-size: 64px; opacity: .35; }

/* 区块标题 / 网格卡片 */
.yjfbr-h2 { font-size: 17px; font-weight: 800; margin: 0 0 14px; display: flex; align-items: center; gap: 8px; color: #1f2937; }
.yjfbr-h2 small { font-weight: 400; color: #9ca3af; font-size: 12px; }
.yjfbr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; margin-bottom: 28px; }
.yjfbr-card {
    background: #fff;
    border: 1px solid #eef0f5;
    border-radius: 18px;
    padding: 18px;
    box-shadow: 0 2px 10px rgba(30,40,80,.04);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: .2s;
}
.yjfbr-card:hover { transform: translateY(-3px); box-shadow: 0 14px 32px rgba(30,40,80,.10); border-color: #f4d7df; }
.yjfbr-card .tag { position: absolute; top: 15px; right: 15px; }
.yjfbr-card h3 { font-size: 16px; font-weight: 800; margin: 0; padding-right: 74px; line-height: 1.4; }
.yjfbr-card .desc { color: #6b7280; font-size: 13px; line-height: 1.6; min-height: 40px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.yjfbr-card .meta { display: flex; flex-wrap: wrap; gap: 6px; font-size: 12px; color: #8a919e; }
.yjfbr-card .meta span { background: #f6f8fb; border-radius: 8px; padding: 4px 9px; }
.yjfbr-card .foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; }
.yjfbr-card .prize-count { font-size: 12px; color: #9ca3af; }

.yjfbr-empty {
    background: #fff;
    border: 1px dashed #dfe4ec;
    border-radius: 18px;
    text-align: center;
    color: #9ca3af;
    padding: 52px 20px;
    font-size: 14px;
}
.yjfbr-empty .e-emoji { display: block; font-size: 46px; margin-bottom: 10px; opacity: .8; }

/* 记录面板 */
.yjfbr-panel {
    background: #fff;
    border: 1px solid #eef0f5;
    border-radius: 18px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(30,40,80,.04);
}
.yjfbr-panel .hd {
    padding: 15px 18px;
    border-bottom: 1px solid #f0f2f7;
    font-weight: 800;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 9px;
}
.yjfbr-panel .hd .hd-ic {
    width: 30px; height: 30px;
    border-radius: 10px;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 16px;
    background: var(--yjfbr-accent-soft, #fff0f3);
}
.yjfbr-panel table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.yjfbr-panel th { text-align: left; padding: 11px 18px; color: #8a919e; font-weight: 600; background: #fafbfd; border-bottom: 1px solid #f0f2f7; font-size: 12.5px; }
.yjfbr-panel td { padding: 13px 18px; border-bottom: 1px solid #f5f6fa; color: #374151; }
.yjfbr-panel tbody tr:last-child td { border-bottom: 0; }
.yjfbr-panel tbody tr { transition: background .12s; }
.yjfbr-panel tbody tr:hover { background: #fafbfe; }
.yjfbr-panel .panel-empty { padding: 38px 20px; text-align: center; color: #b4bccb; font-size: 13.5px; }
.yjfbr-panel .panel-empty .pe-emoji { display: block; font-size: 40px; margin-bottom: 8px; opacity: .75; }
.yjfbr-center-foot { text-align: center; color: #b4bccb; font-size: 12px; margin-top: 26px; letter-spacing: .5px; }

/* 表单（收货信息） */
.yjfbr-form label { display: block; font-size: 13px; color: #4b5563; margin: 0 0 6px; font-weight: 600; }
.yjfbr-form input, .yjfbr-form textarea {
    width: 100%;
    border: 1px solid #dfe4ec;
    border-radius: 12px;
    padding: 10px 13px;
    font-size: 14px;
    box-sizing: border-box;
    background: #fff;
    color: #1f2937;
    transition: .15s;
}
.yjfbr-form input:focus, .yjfbr-form textarea:focus { outline: none; border-color: var(--yjfbr-accent, #ff4d6d); box-shadow: 0 0 0 3px var(--yjfbr-accent-soft, #ffe0e8); }
.yjfbr-form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.yjfbr-form .field { margin-bottom: 13px; }
.yjfbr-msg { display: none; padding: 10px 14px; border-radius: 12px; font-size: 13px; margin-bottom: 12px; }
.yjfbr-msg.show { display: block; }
.yjfbr-msg.ok { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }
.yjfbr-msg.err { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }

@media (max-width: 600px) {
    .yjfbr-panel table { font-size: 12.5px; }
    .yjfbr-panel th, .yjfbr-panel td { padding: 10px 12px; }
    .yjfbr-form .row2 { grid-template-columns: 1fr; }
    .yjfbr-banner { padding: 22px 18px; }
    .yjfbr-banner .b-emoji { font-size: 48px; right: 12px; }
}