/* ============================================================
   Rouhen 悬浮推广弹窗 - 样式表  v1.0.1
   适配 B2 主题深色风格
   ============================================================ */
.rouhen-float-promo {
    position: fixed !important;
    left: 24px !important;
    bottom: 24px !important;
    width: 280px !important;
    height: 380px !important;
    z-index: 999999 !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(-40px) translateY(20px);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.rouhen-float-promo.rfp-ready {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: translateX(0) translateY(0) !important;
}
.rfp-close-btn {
    position: absolute; top: -10px; right: -10px; width: 30px; height: 30px;
    border: none !important; border-radius: 50% !important;
    background: linear-gradient(135deg, #ff6b6b, #ee5a6f) !important;
    color: #fff !important; cursor: pointer; display: flex !important;
    align-items: center; justify-content: center; z-index: 100;
    box-shadow: 0 4px 15px rgba(238, 90, 111, 0.5);
    transition: all 0.3s ease; padding: 0 !important; margin: 0 !important; line-height: 1;
}
.rfp-close-btn:hover { transform: rotate(90deg) scale(1.1); box-shadow: 0 6px 20px rgba(238, 90, 111, 0.7); }
.rfp-close-btn svg { width: 14px !important; height: 14px !important; fill: none !important; stroke: currentColor !important; }
.rfp-indicators { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; z-index: 50; }
.rfp-dot { width: 20px; height: 4px; border-radius: 2px; background: rgba(255,255,255,0.35); cursor: pointer; transition: all 0.3s ease; backdrop-filter: blur(4px); }
.rfp-dot.active { background: rgba(255,255,255,0.95); width: 32px; box-shadow: 0 0 10px rgba(255,255,255,0.5); }
.rfp-dot:hover { background: rgba(255,255,255,0.7); }
.rfp-carousel { position: relative; width: 100%; height: 100%; border-radius: 18px; overflow: visible; }
.rfp-card { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; visibility: hidden; transform: scale(0.9) rotateY(-15deg); transform-origin: left center; transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1); filter: blur(2px); margin: 0 !important; padding: 0 !important; }
.rfp-card.active-card { opacity: 1; visibility: visible; transform: scale(1) rotateY(0); filter: blur(0); z-index: 2; }
.rfp-card-link { display: block !important; width: 100% !important; height: 100% !important; text-decoration: none !important; color: inherit !important; border: none !important; outline: none !important; background: transparent !important; }
.rfp-card-inner { width: 100%; height: 100%; border-radius: 18px !important; overflow: hidden; background: #1a1a1a; box-shadow: 0 20px 60px rgba(0,0,0,0.4), 0 0 0 1px rgba(255,255,255,0.08) inset, 0 8px 32px rgba(0,0,0,0.3); position: relative; }
.rfp-card.active-card .rfp-card-inner { transition: all 0.4s ease; }
.rfp-card.active-card .rfp-card-link:hover .rfp-card-inner { transform: translateY(-4px); box-shadow: 0 30px 80px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.1) inset, 0 12px 40px rgba(0,0,0,0.4); }
.rfp-image-slider { position: relative; width: 100%; height: calc(100% - 68px); overflow: hidden; }
.rfp-slide { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; visibility: hidden; transform: scale(1.1); transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1); display: flex; align-items: center; justify-content: center; background-size: cover !important; background-position: center center !important; background-repeat: no-repeat !important; }
.rfp-slide::before { content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.rfp-card-app .rfp-slide::before { background: linear-gradient(160deg, rgba(102,126,234,0.55) 0%, rgba(118,75,162,0.75) 60%, rgba(19,19,26,0.92) 100%); }
.rfp-card-vip .rfp-slide::before { background: linear-gradient(160deg, rgba(250,173,20,0.35) 0%, rgba(212,136,6,0.55) 50%, rgba(26,19,9,0.9) 100%); }
.rfp-slide.active-slide { opacity: 1; visibility: visible; transform: scale(1); }
.rfp-slide-content { position: relative; z-index: 2; text-align: center; padding: 24px; color: #fff; text-shadow: 0 2px 12px rgba(0,0,0,0.45); }
.rfp-slide-content.rfp-slide-dark { color: #2d2d2d; text-shadow: none; }
.rfp-app-icon { width: 56px; height: 56px; margin: 0 auto 16px; background: rgba(255,255,255,0.2); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-radius: 16px; display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 24px rgba(0,0,0,0.15); border: 1px solid rgba(255,255,255,0.25); }
.rfp-app-icon svg { width: 28px !important; height: 28px !important; color: #fff !important; fill: none !important; stroke: currentColor !important; }
.rfp-vip-badge { display: inline-flex; align-items: center; gap: 6px; background: linear-gradient(135deg, #fff 0%, #ffe8c4 100%); color: #d48806 !important; padding: 6px 14px; border-radius: 20px; font-weight: 800; font-size: 14px; margin-bottom: 16px; box-shadow: 0 4px 15px rgba(212,136,6,0.3); }
.rfp-vip-badge svg { width: 16px !important; height: 16px !important; fill: #faad14 !important; color: #faad14 !important; }
.rfp-vip-badge span { letter-spacing: 1px; color: #d48806 !important; }
.rfp-vip-feature { width: 56px; height: 56px; margin: 0 auto 16px; background: rgba(255,255,255,0.3); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 24px rgba(0,0,0,0.1); border: 2px solid rgba(255,255,255,0.5); }
.rfp-vip-feature svg { width: 26px !important; height: 26px !important; fill: none !important; stroke: currentColor !important; }
.rfp-slide-content h3 { margin: 0 0 8px !important; padding: 0 !important; font-size: 22px !important; font-weight: 700 !important; letter-spacing: 0.5px; line-height: 1.3 !important; color: inherit !important; }
.rfp-slide-content p { margin: 0 !important; padding: 0 !important; font-size: 14px !important; opacity: 0.9; font-weight: 400; line-height: 1.5 !important; color: inherit !important; }
.rfp-slide-content.rfp-slide-dark p { opacity: 0.75; }
.rfp-mini-dots { position: absolute; bottom: 80px; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; z-index: 10; }
.rfp-mini-dot { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,0.4); transition: all 0.3s ease; backdrop-filter: blur(2px); }
.rfp-mini-dot.active { width: 18px; border-radius: 3px; background: rgba(255,255,255,0.95); box-shadow: 0 0 8px rgba(255,255,255,0.5); }
.rfp-cta-bar { position: absolute; bottom: 0; left: 0; right: 0; height: 68px; background: linear-gradient(180deg, #1e1e2e 0%, #13131a 100%); border-top: 1px solid rgba(255,255,255,0.06); padding: 0 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; box-sizing: border-box; }
.rfp-cta-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.rfp-cta-title { font-size: 15px !important; font-weight: 700 !important; color: #ffffff !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.3 !important; margin: 0 !important; padding: 0 !important; }
.rfp-cta-subtitle { font-size: 12px !important; color: rgba(255,255,255,0.5) !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.3 !important; margin: 0 !important; padding: 0 !important; }
.rfp-cta-btn { display: inline-flex; align-items: center; gap: 5px; padding: 8px 18px !important; border-radius: 10px !important; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important; color: #fff !important; font-size: 14px !important; font-weight: 600 !important; white-space: nowrap; box-shadow: 0 4px 15px rgba(102,126,234,0.4); transition: all 0.3s ease; flex-shrink: 0; text-decoration: none !important; line-height: 1 !important; margin: 0 !important; border: none !important; }
.rfp-cta-btn svg { width: 16px !important; height: 16px !important; fill: none !important; stroke: currentColor !important; }
.rfp-card-link:hover .rfp-cta-btn { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(102,126,234,0.5); }
.rfp-cta-vip { background: linear-gradient(180deg, #2a1f10 0%, #1a1309 100%) !important; border-top: 1px solid rgba(250,173,20,0.1) !important; }
.rfp-cta-btn-vip { background: linear-gradient(135deg, #faad14 0%, #d48806 100%) !important; color: #2d1f00 !important; box-shadow: 0 4px 15px rgba(250,173,20,0.4); }
.rfp-card-link:hover .rfp-cta-btn-vip { box-shadow: 0 6px 20px rgba(250,173,20,0.5); }
@media screen and (max-width: 768px) { html body .rouhen-float-promo, html body #rouhen-float-promo { display: none !important; width: 0 !important; height: 0 !important; opacity: 0 !important; visibility: hidden !important; pointer-events: none !important; position: absolute !important; left: -99999px !important; overflow: hidden !important; } }
@media screen and (orientation: portrait) and (max-width: 900px) { html body .rouhen-float-promo, html body #rouhen-float-promo { display: none !important; } }
@media (hover: none) and (pointer: coarse) and (max-width: 1024px) { html body .rouhen-float-promo, html body #rouhen-float-promo { display: none !important; } }
@media screen and (max-width: 820px) { html body .rouhen-float-promo, html body #rouhen-float-promo { display: none !important; } }
@media screen and (min-width: 821px) and (max-width: 1024px) { .rouhen-float-promo { width: 240px !important; height: 340px !important; left: 16px !important; bottom: 16px !important; } .rfp-slide-content h3 { font-size: 18px !important; } .rfp-slide-content p { font-size: 12px !important; } .rfp-cta-title { font-size: 13px !important; } .rfp-cta-subtitle { font-size: 11px !important; } }
@keyframes rfpFloatIn { 0% { opacity: 0; transform: translateX(-60px) translateY(30px) scale(0.8); } 60% { transform: translateX(0) translateY(-5px) scale(1.02); } 100% { opacity: 1; transform: translateX(0) translateY(0) scale(1); } }
.rouhen-float-promo.rfp-ready { animation: rfpFloatIn 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) both; }
@media (prefers-reduced-motion: reduce) { .rouhen-float-promo, .rfp-card, .rfp-slide, .rfp-close-btn, .rfp-cta-btn, .rfp-dot { transition: none !important; animation: none !important; } }
