/* 入房兑换提示弹窗样式: 由 index.html 抽出 */
/* Exchange Prompt Popup */
.exchange-overlay {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.7); z-index: 600;
    display: none; align-items: center; justify-content: center;
}
.exchange-overlay.show { display: flex; }
.exchange-popup {
    width: 340px; max-width: 90vw; border-radius: 20px; overflow: hidden;
    background: linear-gradient(135deg, #2d1b4e 0%, #1a0a3e 40%, #3b1a5e 100%);
    border: 2px solid #c8944a; box-shadow: 0 0 40px rgba(200,148,74,0.4);
    animation: exchangePopIn 0.4s ease-out; position: relative;
}
@keyframes exchangePopIn { from { transform: scale(0.7); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.exchange-header {
    text-align: center; padding: 22px 16px 10px; position: relative;
}
.exchange-header h2 {
    margin: 0; font-size: 28px; font-weight: 800; color: #ffd700;
    text-shadow: 0 2px 8px rgba(255,215,0,0.5);
}
.exchange-header .exchange-subtitle {
    display: inline-block; margin-top: 6px; padding: 3px 20px;
    background: linear-gradient(90deg, transparent, rgba(200,148,74,0.3), transparent);
    border: 1px solid #c8944a; border-radius: 12px;
    font-size: 13px; color: #daa520; letter-spacing: 2px;
}
.exchange-body { padding: 10px 16px 16px; }
.exchange-row {
    display: flex; align-items: center; gap: 12px;
    background: linear-gradient(135deg, rgba(200,148,74,0.15), rgba(200,148,74,0.05));
    border: 1px solid rgba(200,148,74,0.4); border-radius: 12px;
    padding: 12px 14px; margin-bottom: 10px;
}
.exchange-row:last-child { margin-bottom: 0; }
.exchange-row-icon { font-size: 32px; flex-shrink: 0; }
.exchange-row-text { flex: 1; }
.exchange-row-text .ex-label { font-size: 13px; color: #ccc; }
.exchange-row-text .ex-value {
    font-size: 22px; font-weight: 800; color: #ffd700;
    text-shadow: 0 1px 4px rgba(255,215,0,0.4);
}
.exchange-row-text .ex-value .ex-unit { font-size: 14px; font-weight: 400; color: #daa520; margin-left: 2px; }
.exchange-row-text .ex-desc { font-size: 11px; color: #aaa; margin-top: 2px; }
.exchange-footer { padding: 10px 16px 22px; text-align: center; }
.exchange-btn-ok {
    display: inline-block; padding: 12px 60px; border: none; border-radius: 25px;
    background: linear-gradient(135deg, #c8944a, #e6b85c, #c8944a);
    color: #1a0a3e; font-size: 20px; font-weight: 800; cursor: pointer;
    box-shadow: 0 4px 15px rgba(200,148,74,0.5); letter-spacing: 4px;
}
.exchange-btn-ok:active { transform: scale(0.95); }
/* Confetti particles */
.exchange-confetti { position: absolute; top: 0; left: 0; right: 0; bottom: 0; pointer-events: none; overflow: hidden; }
.exchange-confetti span {
    position: absolute; width: 8px; height: 8px; border-radius: 50%;
    animation: confettiFall 2s linear infinite;
}
@keyframes confettiFall {
    0% { transform: translateY(-10px) rotate(0deg); opacity: 1; }
    100% { transform: translateY(400px) rotate(720deg); opacity: 0; }
}
