.toast-container { position: fixed; top: 24px; left: 50%; transform: translateX(-50%); z-index: 9999; display: flex; flex-direction: column; gap: 12px; pointer-events: none; }
.toast-item { display: flex; align-items: center; gap: 12px; padding: 14px 24px; border-radius: 999px; box-shadow: 0 8px 32px rgba(0,0,0,0.12); min-width: 200px; pointer-events: auto; animation: toastIn 0.3s ease-out; backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }
.toast-success { background: rgba(34, 197, 94, 0.9); color: white; }
.toast-error { background: rgba(239, 68, 68, 0.9); color: white; }
.toast-info { background: rgba(59, 130, 246, 0.9); color: white; }
.toast-item.hide { animation: toastOut 0.3s ease-out forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes toastOut { from { opacity: 1; transform: translateY(0); } to { opacity: 0; transform: translateY(-20px); } }
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.5); backdrop-filter: blur(4px); z-index: 9998; display: flex; align-items: center; justify-content: center; }
.modal-box { background: white; border-radius: 16px; padding: 32px; max-width: 400px; width: 90%; box-shadow: 0 20px 60px rgba(0,0,0,0.3); animation: modalIn 0.2s ease-out; text-align: center; }
@keyframes modalIn { from { opacity: 0; transform: scale(0.9); } to { opacity: 1; transform: scale(1); } }

/* ========= 微信扫码登录容器（login.html 和 header.html 弹窗共用） ========= */
.mock-qr { cursor: pointer; transition: transform 0.2s; }
.mock-qr:hover { transform: scale(1.02); }
.mock-qr:active { transform: scale(0.98); }
.wx-iframe-container { width: 300px; height: auto; min-height: 380px; margin: 0 auto; overflow: visible; }
.wx-iframe-container iframe { border: none; width: 100%; height: 380px; display: block; overflow: visible; }

/* ========= 积分变化飞入 Toast ========= */
.point-toast-fly {
    position: fixed; z-index: 9999; font-weight: bold; font-size: 16px;
    padding: 10px 20px; border-radius: 999px; pointer-events: none;
    transition: transform 0.8s cubic-bezier(0.5, -0.3, 0.5, 1.5), opacity 0.8s ease-out;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15); color: white;
    display: flex; align-items: center; gap: 6px; white-space: nowrap;
}
.point-toast-fly.positive { background: linear-gradient(135deg, #22c55e, #16a34a); }
.point-toast-fly.negative { background: linear-gradient(135deg, #ef4444, #dc2626); }

/* ========= 铃铛抖动 ========= */
@keyframes bellShake {
    0%, 100% { transform: rotate(0); }
    20% { transform: rotate(-15deg); }
    40% { transform: rotate(12deg); }
    60% { transform: rotate(-8deg); }
    80% { transform: rotate(5deg); }
}
.bell-shake { animation: bellShake 0.6s ease-in-out; transform-origin: top center; }

/* ========= 会员徽章 ========= */
.badge-normal {
    display: inline-flex; align-items: center; gap: 2px;
    padding: 2px 8px; font-size: 10px; font-weight: 500;
    border-radius: 999px; color: #6b7280;
    background: #f3f4f6; border: 1px solid #e5e7eb;
    line-height: 1.4;
}
.badge-vip {
    display: inline-flex; align-items: center; gap: 2px;
    padding: 2px 8px; font-size: 10px; font-weight: 600;
    border-radius: 999px; color: white;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    box-shadow: 0 0 8px rgba(251, 191, 36, 0.5), 0 2px 4px rgba(0,0,0,0.1);
    line-height: 1.4;
}
.badge-vip .fa-crown { font-size: 9px; }

/* ========= 会员钻石图标特效 ========= */
.member-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 20px; /* 与铃铛大小匹配 */
    width: 20px;
    height: 20px;
}

/* 普通会员：灰色、半透明 */
.member-icon.normal {
    color: #d1d5db; /* Tailwind gray-300 */
    opacity: 0.6;
    filter: grayscale(80%);
}

/* 高级会员：金色、高亮 */
.member-icon.vip {
    color: #fbbf24; /* Tailwind amber-400 */
    background: linear-gradient(135deg, #fde047, #f59e0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 4px rgba(251, 191, 36, 0.8));
}

/* 高级会员光环呼吸动画 */
.member-icon.vip::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(251, 191, 36, 0.4) 0%, rgba(251, 191, 36, 0) 70%);
    animation: diamondPulse 2s ease-in-out infinite;
    z-index: -1;
}

/* 高级会员流光效果 */
.member-icon.vip::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.8),
        transparent
    );
    transform: skewX(-20deg);
    animation: diamondShine 2.5s infinite;
    pointer-events: none;
}

@keyframes diamondPulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.5;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0;
    }
}

@keyframes diamondShine {
    0% {
        left: -100%;
    }
    60%, 100% {
        left: 200%;
    }
}

/* 鼠标悬停时增加动效 */
.member-icon.vip:hover {
    animation: diamondFloat 0.5s ease-in-out;
}

@keyframes diamondFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

/* ========= 铃铛下拉面板 ========= */
.bell-dropdown { width: 20rem; max-height: 24rem; overflow-y: auto; }
.bell-record-item { display: flex; gap: 12px; padding: 12px 16px; border-bottom: 1px solid #f3f4f6; align-items: flex-start; }
.bell-record-item:hover { background: #f9fafb; }
.bell-record-icon { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.bell-record-icon.positive { background: #dcfce7; color: #16a34a; }
.bell-record-icon.negative { background: #fee2e2; color: #dc2626; }
.bell-record-point { font-weight: 600; font-size: 13px; }
.bell-record-point.positive { color: #16a34a; }
.bell-record-point.negative { color: #dc2626; }
.bell-record-time { font-size: 11px; color: #9ca3af; margin-top: 2px; }

/* ========= 未登录引导提示 ========= */
.login-hint { 
    font-size: 11px; 
    color: #9ca3af;
    animation: loginHintPulse 2s ease-in-out infinite;
}

@keyframes loginHintPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(251, 146, 60, 0.4); }
    50% { box-shadow: 0 0 0 6px rgba(251, 146, 60, 0); }
}
