/* Midnight Pro - 消息提示框样式 */
.midnight-message {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    min-width: 300px;
    max-width: 500px;
    background: linear-gradient(135deg, #1e1e2e 0%, #12121a 100%);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 0 0 60px rgba(139, 92, 246, 0.1);
    display: flex;
    align-items: center;
    padding: 16px 20px;
    z-index: 10000;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: none;
}

.midnight-message-show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

.midnight-message-hide {
    opacity: 0;
    transform: translateX(-50%) translateY(100px);
    pointer-events: none;
}

.midnight-message-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 14px;
    flex-shrink: 0;
    font-size: 16px;
    font-weight: bold;
}

.midnight-message-success .midnight-message-icon {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.midnight-message-error .midnight-message-icon {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.midnight-message-warning .midnight-message-icon {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.midnight-message-content {
    flex: 1;
    color: #e2e8f0;
    font-size: 14px;
    line-height: 1.5;
}

/* 顶部发光线条 */
.midnight-message::before {
    content: '';
    position: absolute;
    top: 0;
    left: 20px;
    right: 20px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.5), transparent);
}

.midnight-message-success::before {
    background: linear-gradient(90deg, transparent, rgba(16, 185, 129, 0.5), transparent);
}

.midnight-message-error::before {
    background: linear-gradient(90deg, transparent, rgba(239, 68, 68, 0.5), transparent);
}

.midnight-message-warning::before {
    background: linear-gradient(90deg, transparent, rgba(245, 158, 11, 0.5), transparent);
}

/* 底部进度条 */
.midnight-message-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    border-radius: 0 0 12px 12px;
    animation: midnightProgress 3s linear forwards;
}

.midnight-message-success .midnight-message-progress {
    background: linear-gradient(90deg, #10b981, #34d399);
}

.midnight-message-error .midnight-message-progress {
    background: linear-gradient(90deg, #ef4444, #f87171);
}

.midnight-message-warning .midnight-message-progress {
    background: linear-gradient(90deg, #f59e0b, #fbbf24);
}

@keyframes midnightProgress {
    from { width: 100%; }
    to { width: 0%; }
}

@media (max-width: 768px) {
    .midnight-message {
        min-width: auto;
        left: 16px;
        right: 16px;
        transform: translateX(0) translateY(100px);
    }
    .midnight-message-show { transform: translateX(0) translateY(0); }
    .midnight-message-hide { transform: translateX(0) translateY(100px); }
}
