/* --- QMT 迅投量化金融组件库专用样式 --- */
:root {
    --qmt-toast-bg: rgba(10, 15, 42, 0.92);
    --qmt-dialog-bg: rgba(12, 18, 48, 0.94);
    --qmt-cyan: #38bdf8;
    --qmt-emerald: #10b981;
    --qmt-amber: #f59e0b;
    --qmt-rose: #f43f5e;
    --qmt-indigo: #6366f1;
}

/* 全局遮罩层 */
.cyber-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(4, 7, 22, 0.78);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.cyber-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* 核心弹窗容器 */
.cyber-dialog {
    position: relative;
    width: 100%;
    max-width: 380px;
    background: var(--qmt-dialog-bg);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-top: 1px solid rgba(139, 92, 246, 0.45);
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.85), 0 0 30px rgba(99, 102, 241, 0.2);
    overflow: hidden;
    transform: scale(0.94) translateY(12px);
    transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
    padding: 24px;
    color: #fff;
}
.cyber-overlay.active .cyber-dialog {
    transform: scale(1) translateY(0);
}

/* 顶部激光微光线 */
.dialog-border-line {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--qmt-cyan), var(--qmt-indigo), transparent);
}

/* 弹窗头部 */
.dialog-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}
.dialog-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: #f1f5f9;
    text-transform: uppercase;
}
.status-dot-active {
    width: 7px;
    height: 7px;
    background: var(--qmt-cyan);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--qmt-cyan);
    animation: pulseDot 2s infinite ease-in-out;
}
@keyframes pulseDot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(1.2); }
}

/* 弹窗内容 */
.dialog-content {
    font-size: 13px;
    line-height: 1.65;
    color: #94a3b8;
    margin-bottom: 24px;
    padding: 12px 14px;
    background: rgba(6, 10, 30, 0.55);
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.04);
}

/* 弹窗底部按钮排盘 */
.dialog-footer {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.dialog-btn {
    height: 44px;
    border-radius: 14px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    cursor: pointer;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}
.dialog-btn:active { transform: scale(0.97); }

.dialog-btn.btn-confirm {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 55%, #2563eb 100%);
    color: #ffffff;
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.4);
}
.dialog-btn.btn-cancel {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #94a3b8;
}
.dialog-btn.btn-cancel:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

/* --- QMT 悬浮 Toast 消息胶囊 --- */
.cyber-toast {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(-30px);
    z-index: 100000;
    min-width: 280px;
    max-width: 90%;
    background: var(--qmt-toast-bg);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 12px 16px;
    box-shadow: 0 16px 36px -8px rgba(0, 0, 0, 0.75), 0 0 20px rgba(99, 102, 241, 0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.cyber-toast.active {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    pointer-events: auto;
}
.toast-badge-box {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.toast-body {
    flex-grow: 1;
    line-height: 1.4;
}
.toast-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2px;
}
.toast-tag {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
    font-family: 'SF Pro Display', -apple-system, monospace;
}
.toast-time {
    font-size: 9px;
    color: #64748b;
    font-family: monospace;
}
.toast-msg {
    font-size: 12px;
    font-weight: 500;
    color: #f1f5f9;
}