/**
 * 登录页面模态框样式
 * 设备冲突确认对话框
 */

/* ==================== 模态框遮罩 ==================== */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

.modal-overlay.show {
    display: flex !important;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ==================== 模态框内容 ==================== */
.modal-content {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 40px;
    border-radius: 24px;
    box-shadow:
        0 25px 50px -12px rgba(0, 0, 0, 0.25),
        0 0 0 1px rgba(255, 255, 255, 0.2) inset;
    width: 480px;
    text-align: center;
    animation: modalSlideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: visible;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* ==================== 模态框标题 ==================== */
.modal-title {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 24px;
    letter-spacing: -0.5px;
}

/* ==================== 模态框消息 ==================== */
.modal-message {
    color: #4a5568;
    margin-bottom: 30px;
    line-height: 1.6;
    text-align: left;
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.1) 0%, rgba(255, 152, 0, 0.1) 100%);
    padding: 18px 20px;
    border-radius: 12px;
    border-left: 4px solid #ffc107;
    font-size: 14px;
}

.modal-message strong {
    color: #2d3748;
    font-weight: 600;
}

/* ==================== 模态框按钮组 ==================== */
.modal-buttons {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

/* ==================== 模态框按钮 ==================== */
.modal-btn {
    flex: 1;
    padding: 14px 24px;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-btn:hover {
    transform: translateY(-2px);
}

.modal-btn:active {
    transform: translateY(0);
}

/* 取消按钮 */
.modal-btn-cancel {
    background: #f7fafc;
    color: #4a5568;
    border: 2px solid #e2e8f0;
}

.modal-btn-cancel:hover {
    background: #edf2f7;
    border-color: #cbd5e0;
}

/* 确认按钮 */
.modal-btn-confirm {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.modal-btn-confirm:hover {
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.5);
}

/* ==================== 响应式设计 ==================== */
@media (max-width: 480px) {
    .modal-content {
        width: 90%;
        max-width: 400px;
        padding: 30px 25px;
        overflow: visible;
    }
}
